Skip to main content

subdomainenum

Master reconnaissance skill for exhaustive 50-point subdomain enumeration, passive OSINT scraping, active multi-resolver brute-forcing, wildcard handling, and takeover auditing based on Jason Haddix's TBHM v4.

来源信息

仓库
pruthuraut/BB-skill
最近来源活动
2026年10月6日 00:41
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
13 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
subdomainenum
description
Master reconnaissance skill for exhaustive 50-point subdomain enumeration, passive OSINT scraping, active multi-resolver brute-forcing, wildcard handling, and takeover auditing based on Jason Haddix's TBHM v4.
metadata
{"version":"1.0.0","author":"Bug Bounty Multi-Agent Skills Framework","compatibility":["Antigravity / Gemini CLI","Claude Code","Cursor IDE","OpenAI Codex / OpenCode","DeepSeek"]}
# `subdomainenum` — Universal Subdomain Enumeration Skill ## Overview `subdomainenum` is a production-grade offensive reconnaissance skill designed to execute an exhaustive **50-point subdomain enumeration audit**. It implements the methodology from Jason Haddix's *The Bug Hunter's Methodology (TBHM v4)*, paired with automated multi-agent task distribution to eliminate token fatigue, shallow scans, and hallucinations. ``` [ TARGET ROOT DOMAIN ] │ ┌─────────────────────────────┼─────────────────────────────┐ ▼ ▼ ▼ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ Subagent 01 │ │ Subagent 02 │ │ Subagent 04 │ │ Passive OSINT │ │ Dorking & Code │ │ JS & Content │ │ & CT Logs │ │ Cyberspace │ │ Discovery │ │ (18 Checks) │ │ (9 Checks) │ │ (5 Checks) │ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │ │ │ └─────────────────────────────┼─────────────────────────────┘ ▼ ┌─────────────────────┐ │ Raw Discovery Pool │ └──────────┬──────────┘ ▼ ┌─────────────────────┐ │ Subagent 03 │ │ Active DNS, Brute │ │ Wildcards & MassDNS│ │ (8 Checks) │ └──────────┬──────────┘ ▼ ┌─────────────────────────────┴─────────────────────────────┐ ▼ ▼ ┌─────────────────┐ ┌─────────────────┐ │ Subagent 05 │ │ Subagent 06 │ │ DNS & Infra, │ │ Subdomain │ │ Cloud & SPF │ │ Takeover Audit │ │ (8 Checks) │ │ (50 Checks) │ └────────┬────────┘ └────────┬────────┘ │ │ └─────────────────────────────┬─────────────────────────────┘ ▼ [ FINAL VERIFIED ARTIFACTS ] • live_subdomains.txt • resolved_subdomains.json • takeovers_report.md • internal_ip_leaks.txt • 50_checklist_audit.md (50/50 Done) ``` --- ## The 8 Specialized Subagents To maintain maximum depth, accuracy, and operational granularity, tasks are partitioned into 8 focused subagents: 1. **[Subagent 01: Passive OSINT & Certificate Transparency](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_01_passive_scraping.md)** *Checks: 01, 02, 03, 04, 06, 07, 08, 09, 10, 11, 12, 13, 24, 34, 39, 43, 44, 47* 2. **[Subagent 02: Search Engine Dorking & Cyberspace Engines](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_02_dorking_cyberspace.md)** *Checks: 14, 15, 16, 30, 32, 33, 48, 49, 50* 3. **[Subagent 03: Active DNS Resolution, Bruting, Permutations & Wildcards](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_03_active_dns_brute.md)** *Checks: 05, 17, 18, 19, 20, 26, 27, 45* 4. **[Subagent 04: JavaScript Crawling, Content Discovery & Mobile Artifacts](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_04_js_content_mobile.md)** *Checks: 21, 31, 35, 41, 42* 5. **[Subagent 05: DNS Records, SPF/DMARC, Cloud Infra & Network Auditing](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_05_infra_dns_cloud.md)** *Checks: 22, 23, 29, 36, 37, 38, 40, 46* 6. **[Subagent 06: Subdomain Takeover & Dangling Resource Auditing](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/subagents/subagent_06_takeover_verification.md)** *Parent checks: 25 and 28; expands into the dedicated [50-check takeover audit](../subdomain-takeover/SKILL.md).* 7. **[Subagent 07: DNS Fuzzing with SecLists](subagents/subagent_07_dns_fuzzing.md)** *Supplemental coverage: checks 17, 18, and 19 with explicit SecLists progression and wildcard validation.* 8. **[Subagent 08: Virtual Host Discovery with SecLists](subagents/subagent_08_vhost_discovery.md)** *Supplemental coverage: shared-origin Host-header discovery with learned response baselines and SNI-aware verification.* For methodology and reference playbooks, consult: - [API Keys Configuration Reference](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/references/api_keys_config.md) - [Jason Haddix TBHM Lecture Methodology & Attack Surface Pipeline Playbook](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/references/haddix_lecture_recon_playbook.md) --- ## Master Orchestration Workflow When this skill is triggered for a target (`TARGET_DOMAIN="example.com"`): ### Phase 1: Environment & Credential Ingestion 1. Verify API provider config (`~/.config/subfinder/provider-config.yaml` or environment variables: `$SECURITYTRAILS_API_KEY`, `$SHODAN_API_KEY`, `$CENSYS_API_ID`, `$GITHUB_TOKEN`, `$FOFA_KEY`, etc.). 2. Generate a fresh, high-throughput resolver list: ```bash dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o resolvers.txt ``` 3. Initialize the artifact output workspace: `mkdir -p artifacts/`. --- ### Phase 2: Parallel Passive Harvesting (Subagents 01, 02, 04) Run passive discovery concurrently without touching target network assets: * **Invoke Subagent 01**: CT logs (`crt.sh`, Facebook CT, Google CT, CertSpotter), Passive aggregators (`subfinder`, `amass`, `assetfinder`, `findomain`, `chaos`, `recon.dev`, `bufferover`), Historical archives (`wayback`, `commoncrawl`), and Threat Intel (`virustotal`, `shodan`, `censys`, `securitytrails`). * **Invoke Subagent 02**: Automated Dorking loops (`Google -www`, `Bing`, `Yahoo`, `DDG`, `sublist3r`), Cyberspace engines (`FOFA`, `ZoomEye`), Code repository leaks (`GitHub`, `GitLab`), and Developer forums (`StackOverflow`). * **Invoke Subagent 04**: Client-side JavaScript bundles (`katana`, `SubDomainizer`, `waybackurls`), `robots.txt`, `sitemap.xml`, and decompiled mobile packages (APK/IPA). **Consolidation:** ```bash cat artifacts/subagent_01_passive_results.txt \ artifacts/subagent_02_dorking_results.txt \ artifacts/subagent_04_js_content_results.txt | \ sed 's/^[ \t]*//;s/[ \t]*$//' | tr '[:upper:]' '[:lower:]' | \ grep -E "\.${TARGET_DOMAIN}$" | sort -u > artifacts/passive_seed_candidates.txt ``` --- ### Phase 3: Active DNS Resolution, Bruting & Wildcards (Subagent 03) * **Check Authoritative Nameservers:** Test AXFR on all NS servers (`dig axfr @ns target`). * **Check DNSSEC:** Audit NSEC records for zone walking (`ldns-walk`). * **Wildcard DNS Detection:** Query random nonce domain (`rand-check-xxxx.target`). If it resolves, flag wildcard IP for filtering. * **Multi-Resolver Brute-Force:** Run `shuffledns` or `massdns` using TBHM `commonspeak2` / `all.txt`. * **SRV Records:** Enumerate service locators (`dnsrecon -t srv`). * **Permutation / Alteration:** Feed verified passive and brute-force findings into target-aware `alterx` patterns. Generate bounded prefix/suffix, environment, region, numeric, and multi-level variations; remove already-known names; then resolve the delta with wildcard filtering before merging it into the live inventory. Use [the permutation runner](scripts/run_permutations.sh) for reproducible artifacts. * **Unified Resolution via `dnsx`:** ```bash dnsx -l artifacts/passive_seed_candidates.txt \ -r resolvers.txt \ -wd ${TARGET_DOMAIN} \ -a -cname -resp \ -json -o artifacts/resolved_subdomains.json jq -r '.host' artifacts/resolved_subdomains.json | sort -u > artifacts/live_subdomains.txt ``` For dedicated SecLists-based DNS fuzzing, invoke Subagent 07 and merge only independently resolved, wildcard-filtered names. For permutation expansion, run Subagent 03 only after the first resolution pass has produced a useful seed set. Begin with names actually observed for the target, enrich from their labels, and use the smallest relevant SecLists tier. Estimate and cap candidate volume before resolution; a large generic wordlist multiplied across every pattern is not automatically better coverage. ### Phase 3B: Virtual Host Discovery (Subagent 08, when authorized) Run only when the destination IP/origin is explicitly in scope. Learn the default response from multiple random Host headers, derive FFUF match/filter settings from stable response signatures, and verify outliers with SNI-aware requests. Keep DNS-dark vhosts separate from DNS-resolved subdomains. --- ### Phase 4: Infrastructure & Network Auditing (Subagent 05) * **Mail Records:** Parse SPF `include:` / `a:` records and DMARC `rua=mailto:` tags. * **Internal IP Leaks:** Audit resolved records for RFC 1918 space (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`). * **Cloud Asset Enumeration:** Audit AWS S3 buckets, Azure Blobs, GCP Storage. * **TLS Certificate SAN Parsing:** Connect to port 443/8443 and extract Subject Alternative Names. * **Favicon MurmurHash3:** Generate hash and correlate across Shodan. --- ### Phase 5: Takeover & Dangling Resource Auditing (Subagent 06) Invoke the dedicated [subdomain-takeover skill](../subdomain-takeover/SKILL.md). Complete its 50-row ledger across CNAME, NS, MX, A/AAAA, SRV, ALIAS/ANAME, TXT, CAA, wildcard, chain, and provider-specific conditions. Scanner matches remain candidates until DNS control, dangling state, and current provider binding behavior align; never claim a resource during routine verification. --- ### Phase 6: Final Audit Report & 50-Check Verification Update the tracking matrix in: [Checklist 50 Tracker](file:///c:/Users/rautp/Documents/BBskill/.agents/skills/subdomainenum/references/checklist_50_tracker.md) Compile executive output: * `artifacts/live_subdomains.txt` — Deduplicated, resolved live subdomains. * `artifacts/resolved_subdomains.json` — Enriched metadata (A, CNAME, IPs, CDNs). * `artifacts/internal_ip_leaks.txt` — Discovered internal RFC 1918 addresses. * `artifacts/takeovers_report.md` — Verified takeover vulnerabilities with proof-of-concept steps. * `artifacts/audit_summary_report.md` — Executive 50/50 completion summary. --- ## Universal Cross-Platform Execution This skill is structured to work across any modern LLM coding assistant: * **Antigravity / Gemini CLI:** Discovered automatically via `.agents/skills/subdomainenum/SKILL.md`. * **Claude Code:** Linked directly via `CLAUDE.md` and `.claude/skills/subdomainenum/SKILL.md`. * **Cursor IDE:** Integrated via `.cursorrules` and `.cursor/rules/subdomainenum.mdc`. * **Codex / OpenCode / DeepSeek:** Referenced through `AGENTS.md`.
在 GitHub 查看