Commit Graph

725 Commits (9a1e52f176c7db4087ec86ec446109085e433762)

Author SHA1 Message Date
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 db79f5a487 Bump to 5.4.1 2022-11-10 16:08:17 -05: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
Julio Ureña a5c30851c0
Fix output always returning false
Based on Neo4j documentation https://neo4j.com/docs/api/python-driver/current/api.html#neo4j.Result I added some modification to the result variable.

The way it was code, `result.value()` always return 0.
2022-11-09 15:39:43 -04:00
Julio Ureña ba690f93fd
Added the option to select architecture (64 or 32)
The module only allowed 32 bits, with this change it is possible to select 32 bits or 64 bits architecture.
2022-11-09 07:07:29 -04:00
Julio Ureña ccfd9565e0
Fix #671 - handlekatz modules fail
handlekatz modules fail if directory /tmp/shared does not exist. I changed the directory from /tmp/shared to /tmp and the option description.
2022-11-08 11:14:00 -04:00
Julio Ureña 61757a2cd2
Fix #671 - procdump modules fail
procdump modules fail if directory /tmp/shared does not exist. I changed the directory from /tmp/shared to /tmp and the option description.
2022-11-08 11:13:05 -04:00
shoxxdj 0990b4fa8b bugfix : cant export csv 2022-11-08 15:15:54 +01:00
mpgn e4f6343646 Bump to 5.4.0 2022-11-08 05:08:23 -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
mpgn 4562cea72a
Merge pull request #669 from juliourena/master
Fix #668 - Remove @requires_admin flag for WMI queries
2022-11-07 21:07:29 +01:00
mpgn 60e3dda195
Merge pull request #601 from Dfte/master
Add the Impersonate module
2022-11-07 12:26:37 +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 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