krb (Kerberos)
Thekrb command provides Kerberos ticket operations: obtaining TGTs and TGSs, and extracting NT hashes via PKINIT + UnPAC-the-Hash.
Usage
Persistent Flags
| Flag | Description |
|---|---|
--dcs | Load domain controllers from the database as targets |
Subcommands
krb tgt
Obtain a Ticket Granting Ticket (TGT) for an account.
Flags
| Flag | Description |
|---|---|
--upn | User Principal Name (optional override) |
--key | Private key file for shadow credential / key-only PKINIT |
--pfx | PFX file for PKINIT authentication |
--pfx-password | PFX passphrase |
--aes | AES-128 or AES-256 key |
- Written to a ccache file (path printed to stdout)
- Stored in the
tgtstable in SQLite - Linked to the active credential record
krb tgs
Obtain a Ticket Granting Service ticket (TGS) for a specific SPN. Used for Kerberoasting.
Flags
| Flag | Description |
|---|---|
--spn | Target Service Principal Name (required) |
--sid | Target account SID |
- Written as a kirbi/ccache file
- Output in hashcat format for offline cracking (
$krb5tgs$23$...) - Stored in the
tgsstable and the hash inkerberoast_hashes
krb nt
Extract the NT hash of an account using PKINIT + UnPAC-the-Hash.
This requires a valid certificate for the target account. Authenticate via Kerberos PKINIT to receive a TGT, then extract the NT hash embedded in the PAC (Privilege Attribute Certificate).
Flags
| Flag | Description |
|---|---|
--upn | Override the UPN used for PKINIT |
credentials table.
This is the same operation asadcs nt— both subcommands perform PKINIT + UnPAC-the-Hash.krb ntis the Kerberos-centric entry point,adcs ntis the ADCS-centric one.
Kerberos Authentication Methods
R4t supports all standard Kerberos authentication pre-authentication methods:| Method | Description |
|---|---|
| Password | Standard PA-ENC-TIMESTAMP |
| NT Hash | RC4-HMAC pre-auth |
| AES Key | AES-128 or AES-256 pre-auth |
| PKINIT (PFX) | Public key pre-authentication with PFX certificate |
| PKINIT (PEM) | Public key pre-authentication with PEM cert + key |
| PKINIT (Key-only) | Shadow credential attack — key without a certificate |
Ticket Storage
| Table | Contents |
|---|---|
tgts | Kerberos TGTs (base64-encoded ticket, expiry, target DC) |
tgss | Kerberos TGSs (ticket, SPN, encryption type) |
kerberoast_hashes | Kerberoastable TGS hashes in hashcat format |
asrep_hashes | AS-REP roastable hashes |

