Commit Graph

675 Commits (a3c41a389c9354ef1ceb1ec91e1845a7b59c389d)

Author SHA1 Message Date
Marshall Hallenbeck c52a8566eb fix(dpapi): revert my 'fix', properly connect to DC via domain query 2023-03-16 08:34:52 -04:00
Marshall Hallenbeck 63c1e03a1d fix(kerberos): add back in kerberos for Petitpotam and samrfunc 2023-03-16 08:34:07 -04:00
Marshall Hallenbeck 941efd353a fix(dpapi): update target to be the host instead of domain 2023-03-14 01:26:08 -04:00
Marshall Hallenbeck da99886ca8 fix(dpapi): update dpapi feature to sqlalchmey and update formatting 2023-03-14 01:25:20 -04:00
Marshall Hallenbeck 4f3759cdce feat(smb): add functionality to query SAMR for local groups if DC query fails; closes #687 2023-03-13 16:12:44 -04:00
Marshall Hallenbeck 735e230945 fix(smb): update smb protocol to properly insert AdminRelations, GroupRelations, and LoggedinRelations to the database 2023-03-13 16:12:44 -04:00
Marshall Hallenbeck cc3a42ab00 chore(mssqldb): remove unnecessary debug prints 2023-03-13 16:12:44 -04:00
Marshall Hallenbeck b21e450f90 feat|fix(winrm): update winrm to use database to save hosts and credentials; closes #739 and closes #740 2023-03-13 16:12:42 -04:00
Marshall Hallenbeck 39502bc210 docs(rdpdb): add helpdoc for clear_database command 2023-03-13 16:12:32 -04:00
Marshall Hallenbeck 4891750af7 refactor: standardize nomenclature to uses 'hosts' instead of 'computers' 2023-03-13 16:12:30 -04:00
Marshall Hallenbeck ca0ab3b98c fix some major bugs and add in proper admin relations to the database functionality 2023-03-13 16:12:20 -04:00
Marshall Hallenbeck 1ce23664dc refactor(smbdb): move DB-related functions together 2023-03-13 16:11:08 -04:00
Marshall Hallenbeck 2532a9c3ba fix(cmedb): check if filter_term is not None on domain query check 2023-03-13 16:11:01 -04:00
Marshall Hallenbeck 0c30b840a5 feat(smbdb): add feature to print hosts by domain search in CMEDB 2023-03-13 16:11:01 -04:00
Marshall Hallenbeck 4b4e2126cd fix: catch BrokenPipeErrors when connecting via SMB 2023-03-13 16:10:59 -04:00
Marshall Hallenbeck 17fb198735 docs(cmedb): update help strings for smb cmedb 2023-03-13 16:10:30 -04:00
Marshall Hallenbeck fba8559049 fix: change back variable names for nthash and lmhash 2023-03-13 16:10:28 -04:00
Marshall Hallenbeck 137a7c7283 fix(cmedb): add func.lower() calls back into certain columns that need it 2023-03-13 16:10:07 -04:00
Marshall Hallenbeck a955a7d7ab fix(cmedb): fix LIKE queries to properly work 2023-03-13 16:10:07 -04:00
Marshall Hallenbeck 160efc6980 update formatting, some variable names, and other Pythonic things for winrm 2023-03-13 16:10:05 -04:00
Marshall Hallenbeck e9b353d645 feat(dbs): add help string and confirmation for all database clear_database functions 2023-03-13 16:08:18 -04:00
Marshall Hallenbeck 47d68dce7b feat(cmedb): update table when printing specific host to include additional info 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck ec58fb7f7e fix(db): fix update columns reference for Upsert queries to properly update columns 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck b368b2ca85 fix(mssqldb): properly apply filters for sqlalchemy queries 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck cffec370a4 feat(smbdb): add feature to allow search on r/w/rw shares 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck e4c21e242d fix(smbdb): properly apply filters for sqlalchemy queries 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 7a43382c7b chore: remove unnecessary commented code 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3996d21175 feat(ssh|winrmdb): update ssh and winrm database files to use proper sqlalchemy methods 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3491499845 feat(ftpdb): update ftp database file to use new sqlalchemy connection and query methods 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck c55e2563a3 fix(rdp|ldapdb): fix table name reflection 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck fa073b4449 fix(rdp|ldapdb): fix table name reflection 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 222c6442ec feat(rdpdb): update rdp databse file to use new sqlalchemy connection and query methods 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 9c48638733 chore(mssqldb): remove unnecessary import and add SAWarning ignore 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 99d041684a feat(mssqldb): update clear_database to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 16f0fe5b35 feat(mssqldb): update get_computers to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck e170f839f7 feat(mssqldb): update is_computer_valid to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck c38117a8dd feat(mssqldb): update get_credentials to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 608304d5d5 feat(mssqldb): update is_credential_valid to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 75fcf0e666 feat(mssqldb): update remove_admin_relations to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 051a7c0e4b feat(mssqldb): update get_admin_relations to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3b86e8c1fa feat(mssqldb): update add_admin_user to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 38854a59e4 feat(mssqldb): update remove_credentials to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck f9ff7cef7a feat(mssqldb): update add_credential to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 0eb20ff3a2 feat(mssqldb): update add_computer to proper sqlalchemny syntax 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 515209a4e0 feat(smbdb): only update hosts if they have changed to improve SQL write time 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3143b56060 logging(smbdb): update log string to better specify which add_computer() is being called 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck beaab6034e format(smbdb): change order of functions to match other database classes 2023-03-13 16:07:05 -04:00
Marshall Hallenbeck c211f53cbd feat(smbdb): add help_creds 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck d588b523e1 chore: remove old commented code 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 121b25d243 feat(smbdb): update remaining functions to proper sqlalchemy syntax 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1d33c58059 refactor(smbdb): change all add_user references to add_credential and refactor some if statements 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 97eb27bdfa fix(smbdb): update Upsert technique 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1bb0a476e0 feat(smbdb): work on fixing group sqlalchemy queries 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 92c8d5bf20 update variable name 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1e5fec0b75 fix(smbdb): fix clear_database query 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 17eda1767d fix(smbdb): reference inserted row id properly 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck fa6c20f76a feat(cmedb): add help string to hosts command 2023-03-13 16:06:16 -04:00
Marshall Hallenbeck 6056602a3d feat(cmedb): add help string to groups command 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 0d8824eaf4 feat(cmedb): add help string to shares command 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 526ec5373e fix comment 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck fde187e26e fix(cmedb): update get_computers to always return a list 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 3dd1daf87b feat(cmedb): update get_users to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck c8c8bbd531 feat(cmedb): update get_user to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck dc1a038474 feat(cmedb): update get_computers to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck ffb277fe55 feat(cmedb): update is_computer_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck dfd18456a0 feat(cmedb): update get_groups to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 6c27da82ef feat(cmedb): update is_group_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 5ca05031a9 feat(cmedb): update get_users_with_share_access to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 042f67ee73 feat(cmedb): update add_share to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck dc417119b6 fix(cmedb): fix db column reference 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck f1c8c0704b feat(cmedb): update get_group_relations to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 7bfd048078 feat(cmedb): update get_admin_relations to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 2f4b4c0a23 feat(cmedb): update get_credentials to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck d4fe0c18d8 feat(cmedb): update is_user_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 22606143da fix(smbdb): update result query syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 2348fc7e13 fix(SAwarnings): add warning ignore for SAWarnings 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 29e673c885 feat(cmedb): update is_credentials_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 9b2b1656b7 feat(smbdb): completely revamp get_shares_by_access function (needs testing) 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 75619809ad feat(cmedb): update get_shares sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 780ca00e32 feat(cmedb): update is_share_valid sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 8463829b5b feat(database): working on making database operations more async, reducing write concurrency issues, and fixing sqlalchemy query formats 2023-03-13 16:05:57 -04:00
Marshall Hallenbeck 06a82744cd WIP: improve computer add and update logic to reduce writes 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck bdc887ccae feat(mssqldb): update get_computers to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 4b5dfbb025 feat(mssqldb): update is_computer_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck da1e788f23 feat(mssqldb): update get_credentials to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b70cdc58e1 feat(mssqldb): update is_credential_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 9e1b8fbe88 feat(mssqldb): update remove_admin_relations to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 70346c9c8a feat(mssqldb): update get_admin_relations to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 28b16538ed feat(mssqldb): update add_admin_user to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 54035df8b1 feat(mssqldb): update remove_credentials to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 876dd9d331 feat(mssqldb): update add_credential to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a8f23e9ed9 chore(mssqldb): fix formatting 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck f33d254c83 feat(mssqldb): update add_computer to use sqlalchemny 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b44b05a0fa small formatting fix in db_navigator 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b4c189a2a7 small formatting fix 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 108629bc02 feat(smbdb): update additional user functions to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 484ab65aad feat(smbdb): update is_user_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a66b3a0a72 feat(smbdb): update is_credential_local to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 7401f48f82 feat(cmedb): update creds remove command to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a634530128 feat(cmedb): add database column for count of members of groups from AD, and the last queried time of it. Additionally transition to sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 9094e2e80f fix(smbdb): fix extraneous commit call that was causing errors due to timing 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 5debcb793e chore(smbdb): fix formatting 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 1aec4ea798 refactor(cmedb): pass dbengine object instead of session object 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 165142b543 fix(smb-database): remove redundant commit calls 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 0212f7bd28 feat(cmedb): update sql queries for groups command 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck c8b472321a feat(cmedb): update queries and fix parameter names 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 4c3f68925b chore(cmedb): remove debug print statements 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 86fa6d3437 chore(cmedb): remove unnecessary update_computer function 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck e34fdc2dda feat(database): update each protocol to use sqlalchemy table reference and add database clear function; closes #189 2023-03-13 16:05:03 -04:00
Marshall Hallenbeck 3dd7134898 chore(smb): fix formatting for smb.py 2023-03-13 16:03:50 -04:00
Marshall Hallenbeck 3c62a58008 fix(smb): update logging for shares 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 18d2b273af feat(cmedb): update cmedb.groups sql queries to use sqlalchemy 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 6d140bb1ce feat(cmedb): update some functions for smb.creds 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck bc2ba6a025 feat(cmedb): update queries for smb.hosts 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 9185555c0f feat(cmedb): update db connection reference and one query 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 7e2c9333fd refactor(cmedb): fix cursor connection reference 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck f9f8de0c74 fix(cmedb): import print_table from cmedb 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 388f520103 WIP - cmedb update 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 218c9b745e feat(sqlalchemy): WIP - working sqlalchemy session object being passed 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 1d5d558f99 fix(display table): properly check for new DB additions and clean up previous checks 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 5e9ea346fd feat(cmedb): add additional fields to smb db 2023-03-13 15:58:07 -04:00
mpgn 9ca90fcecc is_admin check wrong 2023-02-23 04:38:44 -05:00
mpgn c0b1d71cc8
Merge branch 'master' into dpapi 2023-02-22 20:43:47 +01:00
mpgn 26e0393a31 Add check to verify if latest version of cmedb is used 2023-02-22 14:41:58 -05:00
zblurx bf254506d0 fix column for cme dpapi browser 2023-02-22 14:02:36 +01:00
zblurx 7bfdd0a75d store dpapi secrets in cmedb 2023-02-22 13:58:53 +01:00
zblurx 393dfc3987 store domain backup key 2023-02-22 12:56:24 +01:00
mpgn 602e7bb020 add option to dump cookie dpapi 2023-02-19 15:35:37 -05:00
mpgn f381728740 add message when dumping dpapi 2023-02-19 08:33:05 -05:00
mpgn 681e821514 fix local auth dpapi check 2023-02-19 08:06:02 -05:00
mpgn 63c49c0895 add check if da 2023-02-16 08:33:26 -05:00
mpgn 9a1e52f176 change logic for masterkey 2023-02-16 08:09:21 -05:00
mpgn 19a6c3887f merge master into pr 2023-02-16 08:04:23 -05:00
mpgn d5d2d54619 Rewrite all vnc module method 2023-02-16 06:24:07 -05:00
zblurx ffae9abf49 fix trycatch in dpapi 2023-02-14 11:15:14 +01:00
zblurx d5fb5cf36e change pydes to pycryptodomex 2023-02-14 10:00:12 +01:00
mpgn ec4f9ddfec remove printf ldap bloodhound 2023-02-14 03:46:43 -05:00
mpgn 3e2abb9e1e improve share filter 2023-02-13 15:53:55 -05:00
zblurx 6f198372ca merge firefox into dpapi core option 2023-02-13 11:48:12 +01:00
mpgn a551244f38 Add option to only view readable/writable shares credit to @jenaye 2023-02-12 17:19:46 -05:00
mpgn 8c5f25a2db if ldaps then ldaps my friend 2023-02-12 16:11:22 -05:00
mpgn 9f6db06846 Change output filename for winrm 2023-02-12 16:03:38 -05:00
mpgn ce1293b12c check if user password expired for as-reproasting 2023-02-12 15:58:07 -05:00
Alexandre ZANNI c05d27b8d2 [chore] better grep 2023-02-12 09:18:41 -05:00
mpgn c36a0fe445 add fqdn to kerberos option 2023-02-12 09:17:27 -05:00
mpgn 72c01b0688 add fqdn to kerberos option 2023-02-12 09:14:30 -05:00
lefayjey 0a472e9366 Use hostname in user and passpol for kerberos 2023-02-12 09:14:22 -05:00
lefayjey 5f5884785f Fix ccache kerberos auth using rpc 2023-02-12 09:14:08 -05:00
mpgn 3b5d719d24 Simplify check 2023-02-12 08:52:22 -05:00
zblurx a0832f2190 add firefox module 2023-02-10 15:16:10 +01:00
zblurx 194499533d modify output 2023-02-09 15:34:25 +01:00
zblurx 5263a4647d modify output 2023-02-09 15:33:14 +01:00
zblurx aeb0c0ea5a fix bugs 2023-02-08 12:16:07 +01:00
zblurx 0d39dff6e9 upgrade version of dploot 2023-02-08 09:53:40 +01:00
zblurx 9aa4675032 added try catch 2023-02-08 09:14:18 +01:00
zblurx 10e3b32b62 fix kerberos auth 2023-02-07 22:22:40 +01:00
zblurx 3086559501 auto export of domain backup key 2023-02-07 15:32:19 +01:00
zblurx 33093c2d49 fix dpapi harversting 2023-02-07 14:51:01 +01:00
zblurx f790d95613 pass it to core option 2023-02-07 12:06:42 +01:00
mpgn 8939405c6e Forgot to add bloodhound file 2023-02-06 08:17:16 -05:00
mpgn 4335515d28 Rewrite all rdp module 2023-02-05 15:23:40 -05:00
mpgn 5696026ba0 Fix exec method with kerberos 2023-02-05 08:00:46 -05:00
mpgn 4a443fe946 Add bloodhound core feature + fix color on ldap proto 2023-02-05 05:43:12 -05:00
mpgn 0c02ed4c0b Add GMSA print id 2023-02-05 04:44:07 -05:00
mpgn 1ddddd5f47 Add samruser function with kerberos 2023-02-02 14:43:04 -05:00
mpgn bdab59472b Add ccache support for RDP auth 2023-02-01 06:04:13 -05:00
mpgn 7fef784481 Add VNC scan + screenshot 2023-01-31 15:20:47 -05:00
mpgn f0645371f0 Use default proto_flow func for rdp 2023-01-04 12:26:37 -05:00
mpgn d00a9bafeb
Fix RDP login
Fix RDP login, major breaking change so it is also commited on the public repo
2023-01-02 12:43:27 +01:00
mpgn 82f28df288 Fix rdp auth & add kerberos auth (plain/nthash) -k 2023-01-02 06:37:37 -05:00
mpgn af8cfa8011 Add new gmsa function <3 2022-12-14 15:45:51 -05:00
mpgn 86823c90be Add try catch 2022-12-12 14:39:29 -05:00
mpgn 1051ec2e69 Fix smb nthash not display with kerberos 2022-12-12 14:39:29 -05:00
Julio Ureña 4bab776011 Fix --enabled option to dump only enabled accounts
This change allows the option to work as expected and also includes an option to grep a list of users.
2022-12-12 14:39:29 -05:00
Julio Ureña c2993a5888 Modify remove_credentials to allow "creds remove"
`creds remove CredID` was not working because the method was commented on, I also changed the table name from credentials to users.
2022-12-12 14:39:29 -05:00
Julio Ureña c04b2ba465 Fix cmedb displayed credentials for mssql
The columns were not in the correct order, which caused them to be displayed incorrectly. This change properly orders the way CMEDB displays credentials in the mssql protocol.
2022-12-12 14:39:29 -05:00
Julio Ureña 7f65c0eccb mssql - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos with the protocol mssql.
2022-12-12 14:39:29 -05:00
Julio Ureña 59b953c3f7 Add - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos.
2022-12-12 14:39:29 -05:00
Julio Ureña 42a3d9375b Add - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos.
2022-12-12 14:39:29 -05:00
mpgn 31542973d7 Fix smb nthash not display with kerberos 2022-11-29 17:05:15 -05:00
mpgn 99cea583e9 Add kerberos compatibility for laps option 2022-11-29 16:46:25 -05:00
Julio Ureña 7c684bcffb
Fix --enabled option to dump only enabled accounts
This change allows the option to work as expected and also includes an option to grep a list of users.
2022-11-22 14:28:57 -04:00
Julio Ureña 81b53b9652
Modify remove_credentials to allow "creds remove"
`creds remove CredID` was not working because the method was commented on, I also changed the table name from credentials to users.
2022-11-17 11:18:13 -04:00
Julio Ureña 2c4be7b9e4
Fix cmedb displayed credentials for mssql
The columns were not in the correct order, which caused them to be displayed incorrectly. This change properly orders the way CMEDB displays credentials in the mssql protocol.
2022-11-17 09:27:01 -04:00
Julio Ureña 4a12e437fa
mssql - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos with the protocol mssql.
2022-11-16 16:39:44 -04:00
Julio Ureña bd5a3fe91d
Add - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos.
2022-11-16 16:15:30 -04:00
Julio Ureña baceb06afd
Add - Retrieve username when using Kerberos Auth
This change allows the program to return the name of the user being authenticated when using Kerberos.
2022-11-16 16:06:43 -04:00
mpgn 9d6c3fe67e Add kerberos compatibility for laps option 2022-11-10 16:07:41 -05:00
mpgn 25978c0be0
Update smb.py 2022-11-10 22:06:35 +01:00
mpgn 193ce4128e SMB kerberos better you can put ip whithout fqdn 2022-11-10 04:17:09 -05:00
mpgn a88a6e8552 Add catch for kerberos use-kcache option with error message 2022-11-09 16:59:53 -05:00
mpgn 667faa0d7b Add catch for kerberos use-kcache option 2022-11-09 16:56:57 -05:00
mpgn be6b0edd42
Merge pull request #662 from Porchetta-Industries/rdp
Bump aardwolf to version 0.2.0
2022-11-08 09:31:58 +01:00
mpgn 8fedcc48b7
Update rdp.py 2022-11-08 09:25:59 +01:00
Julio Ureña 47a92590a6
Remove @requires_admin flag for WMI queries
Although not common, it is possible for a user to be assigned WMI privileges. Removing @requires_admin in case we do not have privileges to make queries to WMI we will receive an access denied error, which makes it clearer what is happening.
2022-11-04 07:45:47 -04:00
mpgn b2bcbe0ade Fix issue #667 with use-kcache option 2022-11-03 16:04:46 -04:00
mpgn 83180a6b68 ldap better error message 2022-11-03 15:56:38 -04:00
mpgn 49d68e0269 fix error with connection outside dc 2022-11-03 15:29:56 -04:00
mpgn 37f2555ab7 Merge branch 'screenrdp' into rdp 2022-11-02 15:39:17 -04:00
mpgn 33a3c61242 update rdp proto 2022-11-02 15:39:14 -04:00
lap1nou 4fabd0843a Added an NLA disabled screenshot function 2022-11-02 18:47:32 +01:00
mpgn 6a31c588a2 update ldap proto and add func get domain sid 2022-11-01 18:20:14 -04:00
Julio Ureña 3eb80ae534
Modify logging output when putting files
Added \\ to match the correct display of the file and path.
2022-11-01 08:10:55 -04:00
Julio Ureña cc72c6c868
Remove @requires_admin from get_file and put_file
The @requires_admin flag prevents non-admin users who have Read and Write access to a shared folder from performing any operations.
2022-11-01 07:29:56 -04:00
mpgn a36d3145e1
Merge pull request #655 from zblurx/master
Fix kerberos authentication and add kerbrute
2022-10-31 13:34:03 +01:00
mpgn 3942eab31b update a little bit 2022-10-31 08:33:41 -04:00
mpgn 9c66f29474
Merge branch 'master' into rdp 2022-10-28 15:22:28 +02:00
mpgn dc6b023456 update RDP protocol 2022-10-27 16:43:52 -04:00
mpgn fedbfaf1f5 Change default order of exec method for smb 2022-10-27 15:40:34 -04:00
mpgn abc288234b Fix ldap with null binding thx @juliourena 2022-10-26 08:58:51 -04:00
mpgn 87108d4878
Merge pull request #658 from Porchetta-Industries/mssql-uaht
Fix regression for mssql with local_auth thx @juliourena
2022-10-24 21:26:55 +02:00
mpgn a3b3ab9e92 Fix regression for mssql with local_auth thx @juliourena 2022-10-24 15:20:14 -04:00
mpgn e2130c658c Bump aardwolf to 0.2.0 2022-10-24 15:02:42 -04:00
mpgn 132332a8fd add new color for asreproast account smb 2022-10-24 10:02:01 -04:00
mpgn d61d6f0339 add new color for asreproast account 2022-10-24 09:59:43 -04:00
mpgn b62bd670e0 Don't block if account not green 2022-10-24 09:11:45 -04:00
mpgn 70f8d973cf add KDC_ERR_PREAUTH_FAILED error 2022-10-24 09:01:30 -04:00
mpgn 5040ab6b40 ldap try catch + magenta 2022-10-24 08:55:48 -04:00
zblurx b9699ab078 fix output modifs on smb protocol 2022-10-24 14:55:07 +02:00
zblurx 53b612d317 adapt outputed creds 2022-10-24 14:12:32 +02:00
zblurx 3fb117d23a Merge branch 'master' of github.com:zblurx/CrackMapExec 2022-10-24 13:31:03 +02:00
zblurx b42cb70cd8 enhance kerberos auth to mssql 2022-10-24 13:30:07 +02:00
mpgn 0a218c534f add magenta color if user exist but connection KO 2022-10-24 05:43:52 -04:00
mpgn ef349a5309 refactor check if admin func to be comptatible with kerberos 2022-10-24 05:26:53 -04:00
mpgn fb1d7b181f add mssql kerberos login 2022-10-24 04:24:21 -04:00
mpgn 7dc90669d7 starting to add mssql kerberos login 2022-10-24 04:10:46 -04:00
mpgn 8e09a273d2
Merge branch 'master' into master 2022-10-23 21:29:30 +02:00
mpgn f796a5f2f2 add port 636 if gmsa 2022-10-23 07:08:39 -04:00
mpgn 0a284bd2b0 remove message CCache file is not found + fix exec method with kerberos 2022-10-22 17:29:56 -04:00
mpgn ed2b2b261a fix for kerberoast function 2022-10-22 16:38:29 -04:00
mpgn 7b712dc3c0 fix check on arg gmsa 2022-10-21 04:02:34 -04:00
mpgn 7e0613c883 fix username to send to bh 2022-10-20 17:18:22 -04:00
mpgn 53f5791e7c Fix a lot things but good pr 2022-10-20 15:40:53 -04:00
zblurx f4485ff279 fix kerberos authentication 2022-10-20 18:08:30 +02:00
mpgn 507d872c3d Update gmsa core function 2022-10-19 05:48:22 -04:00
Swissky 35cb0545e3
Merge branch 'master' into master 2022-10-14 19:17:04 +02:00
Swissky 42a4d7efbb GMSA moved in LDAP core 2022-10-14 19:13:17 +02:00
mpgn fcbd406773
Merge pull request #650 from jdouliez/master
fix(#649) : Fix Wrong filename on RDP screenshot issue
2022-10-13 14:58:14 +02:00
mpgn 4ec7a2b4e9
Merge pull request #643 from ILightThings/cme_db_detailed
Improved cmedb export function
2022-10-13 14:56:59 +02:00
mpgn 247de78541
Merge pull request #597 from guervild/mssql-upload-download
Mssql upload / download
2022-10-13 14:55:20 +02:00
mpgn 0fc010b0d5 Fix except error 2022-10-13 08:20:22 -04:00
Jordan DOULIEZ f3c9d5fbc6 fix(#649) : Fix Wrong filename on RDP screenshot (Mission extension) issue 2022-10-12 15:05:21 +02:00
mpgn fc57723678
Merge pull request #642 from nurfed1/master
LDAP protocol improvements and scan-network module bugfix
2022-10-05 17:34:56 +02:00
mpgn 21b5adb138
Merge pull request #639 from RomanRII/master
FTP Protocol Addition
2022-09-25 18:21:15 +02:00
iLightThings c005d844e0
Merge branch 'master' into cme_db_detailed 2022-09-23 12:02:40 -04:00
mpgn 105ad97947 quick fix cmedb export share 2022-09-22 18:24:27 -04:00
mpgn 65796271c0 Merge branch 'export' 2022-09-22 18:06:37 -04:00
mpgn 018bd9608a Update cmedb for shares 2022-09-22 18:05:18 -04:00
iLightThings ba5a421b3e Added local admins. Made CSV write function. 2022-09-22 08:31:02 -04:00
Bryan De Houwer b11bc43380 Fix cross domain kerberos authentication, kerberoasting and asreproasting issues 2022-09-21 15:08:31 +02:00