Commit Graph

752 Commits (50a74951c884f2b8a77984f9e8aa7f34b15071b1)

Author SHA1 Message Date
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 12ec7f2278 update impersonate binary 2022-11-02 07:23:07 -04: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
Defte 5d4f3b5606
Update impersonate.py
I'll add technical links to the blog post explaining token manipulation internals as well as the source code of the original binary when the blog post will be released (should be on monday)
2022-10-29 11:55:34 +02:00
Defte 1bfb3a860b
Addind the IMP_EXE option
Guess this will be the final one :P
2022-10-29 11:52:48 +02: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 aa8bf6aa46 Refactor options 2022-10-27 15:32:55 -04:00
Defte 2dcd33ee17
Update impersonate.py
Adding double quotes for spaced cmd
2022-10-27 18:57:00 +02:00
Defte ed80922b0e
Final update! 2022-10-27 12:21:46 +02:00
mpgn abc288234b Fix ldap with null binding thx @juliourena 2022-10-26 08:58:51 -04:00
mpgn 65724d4553
Merge pull request #653 from Z4kSec/master
Add Masky module
2022-10-25 13:03:29 +02: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 e0a9633485
Merge pull request #614 from swisskyrepo/master
Add GMSA module
2022-10-23 19:15:55 +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 c52031f344 change parameter name 2022-10-20 18:19:23 +02:00
zblurx e6250e1b98 change parameter name 2022-10-20 18:11:10 +02:00
zblurx f4485ff279 fix kerberos authentication 2022-10-20 18:08:30 +02:00
LuemmelSec 704471b366
Update teams_localdb.py
Multi user support added.
Otherwise the file at /tmp/teams_cookies2.txt gets mangled up and you don't get back any results as sqlite3 can access it but won't find any content.
2022-10-20 11:51:53 +02:00
Zak 51b3958175 Merge remote-tracking branch 'upstream/master' 2022-10-19 14:41:17 +02:00
mpgn 507d872c3d Update gmsa core function 2022-10-19 05:48:22 -04:00
Zak d55f7513d2 Merge remote-tracking branch 'upstream/master' 2022-10-18 22:29:04 +02:00
shoxxdj 590b236c45 🚀 Improve CMEDB after loosing too much time with workspace .. 2022-10-18 22:22:17 +02:00
Zak 2806c81d73 Add masky module 2022-10-18 22:19:35 +02:00
mpgn 74bbeee05a
Merge pull request #647 from R-Secure/master
Added functionality to retrieve ssoauthookie from Microsoft Teams local db
2022-10-18 20:42:53 +02:00
mpgn 7b9ce02f46 update module teams 2022-10-16 09:15:00 -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 ff758fd6dd
Merge pull request #646 from bogey3/install_elevated
Module to check for AlwaysInstallElevated
2022-10-13 14:57:18 +02:00
mpgn d162d7b55c
Merge pull request #640 from Tw1sm/ntlmv1-module
Module to check for NTLMv1 Compatibility
2022-10-13 14:57:09 +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 dad84132e2
Merge pull request #637 from d3lb3/keepass_trigger
Add KeePass trigger abuse module
2022-10-13 14:56:39 +02:00
mpgn d3162ee45a
Merge pull request #636 from d3lb3/master
Add KeePass discovery module
2022-10-13 14:56:29 +02:00
mpgn 1e5db5da61
Merge pull request #610 from BlWasp/dacledit
Add the new daclread.py LDAP module and the msada_guids.py library
2022-10-13 14:56:18 +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 4f595fbbc7 Restart keepass to load cleaned config 2022-10-13 08:41:58 -04: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
R-Secure bbd606c067 Added functionality to retrieve the Microsoft Teams Cookies database and extract the ssoauthcookie 2022-10-11 06:44:22 -04:00
mpgn ea63b29000 update nanodump module for mssql 2022-10-10 16:22:09 -04:00
BlWasp acf1789f2f Add warning messages about non recursivity. 2022-10-10 14:25:55 +00:00
mpgn 927a82a554 parse keepass config file and extract password 2022-10-10 08:36:27 -04:00
mpgn 777a422888 add error with config setting not found 2022-10-10 05:57:26 -04:00
mpgn 521b55daee Update message for polling 2022-10-10 05:36:52 -04:00
mpgn 365abf8fb0 Update keepass module to set opsec safe to false 2022-10-10 05:32:47 -04:00
mpgn 4ba1085128 update import csv 2022-10-10 05:14:16 -04:00
bogey3 1629029d35
Update install_elevated.py
Updated to display enabled when only the entry in HKLM is enabled as low privilege users can modify the HKCU and grant themselves permission.

Note that once the per-machine policy for AlwaysInstallElevated is enabled, any user can set their per-user setting.
https://learn.microsoft.com/en-us/windows/win32/msi/alwaysinstallelevated
2022-10-07 16:25:56 -04:00
bogey3 8d92e34d66
Created install_elevated.py
This module will check if the computer and the supplied user have AlwaysInstallElevated enabled.
2022-10-07 15:55:58 -04: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
JulienBedel 4aeb311e22 Fix PowerShell parsing after file search 2022-10-02 18:32:01 +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
iLightThings 854becfcd4 Changed computerID to computer 2022-09-23 11:28:16 -04:00
mpgn 105ad97947 quick fix cmedb export share 2022-09-22 18:24:27 -04:00
mpgn 35fb7f298f Update cmedb export function 2022-09-22 18:08:25 -04:00
mpgn 65796271c0 Merge branch 'export' 2022-09-22 18:06:37 -04:00
mpgn 4c5844890c Improve module scan network 2022-09-22 18:05:39 -04:00
mpgn 018bd9608a Update cmedb for shares 2022-09-22 18:05:18 -04:00
iLightThings 2077deae5a Removed Print 2022-09-22 10:31:43 -04:00
iLightThings 7daaed7847 Fixed a gltich where creds where manually entired. 2022-09-22 10:31:18 -04:00
iLightThings 74810a7165 Added notes 2022-09-22 09:46:17 -04:00
iLightThings fa3e4227b4 Refactored Hosts and Creds 2022-09-22 09:20:07 -04:00
iLightThings ca48229e32 Refactored export shares to use new write_csv func 2022-09-22 08:45:27 -04:00
iLightThings ba5a421b3e Added local admins. Made CSV write function. 2022-09-22 08:31:02 -04:00
mpgn 2cf755d215
Merge pull request #638 from ILightThings/cmedb_export_shares
Cmedb export shares
2022-09-22 12:25:21 +02:00
Bryan De Houwer b11bc43380 Fix cross domain kerberos authentication, kerberoasting and asreproasting issues 2022-09-21 15:08:31 +02:00
iLightThings 561d6b0a22 Refactored using existing functions. 2022-09-20 08:24:14 -04:00
Bryan De Houwer 286d8c2aca Fix inconsistencies between ldap login functions 2022-09-19 12:02:58 +02:00
nurfed1 b0731f6f2c
Merge branch 'master' into master 2022-09-19 09:06:23 +02:00
Bryan De Houwer f5ada644a9 Ensure --domain is provided with --no-smb argument 2022-09-19 01:12:22 +02:00
Bryan De Houwer f391b8a2a6 Bug fix: ensure DN is lowercase 2022-09-18 20:49:03 +02:00
mpgn eaf7096bde Update FTP proto 2022-09-18 07:35:29 -04:00
mpgn b277cd3b06 Better LDAP error message 2022-09-18 07:04:14 -04:00
Dramelac a4936729fe
Fix success logging when using LDAPS 2022-09-16 17:44:59 +02:00
Tw1sm 15638400ea include compatibilitylevel 2 2022-09-16 09:30:56 -05:00
Tw1sm 196d91c6bd added ntlmv1 check module 2022-09-15 17:51:54 -05:00
iLightThings 67a358b1de Using CSV module to write CSV file. 2022-09-12 12:12:57 +00:00
mpgn fad860df43 Update ntds dump with option user and enabled #455 2022-09-11 12:49:28 -04:00
Roman Rivas II f671ef1871
Add files via upload 2022-09-10 16:06:14 -07:00
mpgn 73b945341f
Merge pull request #613 from spyr0-sec/master
whoami LDAP module
2022-09-09 20:41:34 +02:00
iLightThings 2099d850cd refactor 2022-09-09 17:31:00 +00:00
iLightThings 715ab6fa59 Small fix 2022-09-09 17:11:50 +00:00
iLightThings 0592bd3395 Added export shares to cmedb 2022-09-09 17:04:14 +00:00
mpgn 91be977ebb update module ldap whoami 2022-09-08 15:04:04 -04:00
Bryan De Houwer 81d2061102 Fix identation 2022-09-08 20:15:31 +02:00
Bryan De Houwer 032945221f KerberosLogin resolve username 2022-09-08 20:14:50 +02:00
Bryan De Houwer 6a37fdca86 Fix ldap baseDN lookup and kdchost assumptions 2022-09-08 20:07:31 +02:00
mpgn 080d9e1d97
Merge pull request #608 from wlayzz/shebang_and_encoding
Adding shebang and encoding utf-8 for all python files
2022-09-07 21:05:56 +02:00
mpgn 1bc2cd2dad Add module scan-subnet 2022-09-07 10:51:56 -04:00
JulienBedel be5883a6a1 Fix typo in log messages 2022-09-04 15:13:43 +02:00
JulienBedel 904e0e7f29 Add keepass_trigger module 2022-09-04 14:29:41 +02:00
Julien Bedel 6d762f1766
Fix typo 2022-09-03 23:14:47 +02:00
JulienBedel 8248e6007d Add keepass_discover module 2022-09-03 19:39:34 +02:00
spyr0 8acbc3bba2 Never logged on handling 2022-08-11 12:10:19 +01:00
spyr0 653a710759 Added ServicePrincipalNames 2022-08-11 11:12:31 +01:00
spyr0 293e9a9164 Added SamAccountName option, more attributes and error handling 2022-08-11 10:54:05 +01:00
Swissky 89417b909e Add GMSA module 2022-08-09 17:09:17 +02:00
spyr0 d520ecc7a5 Fixed description output 2022-08-08 17:18:45 +01:00
spyr0 b9e3e2ea40 whoami LDAP module 2022-08-08 16:47:57 +01:00
BlWasp 175b5b29d0 Add the new daclread.py module and the msada_guids.py library 2022-07-30 12:35:55 +00:00
snovvcrash a9e56a063e
Fix subnets module 2022-07-22 18:48:51 +03:00
mpgn 3524b4e5bb
Update gpp password module 2022-07-21 14:43:30 +02:00
mpgn 177dceded8 Fix infinit loop for module hash_spider 2022-07-19 06:45:38 -04:00
Wlayzz b57ba767f8 Adding shebang and encoding utf-8 for all python files 2022-07-19 01:59:14 +02:00
mpgn fad09bd6b0 Update spider hash module to work with local auth and add reset option 2022-07-18 17:18:40 -04:00
pgormanDS 6f24cb2023
Update hash_spider.py 2022-07-16 09:20:51 -05:00
pgormanDS cb98872bfa
Merge branch 'Porchetta-Industries:master' into master 2022-07-16 09:20:25 -05:00
Defte b08f9ac64d
Update impersonate.py 2022-07-09 18:34:35 +02:00
mpgn dbc45def20 Update code 2022-07-08 07:58:14 -04:00
LuemmelSec b571158953
Create ldap-checker.py
Added a module to check for LDAP signing and channel binding settings.
2022-07-08 01:46:11 +02:00
mpgn 6a447a581c remove try catch #602 2022-07-06 11:17:24 -04:00
mpgn 94a28cd184 revert back to pywerview 0.3.3 for better compatibility 2022-07-06 09:52:53 -04:00
mpgn 560eae7e49 fix small bug with kerberoasting 2022-07-06 09:35:20 -04:00
pixis e8947d60d4 lsassy v3.1.3 2022-07-06 10:11:23 +02:00
Defte 01ad4e24a3
Add files via upload 2022-07-04 13:44:35 +01:00
choi 9e1cabada5 add shadowcoerce module 2022-06-29 19:11:46 -04:00
guervild 6e27377b90
Update mssql database.py 2022-06-29 14:14:03 +02:00
guervild 34b0683b94
Add nanodump to support MSSQL 2022-06-29 13:44:56 +02:00
guervild d09e68fd6d
Add upload/download function to mssql 2022-06-29 13:44:41 +02:00
choi 1f2cfefc9a add dfscoerce module 2022-06-29 02:09:52 -04:00
lap1nou 24cd26cca9 Fixed LDAPS with Kerberos 2022-06-28 21:12:09 +02:00
mpgn 593062ecfb
Merge pull request #569 from T1erno/master
Added Termux support
2022-06-26 21:34:14 +02:00
Dimitri Lesy e7dda670d0 Remove duplicate logic 2022-06-24 01:28:59 +02:00
Dimitri Lesy 82d5c9b500 Ensure correct domain name 2022-06-24 01:24:36 +02:00
Dimitri Lesy a6761bfa50 Add nanodump results to cmedb 2022-06-24 01:04:39 +02:00
XiaoliChan 5423728d15
[rdp.py] port redirect to "self.args.port" 2022-06-23 21:16:36 +08:00
mpgn 0e91f0467f Use forked impacket for mssql 2022-06-23 06:02:00 -04:00
T1erno 9393131de1 Added Termux support 2022-06-22 16:17:15 -05:00
mpgn e82955b7e8 Remove print from rdp 2022-06-22 04:25:01 -04:00
mpgn 7b8473a82d Fix rdp local-auth issue 2022-06-21 15:38:25 -04:00
mpgn c47c77ce2e Fix cmedb issue 2022-06-21 05:45:57 -04:00
mpgn 886b390904 Update cmedb 2022-06-20 10:37:46 -04:00
mpgn 52bc18c548 Cleanup cme 2022-06-20 07:53:30 -04:00
mpgn 75e19ae4b2
Merge pull request #545 from Serizao/master
Add smbv1 and signing into sqlite database
2022-06-18 23:50:18 +02:00
mpgn e3c8aa2966
Update db_navigator.py 2022-06-18 23:49:57 +02:00
mpgn 44e7ff155d finish adding smbv1 and signing into cmedb 2022-06-18 17:43:09 -04:00
mpgn 8a6b82a410
Merge branch 'master' into master 2022-06-18 23:14:24 +02:00
mpgn a534e244bd Merge branch 'nanodump' 2022-06-18 17:11:32 -04:00
mpgn 3a6451a4c5 Recompile the binaries x64 and x86 2022-06-18 17:05:26 -04:00
mpgn a72b1dbd08 Update dependency to latest version 2022-06-18 17:00:40 -04:00
mpgn f8bfe833d8 Smbexec improvement "STATUS_OBJECT_NAME_NOT_FOUND" with server 2019
https://github.com/SecureAuthCorp/impacket/issues/777#issuecomment-1048253251
2022-06-18 17:00:40 -04:00
mpgn 708e76d17a
Merge pull request #572 from shoxxdj/master
🚀 add support for filter user when searching for loggedon
2022-06-18 22:47:53 +02:00
Dimitri Lesy edf5722d46
Merge branch 'byt3bl33d3r:master' into master 2022-06-18 02:59:02 +02:00
Dimitri Lesy 649917ee6b Write hostname, architecture and domain in the file name 2022-06-18 02:56:55 +02:00
Dimitri Lesy e8fee88ac7 Determine architecture using os_arch 2022-06-18 00:05:27 +02:00
whipped 71bbe5fae0
Update winrm.py 2022-06-17 23:00:12 +01:00
Dimitri Lesy 942a9a7a7f Determine architecture using os_arch 2022-06-17 23:50:21 +02:00
whipped 7202fd8a46
Merge branch 'master' into winrm_ssl_options 2022-06-17 22:04:11 +01:00
mpgn 9e2846ca22
Merge pull request #561 from Gianfrancoalongi/sqlite3-crash
Stop crackmapexec crashing from concurrency-issues (tested with SMB-mode)
2022-06-17 22:14:09 +02:00
mpgn 055eb25c71
Merge pull request #570 from snovvcrash/codec
Add -codec execution option
2022-06-17 22:12:54 +02:00
Gianfranco Alongi def9d4a562
Fixed instability issues for SMB (no _Connection crash, NetBIOSTimeout crash, UnsupportedFeature-crash) (#560)
* Fixed instability issues based - the smb mode will now not crash on
 SMB object not having _Connection
 NetBIOSTimeout
 UnsupportedFeature

* Forgotten return statement

* Improved logging logic

* Improved logging
2022-06-17 22:11:28 +02:00
mpgn 75abd6148c
Merge pull request #552 from fang0654/master
Added module for finding other network addresses on a host via WMI
2022-06-17 22:10:10 +02:00
Dimitri Lesy 350ee7f2b5 Support Unicode 2022-06-17 19:19:38 +02:00
Dimitri Lesy e5d1d0c154 Support Unicode 2022-06-17 19:15:24 +02:00
Dimitri Lesy 97093f448a Fix little typo 2022-06-03 16:01:02 +02:00
Dimitri Lesy 7b8c1ffe64 NanoDump bugfixes and additions 2022-06-03 15:55:29 +02:00
shoxxdj d3b88088fc 🚀 add support for filter user when searching for loggedon 2022-04-27 11:04:23 +02:00
Sam Frees1de f183b6bcc1 Add -codec execution option 2022-04-26 16:58:03 +03:00
mpgn 58c7ff3acf Add nla output 2022-04-20 04:56:42 -04:00
mpgn 6e1f1326fb Add nla output 2022-04-20 04:34:49 -04:00
mpgn 6905795272 Add pip for aardwolf 2022-04-20 03:41:15 -04:00
Gianfranco Alongi 355b75e21f Stop crackmapexec from crashing completely when concurrency issues cause lock-contention on the database - in SMB-mode. 2022-04-03 13:38:48 +02:00
mpgn 877741c2f6 Update RDP protocol to support NLA 2022-04-01 10:02:34 -04:00
Kevin Pascoe c2d33c958e Add SSL support to winrm protocol 2022-03-31 11:52:08 +01:00
mpgn a2ae85a376 Change timeout to 10 for RDP screenshot 2022-03-15 06:43:31 -04:00
mpgn c4bd3f8490 Better error message on rdp protocol 2022-03-13 08:08:53 -04:00
mpgn bef7c4e172 Add screenshot option for RDP protocol 2022-03-13 08:01:04 -04:00
mpgn bfb40f2d4f Update RDP protocol and adding better error message 2022-03-12 06:54:40 -05:00
Dan Lawson 8eb340a1f7 Added module for finding other network addresses on a host via WMI 2022-03-11 17:00:25 -06:00
mpgn 3f08b96581 Bump to version 5.2.6 2022-03-07 13:35:57 -05:00
mpgn a04e20d6fc Update ldap #542 2022-03-06 11:58:20 -05:00
mpgn 47e6521822 Merge branch 'master' of https://github.com/byt3bl33d3r/CrackMapExec 2022-03-06 11:07:19 -05:00