Kerberoasting with VirtuProbe: from an SPN to a hashcat-ready hash.
AS-REP Roasting and Kerberoasting, two standard moves against an Active Directory domain, both come down to asking the domain's Key Distribution Center (KDC) for a ticket and cracking what comes back offline. Let's have a look at how to run both in VirtuProbe, why it helps to talk to the KDC directly instead of through a Kerberos library and how to chain the whole thing off an LDAP lookup.
Both techniques get the KDC to hand back something encrypted with a key derived from an account's password, so the guessing happens offline where no lockout policy applies. AS-REP Roasting only works against accounts with Kerberos pre-authentication switched off. Kerberoasting needs no misconfiguration at all, just valid domain credentials and a service account with a Service Principal Name (SPN).
VirtuProbe's Kerberos probe talks directly to the KDC through a hand-rolled RFC 4120 implementation, with no GSSAPI and no third-party Kerberos library in between.
The setup
Add a Kerberos probe and point it at the domain controller. The connection settings are minimal:
- KDC Host: the domain controller's hostname or IP.
- Port:
88by default. - Realm: the Kerberos realm, uppercase (e.g.
LAB.LOCAL). - UDP: on by default. The probe retries over TCP when the KDC answers that the reply is too big for UDP (
KRB_ERR_RESPONSE_TOO_BIG). Turn UDP off to use TCP throughout.
AS-REP Roasting, no password required
AS-REP Roasting targets accounts that have Do not require Kerberos pre-authentication set (DONT_REQUIRE_PREAUTH). Normally the client proves it knows the password by encrypting a timestamp before the KDC will respond. With pre-auth off, the KDC sends an AS-REP whose encrypted part uses a key derived from the account's password to anyone who asks for it.
Set the probe's Operation to AS-REP Roast and give it only a username. If the account is vulnerable, the response comes back with the hash already formatted for hashcat mode 18200:
$krb5asrep$23$[email protected]:a1b2c3...16hex...$rest...
The hash lands in a copy-ready card labeled with its hashcat mode. Copy it into a file for hashcat:
hashcat -m 18200 hash.txt wordlist.txt
If the account requires pre-auth (the normal case), you get a clean FAIL with no hash instead. That makes the probe a fast enumeration sweep: run it across a username list and the hits are the misconfigured accounts.
Kerberoasting, service tickets for any SPN
With any valid domain credentials you obtain a TGT, then request a service ticket (TGS) for a target SPN. The service ticket's encrypted part is sealed with a key derived from the service account's password, so cracking it gives you the password of an account that is often highly privileged.
Switch the Operation to Kerberoast and fill in:
- Username and Password: any account you can already authenticate as.
- SPN: the service to request, e.g.
HTTP/web.lab.localorMSSQLSvc/db.lab.local:1433.
The probe authenticates, pulls the TGT, requests the service ticket and returns the hash in hashcat mode 13100 format:
$krb5tgs$23$*svc_iis*LAB.LOCAL*HTTP/web.lab.local*$a1b2c3...16hex...$rest...
hashcat -m 13100 hash.txt wordlist.txt
Why hand-rolled matters here
The probe implements RFC 4120 (Kerberos V5) and RFC 4757 (RC4-HMAC-MD5) from scratch: hand-written ASN.1 DER, the full MD4 NT-hash → key-derivation → RC4 → HMAC-MD5 path, UDP with TCP fallback.
The Exchanges panel shows every message pair (AS-REQ / AS-REP and TGS-REQ / TGS-REP) down to the raw DER hex, exactly as each message went out and came back. When a KDC does something subtly non-standard, you can read in the hex why a request failed.
Chaining it with LDAP
A Kerberos probe goes into a chain like any other, next to steps for the other protocols. An Active Directory flow looks like this:
- LDAP: query the directory for accounts with an SPN set (the Kerberoastable ones) and for accounts with pre-auth disabled (the AS-REP-roastable ones).
- Iterate: drive a Kerberos step over that list with an
ITERATEloop; feed it from the LDAP result or a wordlist file, with jitter between requests and stop-on-first-success if you want it. - Extract: pull each result into the chain with
KERBEROS_SUCCESS,KERBEROS_HASHandKERBEROS_ERROR_CODE, collecting the crackable hashes as you go.
That puts enumeration and roasting into one chain you can replay on the next engagement. The last twenty runs stay in the chain's history and each one exports as structured JSON for the report.
Try it on a lab domain. VirtuProbe Studio is free to download, with no account, no cloud and no telemetry.