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.

Source facts

Repository
pruthuraut/BB-skill
Last source activity
October 5, 2026 at 17:31
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
10 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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.
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) │ │ (2 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 6 Specialized Subagents To maintain maximum depth, accuracy, and operational granularity, tasks are partitioned into 6 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)** *Checks: 25, 28* 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:** Generate and resolve contextual variations (`alterx`, `gotator`). * **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 ``` --- ### 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) * **Extract CNAME Chains:** Filter for unlinked or dangling endpoints pointing to GitHub Pages, Heroku, S3, Azure, Fastly, Shopify, etc. * **Automated Takeover Scanning:** Run Nuclei takeover templates: ```bash nuclei -l artifacts/live_subdomains.txt -t http/takeovers/ -o artifacts/takeovers.txt ``` --- ### 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`.
View on GitHub