th3cyb3rc0p/advanced-subdomain-enumerator
GitHub: th3cyb3rc0p/advanced-subdomain-enumerator
面向安全从业者的全异步多源子域名枚举工具,通过整合被动情报、DNS暴力破解与智能排列引擎实现快速资产发现。
Stars: 0 | Forks: 0
# 高级子域名枚举工具
_subs.txt)
--concurrency Async DNS concurrency (default: 500)
--http-concurrency Async HTTP probe concurrency (default: 200)
--timeout DNS timeout seconds (default: 4)
--permute Run permutation engine after passive collection
--recursive Run one level of recursive sub-subdomain enum
--no-brute Skip DNS brute force
--no-passive Skip all passive sources
--no-probe Skip HTTP/HTTPS probing
--no-validate Skip DNS validation step
--json Export JSON report
--vt-key VirusTotal API v3 key
--st-key SecurityTrails API key
```
## 🧬 排列引擎
`--permute` 参数会激活智能变体引擎。在被动收集子域名之后,它会生成基于模式的变体并进行解析:
```
api.example.com → api-dev, api-prod, api-staging, api-v2, api-test ...
dev.example.com → dev2, devops, dev-api, dev-internal, developer ...
mail.example.com → mail2, smtp, imap, pop3, webmail ...
```
这能发现那些虽然存在但尚未被任何公开来源收录的子域名。
## 📁 输出
### 文本格式 (默认)
```
admin.example.com
api.example.com
dev.example.com
...
```
### JSON 格式 (`--json`)
```
{
"domain": "example.com",
"timestamp": "2026-08-01T17:35:00Z",
"total": 412,
"live_http": 89,
"subdomains": [
{
"fqdn": "api.example.com",
"a": ["93.184.216.34"],
"cname": [],
"http": {"status": 200, "title": "API Gateway", "server": "nginx"},
"https": {"status": 200, "title": "API Gateway", "server": "nginx"}
}
]
}
```
## 🔑 API 密钥 (可选)
| 服务 | 免费额度 | 获取密钥 |
|---------|-----------|---------|
| VirusTotal | 4 次请求/分钟 | [virustotal.com](https://www.virustotal.com/gui/join-us) |
| SecurityTrails | 50 次请求/月 | [securitytrails.com](https://securitytrails.com/corp/api) |
## 📊 性能基准测试 (google.com — 仅被动枚举)
| 工具 | 发现数量 | 耗时 | 来源 |
|------|------:|------|---------|
| **本工具 v3.0** | ~800–1200 | ~6s | 15 个并发 |
| 本工具 v2.0 | 274 | 28s | 7 个串行 |
| Subfinder | 7,969 | 90s | 40+ |
| Findomain | 4,732 | 30s | CT 日志 |
## ⚠️ 免责声明
## 📄 许可证
MIT 许可证 — 详情请参阅 [LICENSE](LICENSE)。
## 👨💻 作者
**th3cyb3rc0p** · [GitHub](https://github.com/th3cyb3rc0p)
```
███████╗██╗ ██╗██████╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ██╗███╗ ██╗
██╔════╝██║ ██║██╔══██╗██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██║████╗ ██║
███████╗██║ ██║██████╔╝██║ ██║██║ ██║██╔████╔██║███████║██║██╔██╗ ██║
╚════██║██║ ██║██╔══██╗██║ ██║██║ ██║██║╚██╔╝██║██╔══██║██║██║╚██╗██║
███████║╚██████╔╝██████╔╝██████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ██║██║██║ ╚████║
╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝
E N U M E R A T O R v 3 . 0 [ A S Y N C ]
```





**一款专为漏洞赏金猎人和渗透测试人员打造的极速、全异步多源子域名枚举工具。**
## ⚡ v3.0 有哪些新特性
| | v2.0 | v3.0 |
|--|------|------|
| **架构** | 线程 + requests | `asyncio` + `aiohttp` + `aiodns` |
| **被动枚举速度** | ~28s (串行) | ~5–8s (全并发) |
| **DNS 并发** | 100 个线程 | 500 个异步查询 |
| **被动来源** | 7 | **15** |
| **排列引擎** | ❌ | ✅ |
| **递归枚举** | ❌ | ✅ |
| **连接池** | ❌ | ✅ (200 个持久连接) |
## 🛠️ 功能特性
| 技术 | 类型 | 描述 |
|-----------|------|-------------|
| 🔐 **Certificate Transparency (crt.sh)** | 被动 | CT 日志 |
| 🔏 **CertSpotter (SSLMate)** | 被动 | 第二 CT 来源 |
| 🌐 **HackerTarget** | 被动 | 被动 DNS |
| 👾 **AlienVault OTX** | 被动 | 威胁情报 |
| 📼 **Wayback Machine** | 被动 | URL 存档 |
| 🕵️ **ThreatCrowd** | 被动 | 威胁情报 |
| 🔍 **URLScan.io** | 被动 | 浏览器扫描数据库 |
| ⚡ **RapidDNS** | 被动 | DNS 数据集 |
| 🗄️ **Anubis-DB** | 被动 | 被动 DNS |
| 📡 **BufferOver** | 被动 | FDNS 数据集 |
| 🖥️ **Shodan (免费版)** | 被动 | 互联网扫描 |
| 💧 **LeakIX** | 被动 | 数据泄露搜索 |
| 🌍 **Netlas** | 被动 | 互联网情报 |
| 🦠 **VirusTotal** | 被动 | API 密钥可选 |
| 🔑 **SecurityTrails** | 被动 | API 密钥可选 |
| 💣 **异步 DNS 暴力破解** | 主动 | 500 个并发查询 |
| 🧬 **排列引擎** | 主动 | 智能子域名变体 |
| 🔄 **递归枚举** | 主动 | 子级域名发现 |
| 🎭 **通配符检测** | 主动 | 自动过滤误报 |
| ✅ **异步 DNS 验证** | 主动 | A + CNAME 多记录 |
| 🌍 **异步 HTTP/S 探测** | 主动 | 状态码、标题及服务器 banner |
| 📊 **JSON 报告** | 输出 | 机器可读的完整报告 |
## 📦 安装说明
```
git clone https://github.com/th3cyb3rc0p/advanced-subdomain-enumerator.git
cd advanced-subdomain-enumerator
pip3 install -r requirements.txt
```
### 可选:uvloop (Linux/macOS — 额外的速度提升)
```
pip3 install uvloop
```
### 可选:下载大型字典
```
mkdir -p wordlists
curl -L "https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/subdomains-top1million-5000.txt" \
-o wordlists/subdomains-5k.txt
```
## 🚀 用法
### 快速被动扫描 (15 个来源全部并发,约 5–8 秒)
```
python3 subdomain_enum.py -d example.com --no-brute
```
### 全面扫描 — 被动枚举 + 暴力破解 + 排列组合
```
python3 subdomain_enum.py -d example.com -w wordlists/subdomains-5k.txt --permute
```
### 最大覆盖范围
```
python3 subdomain_enum.py -d example.com \
-w wordlists/subdomains-5k.txt \
--permute --recursive \
--vt-key YOUR_VT_KEY \
--st-key YOUR_ST_KEY \
--json \
--concurrency 600
```
### 仅被动枚举 + JSON 报告 (不进行探测)
```
python3 subdomain_enum.py -d example.com --no-brute --no-validate --no-probe --json
```
## ⚙️ 所有选项
```
-d, --domain Target domain (required)
-w, --wordlist Wordlist for brute force
-o, --output Output file (default: ⭐ 如果您觉得这个项目有用,请给仓库点个 Star!
标签:GitHub, Python, 子域名枚举, 实时处理, 异步编程, 无后门, 系统安全, 计算机取证, 逆向工具