Skip to content

Request a certificate from AD CS using a user supplied Subject Alternative Name (SAN)

Notifications You must be signed in to change notification settings

breakfix/ADCS_SAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

ADCS_SAN.py

Request a certificate from AD CS using a user supplied Subject Alternative Name (SAN). This will build a CSR to be submitted directly to the AD CS web enrollment endpoint over HTTP.

Makes use of existing code added to SecureAuthCorp's Impacket library by the below authors as well as the attacks and techniques outline by SpecterOps in their paper Certified Pre-Owned.

Alberto Solino (@agsolino) Dirk-jan Mollema (@_dirkjan) / Fox-IT (https://www.fox-it.com) Ex Android Dev (@ExAndroidDev) Juan Manuel Fernández @TheXC3LL for adding NTLM pth support

Usage

python adcs_san.py -s http://ADCS-Server -u ADusername -p 'password' -d ADdomain -t template -i impersonate_user -o 'pfx password'

NTLM pass-the-hash is supported via the --hash flag where the value of -p is an NTLM hash.

About

Request a certificate from AD CS using a user supplied Subject Alternative Name (SAN)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages