AS-REP Roasting
AS-REP Roasting is a technique that enables adversaries to steal the password hashes of user accounts that have Kerberos preauthentication disabled, which they can then attempt to crack offline.
-
An AS-REP roasting attack targets user accounts in AD
- exploiting the DONT_REQ_PREAUTH setting
- Attackers can request a ticket-granting ticket (TGT) for these accounts without needing the user's password.
-
The DC responds with an encrypted TGT
- which the attacker captures
-
This TGT is encrypted with the user's password hash
-
TGT is subjected to offline password-cracking tools such as Hashcat or John the Ripper
-
the attacker can eventually decrypt the TGT revealing the user's password.
Get AD User information
GetNPUsers.py
python3 GetNPUsers.py CEH.com/ -no-pass -usersfile /root/ADtools/users.txt -dc-ip 10.10.1.22.
no-pass: Accounts not requiring Kerberos preauthentication flag
impacket-GetNPUsers.py 'SKILL.CEH.com/' -no-pass -usersfile users.txt -dc-ip 192.168.0.144
Then use hashcat/john: hashcat#AS-REP Roasting