AD Attacking Kerberos
Kerbrute
Installation
Download a precompiled binary for your OS - https://github.com/ropnop/kerbrute/releases
Rename kerbrute_linux_amd64 to kerbrute
chmod +x kerbrute
- make kerbrute executable
Enumerating Users
cd into the directory that you put Kerbrute
Download the wordlist to enumerate with here
Brute force user accounts from a domain controller using a supplied wordlist:
Rubeus
Harvesting Tickets
Harvesting gathers tickets that are being transferred to the KDC and saves them for use in other attacks such as the pass the ticket attack.
Brute-Forcing / Password-Spraying
Rubeus can both brute force passwords as well as password spray user accounts.
Be mindful of how you use this attack as it may lock you out of the network depending on the account lockout policies.
Kerberoasting
Rubeus
Copy the hash to Kali into a .txt file so it can be cracked using hashcat:
Impacket
Impacket releases have been unstable since 0.9.20 I suggest getting an installation of Impacket < 0.9.20
Download the precompiled package from: https://github.com/SecureAuthCorp/impacket/releases/tag/impacket_0_9_19
AS-REP Roasting
Pass the Ticket
Prepare Mimikatz & Dump Tickets
Pass the Ticket
Now that we have our ticket ready we can now perform a pass the ticket attack to gain domain admin privileges.
You now have impersonated the ticket giving you the same rights as the TGT you're impersonating.
Golden / Silver Ticket Attack
Dump the krbtgt hash
Create a Golden/Silver Ticket
Creating a golden ticket to create a silver ticket simply put a service NTLM hash into the krbtgt slot, the sid of the service account into sid, and change the id to 1103:
Demo:
Use the Golden/Silver Ticket to access other machines
This will open a new elevated command prompt with the given ticket in mimikatz:
Access machines that you want, what you can access will depend on the privileges of the user that you decided to take the ticket from however if you took the ticket from krbtgt you have access to the ENTIRE network hence the name golden ticket; however, silver tickets only have access to those that the user has access to if it is a domain admin it can almost access the entire network however it is slightly less elevated from a golden ticket.
Last updated