recon
Run the full recon pipeline by invoking bughunter/tools/recon_engine.sh β subdomain enum (subfinder + amass + crt.sh + wayback), httpx live host probing with tech detection, nmap port scan, gau URL collection, JS analysis, ffuf directory fuzzing, parameter discovery, config exposure check, CI/CD workflow scan. Outputs to recon/<target>/. Handles FQDN, IP, CIDR, and file-of-hosts targets automatica
Install
Copy this folder into your Claude Code project (needs Node.js):
curl -fsSL --create-dirs -o .claude/commands/recon.md https://raw.githubusercontent.com/awarexone/Agentic-Bug-Hunter/HEAD/commands/recon.mdOr install it for every project:
curl -fsSL --create-dirs -o ~/.claude/commands/recon.md https://raw.githubusercontent.com/awarexone/Agentic-Bug-Hunter/HEAD/commands/recon.mdFile content
Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β
---
description: Run the full recon pipeline by invoking bughunter/tools/recon_engine.sh β subdomain enum (subfinder + amass + crt.sh + wayback), httpx live host probing with tech detection, nmap port scan, gau URL collection, JS analysis, ffuf directory fuzzing, parameter discovery, config exposure check, CI/CD workflow scan. Outputs to recon/<target>/. Handles FQDN, IP, CIDR, and file-of-hosts targets automatically. Usage: /recon target.com
---
# /recon
Run the full recon pipeline on a target. **Always invoke the production script directly** β do not re-implement the steps inline. The methodology below is reference material; the script is the entry point.
## Run This (the only required step)
```bash
# Domain (full subdomain enum + crawl + fuzz):
bash bughunter/tools/recon_engine.sh target.com
# CIDR β skips subdomain enum, runs nmap host sweep:
bash bughunter/tools/recon_engine.sh 10.0.0.0/24
# Single IP β scope-locked, no subdomain enum:
bash bughunter/tools/recon_engine.sh 192.0.2.10
# Domain list (programs without wildcard scope) β pre-resolved hosts in a file:
bash bughunter/tools/recon_engine.sh path/to/scope.txt
# Quick mode (skip amass + reduce ffuf coverage):
bash bughunter/tools/recon_engine.sh target.com --quick
```
The script auto-detects target type:
- Path to a readable file β loads it as a host list (one per line, `#` comments OK) and **skips subdomain enumeration entirely**.
- `x.x.x.x/y` β CIDR sweep (max /24, scope-locked).
- `x.x.x.x` β single IP, scope-locked.
- Anything else β treated as a domain; full enum runs.
Output lands in `recon/<target>/` (or `recon/<file-basename>/` for list mode):
```
recon/<target>/
βββ subdomains/all.txt
βββ live/urls.txt
βββ urls/all.txt
βββ candidates/{xss,ssrf,idor,sqli,redirect,lfi}.txt
βββ api-endpoints.txt
βββ nuclei/findings.txt
βββ cicd/summary.txt (if CI/CD workflows detected)
```
## Troubleshooting
### "/recon path/to/file.txt still runs subdomain enumeration"
You're on an older revision of this command file where the model re-implemented the pipeline inline and never invoked the production script. Pull latest, or run the script directly:
```bash
bash bughunter/tools/recon_engine.sh path/to/file.txt
```
You should see `[*] Domain-list target β loading <file> (skipping subdomain enum)` near the start.
### "/recon loops / doesn't actually run anything"
Same root cause as the hunt-loop bug. Run the bash directly:
```bash
bash bughunter/tools/recon_engine.sh target.com
```
Or in your prompt: "Run `bash bughunter/tools/recon_engine.sh target.com` and report the output. Do not re-implement the steps."
### "Missing tools"
```bash
bash install_tools.sh
```
Recon needs: `subfinder`, `dnsx`, `httpx` (ProjectDiscovery β not the Python CLI), `katana`, `gau`, `nuclei`, `ffuf`, `nmap`, `gf`, `anew`. The installer handles all of them.
## After Recon
1. Review `recon/<target>/live/urls.txt` β open interesting ones in a browser.
2. Check `recon/<target>/nuclei/findings.txt` β any high/critical?
3. Review `recon/<target>/api-endpoints.txt` β start IDOR testing.
4. `grep -E "admin|jenkins|grafana|gitlab" recon/<target>/live/urls.txt` β admin panels.
5. Run `/hunt target.com` to start active vulnerability testing on the recon output.
## 5-Minute Kill Signal
If after running this pipeline you see:
- All hosts return 403 even after `bughunter/tools/bypass_403.sh` + wafw00f bypass, or return only static marketing pages
- No API endpoints visible
- No interesting parameters in URLs
- nuclei returns 0 medium/high findings
**β Move on to a different target.** Don't sink hours into a dead surface.
---
# Reference: What the script does (informational)
The pipeline in `bughunter/tools/recon_engine.sh` runs these phases (numbers may shift; check the script source):
1. **Subdomain enumeration** β subfinder + Chaos API (if `$CHAOS_API_KEY` set) + amass + crt.sh + wayback.
2. **Live host discovery** β dnsx resolve, then httpx with status/title/tech-detect.
3. **Port scan** β nmap top-1000 on live hosts (CIDR mode runs a wider sweep).
4. **URL crawl** β katana deep crawl + waybackurls + gau historical.
5. **gf classification** β xss, ssrf, idor, sqli, redirect, lfi candidate files.
6. **JS analysis** β LinkFinder / SecretFinder on every JS bundle.
7. **ffuf directory fuzzing** β uses `wordlists/common.txt` (run `python3 bughunter/tools/hunt.py --setup-wordlists` once if missing).
8. **Parameter discovery** β Arjun / x8 against high-value endpoints.
9. **Config exposure** β `.git/`, `.env`, `wp-config.php`, `.DS_Store`, swagger.json, etc.
10. **CI/CD scan** β sisakulint against any GitHub Actions workflows discovered.
For the IDOR / SSRF / GraphQL / SSTI / etc. active-testing playbooks, see `/hunt` and its methodology section.