Pass the Hash with Kerberos
This blog post may be of limited use, most of the time, when you have an NTLM hash, you also have the tools to use it. But, if you find yourself in a situation where you don’t have the tools and do happen to have kerberos tools, you can pass the hash with it.
Lets say with have the NTLM hash for the user uberuser
and the hash is 88e4d9fabaecf3dec18dd80905521b29
. The first step to do so is to create a keytab file using ktutil
:
|
|
At the ktutil
prompt, type in the “add entry” (addent
) command with the “principals” (-p
) flag. Specify the user and an all uppercase version of the FQDN. Then the “KVNO” (-k 1
), which is the key number. Finally the encryption type, which is rc4-hmac
for NTLM hashes:
|
|
After you hit enter you’ll get prompted for the rc4-hmac (NTLM) hash:
|
|
Then we write the keytab file to disk and exit ktutil
|
|
The last step before we can use our authentication is to create a kerberos ticket using our keytab file.
|
|
Validate it with klist
:
|
|