Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Add shadowcoerce module #598

Merged
merged 1 commit into from Jun 30, 2022
Merged

Add shadowcoerce module #598

merged 1 commit into from Jun 30, 2022

Conversation

ChoiSG
Copy link

@ChoiSG ChoiSG commented Jun 29, 2022

Added a module that can check MS-FSRVP ShadowCoerce authentication coercion attack.

The code is from @Shutdown/@_nwodtuhs's ShadowCoerce repo - https://github.com/ShutdownRepo/ShadowCoerce. All credit goes to @shutdown (@ShutdownRepo in Github).

If target is vulnerable

└─# poetry run crackmapexec smb 192.168.40.150 -u low -p 'Password123!' -d choi.local -M shadowcoerce 
SMB         192.168.40.150  445    DC01             [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:choi.local) (signing:True) (SMBv1:False)
SMB         192.168.40.150  445    DC01             [+] choi.local\low:Password123! 
SHADOWCO... 192.168.40.150  445    DC01             VULNERABLE
SHADOWCO... 192.168.40.150  445    DC01             Next step: https://github.com/ShutdownRepo/ShadowCoerce

If target is not vulnerable

└─# poetry run crackmapexec smb 192.168.40.151 -u low -p 'Password123!' -d choi.local -M shadowcoerce 
SMB         192.168.40.151  445    WKSTN01          [*] Windows 10.0 Build 19041 x64 (name:WKSTN01) (domain:choi.local) (signing:False) (SMBv1:False)
SMB         192.168.40.151  445    WKSTN01          [+] choi.local\low:Password123!

Using IsPathShadowCopied instead of the default IsPathSupported

└─# poetry run crackmapexec --verbose smb 192.168.40.150 -u low -p 'Password123!' -d choi.local -M shadowcoerce -o ipsc=true

< ... > 
DEBUG:root:ipsc = True
DEBUG ipsc = True
DEBUG:root:Using IsPathShadowCopied!
DEBUG Using IsPathShadowCopied!
DEBUG:root:Sending IsPathShadowCopied!
DEBUG Sending IsPathShadowCopied!
SHADOWCO... 192.168.40.150  445    DC01             VULNERABLE
SHADOWCO... 192.168.40.150  445    DC01             Next step: https://github.com/ShutdownRepo/ShadowCoerce

@mpgn
Copy link
Contributor

mpgn commented Jun 30, 2022

thanks :)

@mpgn mpgn merged commit b39e827 into byt3bl33d3r:master Jun 30, 2022
@0xAsh
Copy link

0xAsh commented Jun 30, 2022

🔥 🔥 🔥

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants