the_open_door
coffee
ESEN
← Tools

GetUserSPNs.py

Kerberoasting: service tickets of SPN accounts (impacket).

GetUserSPNs.py (Impacket) performs Kerberoasting: it requests the service tickets (TGS) of accounts with a registered SPN and returns a crackable hash. If the service account's password is weak, it is recovered offline. It needs valid domain credentials.

Family Kerberos & tickets

Flags -request -dc-ip

Concepts Kerberoasting, Hash Cracking

Cheatsheet Kerberos

Installation

# All of Impacket's *.py tools ship in the same package:
pipx install impacket
# invoke them as impacket-<tool> or <Tool>.py depending on the packaging

Useful commands5 commands

When it fails

  • KRB_AP_ERR_SKEWThe clock. Kerberos allows five minutes of drift against the domain controller, and any ticket-based attack fails until you sync with ntpdate <domain>. nmap warns about it beforehand, in the clock-skew line of smb2-time.seen in Certified

Appears in

Some machines where its use is documented; not an exhaustive list.