Recon Methodology: How Real Hunters Map a Target
Recon is the part where most beginners under-invest. The hunters who win consistently spend 60-70% of their time on recon and surface mapping; only the remaining 30-40% is actual vulnerability testing.
The reason: in mature programs, the bugs aren’t on the obvious endpoints. The login page has been tested by 50,000 people. The bug is on dev-staging-internal-api.target.com/v2/admin/feature-toggles that was deployed two weeks ago and nobody’s looked at yet.
The Full Recon Pipeline
Section titled “The Full Recon Pipeline”flowchart TD P1["Phase 1: Scope Mapping"] --> P2["Phase 2: Passive Subdomain Enum"] P2 --> P3["Phase 3: Active Resolution (Liveness)"] P3 --> P4["Phase 4: Content & URL Discovery"] P4 --> P5["Phase 5: JS Analysis"] P5 --> P6["Phase 6: Pattern Triage (gf)"] P6 --> P7["Phase 7: Automated Scanning (Nuclei)"] P7 --> P8["Phase 8: Surface Map & Prioritize"] style P1 fill:#ffeb99,stroke:#333,stroke-width:1px,color:#000 style P2 fill:#b3d9ff,stroke:#333,stroke-width:1px,color:#000 style P3 fill:#99ff99,stroke:#333,stroke-width:1px,color:#000 style P4 fill:#99ff99,stroke:#333,stroke-width:1px,color:#000 style P5 fill:#99ff99,stroke:#333,stroke-width:1px,color:#000 style P6 fill:#99ff99,stroke:#333,stroke-width:1px,color:#000 style P7 fill:#99ff99,stroke:#333,stroke-width:1px,color:#000 style P8 fill:#ffeb99,stroke:#333,stroke-width:1px,color:#000
Phase 1: Scope Mapping (Don’t Skip This)
Section titled “Phase 1: Scope Mapping (Don’t Skip This)”Read the program’s scope page twice. Note:
- In-scope domains (wildcards vs specific hosts)
- Out-of-scope assets (these are landmines)
- Out-of-scope vulnerability classes (e.g., “self-XSS”, “CSRF on logout”, “missing security headers”)
- Payout tiers and severity definitions
- Safe harbor language
- Any “no automated scanning” rules and at what rate
Keep this in your program notes file. You’ll come back to it.
Phase 2: Passive Subdomain Enumeration
Section titled “Phase 2: Passive Subdomain Enumeration”The goal: find every subdomain the company exposes without sending a packet to their infrastructure.
TARGET="target.com"mkdir -p ~/hunts/$TARGET/reconcd ~/hunts/$TARGET/recon
# Source 1: subfinder (40+ sources with API keys)subfinder -d $TARGET -silent -all -recursive -o subfinder.txt
# Source 2: assetfinderassetfinder --subs-only $TARGET > assetfinder.txt
# Source 3: crt.sh (Certificate Transparency)curl -s "https://crt.sh/?q=%25.$TARGET&output=json" | \ jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u > crtsh.txt
# Source 4: Chaos (ProjectDiscovery Database)curl -s "https://dns.projectdiscovery.io/dns/$TARGET/subdomains" \ -H "Authorization: $CHAOS_API_KEY" | jq -r '.[]' > chaos.txt
# Source 5: GitHub (Find subdomains leaked in public repos)github-subdomains -d $TARGET -t $GITHUB_TOKEN -o github.txt
# Merge and deduplicatecat *.txt | anew all_subs.txtecho "Total unique subdomains: $(wc -l < all_subs.txt)"Phase 3: Active Resolution and Liveness
Section titled “Phase 3: Active Resolution and Liveness”Now we send packets.
# 1. Resolve everything to find what actually has DNSdnsx -l all_subs.txt -silent -a -resp -o resolved.txt
# 2. Probe for live HTTP services (Find the web servers)httpx -l all_subs.txt \ -p 80,443,8080,8443,8888,3000,5000,8000,9000 \ -silent -title -sc -ip -tech-detect -web-server \ -o live_hosts_full.txt
# 3. Extract just the URLs for the next pipeline stepscat live_hosts_full.txt | awk '{print $1}' | anew live_urls.txtPhase 4: Content and URL Discovery
Section titled “Phase 4: Content and URL Discovery”We know the servers exist. Now we need the endpoints.
# Crawl the live hosts for linkskatana -list live_urls.txt -d 3 -jc -kf all -silent -o crawled.txt
# Historical URLs (Huge for finding deprecated endpoints that still work)cat live_urls.txt | waybackurls | anew historical.txtcat live_urls.txt | gau --subs --threads 5 | anew historical.txt
# Merge all URLs foundcat crawled.txt historical.txt | anew all_urls.txt
# Extract URLs with parameters (IDOR/SQLi/XSS candidates)grep '?' all_urls.txt | anew param_urls.txt
# Extract JS filesgrep -E '\.js(\?|$)' all_urls.txt | anew js_files.txtPhase 5: JavaScript Analysis (The 2026 Goldmine)
Section titled “Phase 5: JavaScript Analysis (The 2026 Goldmine)”Modern web apps push 80% of their logic into the browser. JS files contain:
- Hardcoded API endpoints
- Internal routes not linked from anywhere
- Feature flags
- Hardcoded credentials, API keys, AWS keys (yes, still in 2026)
- Comments referring to staging or test infrastructure
# Download interesting JS filesmkdir js_files && cd js_fileswhile read url; do wget -q "$url" -O $(echo "$url" | md5sum | cut -d' ' -f1).jsdone < ../js_files.txt
# Extract endpoints with LinkFinder or Fabricfor f in *.js; do python3 ~/tools/LinkFinder/linkfinder.py -i $f -o clidone > endpoints.txt
# Hunt for secrets with SecretFinder or simple regexgrep -Eohr 'AKIA[0-9A-Z]{16}' . | sort -u # AWS access keysgrep -Eohr 'sk_live_[0-9a-zA-Z]{24,}' . | sort -u # Stripe live keysgrep -Eohr '["\x27][a-zA-Z0-9_-]{32,}["\x27]' . | head -50 # Long string candidatesPhase 6: Pattern-Based Triage with gf
Section titled “Phase 6: Pattern-Based Triage with gf”# Classify URLs by likely vuln classcat all_urls.txt | gf idor > candidates_idor.txtcat all_urls.txt | gf ssrf > candidates_ssrf.txtcat all_urls.txt | gf xss > candidates_xss.txtcat all_urls.txt | gf sqli > candidates_sqli.txtcat all_urls.txt | gf redirect > candidates_redirect.txtcat all_urls.txt | gf debug > candidates_debug.txtPhase 7: Automated Vuln Scan with Nuclei
Section titled “Phase 7: Automated Vuln Scan with Nuclei”Run Nuclei to catch misconfigurations and CVEs.
# Broad scan — EXCLUDE dos and intrusive templates!nuclei -l live_urls.txt \ -severity medium,high,critical \ -etags dos,intrusive,fuzz \ -rate-limit 50 \ -c 25 \ -o nuclei_results.txt
# Targeted scans (Often yield better signal-to-noise)nuclei -l live_urls.txt -t takeovers/ -o takeovers.txtnuclei -l live_urls.txt -t exposures/ -o exposures.txtnuclei -l live_urls.txt -t misconfiguration/ -o misconfig.txtnuclei -l js_files.txt -t exposures/ -o js_exposures.txtPhase 8: Surface Map and Prioritize
Section titled “Phase 8: Surface Map and Prioritize”At this point you should have:
- 50-500 live hosts
- Thousands of URLs
- Dozens of JS endpoints
- Maybe 10-30 Nuclei findings (mostly informational, some real)
Stop automating. Start thinking.
Prioritize manual testing based on ROI:
- API endpoints with numeric IDs (
/api/v2/users/123,/orders/45678) → IDOR - File upload features → XSS, RCE, path traversal
- OAuth/SSO flows → auth bypass, account linking
- Search and filter inputs → SQLi, SSTI (server-side template injection), XSS
- Admin / debug / staging endpoints discovered via JS or wayback → auth bypass, info disclosure
- Subdomain takeovers from nuclei output → claim and demonstrate impact
- Old/forgotten subdomains running default-credentialed software
The “Two-Eye” Approach
Section titled “The “Two-Eye” Approach”Every professional hunter develops this rhythm:
- The Mechanical Eye: Mechanically test every endpoint for common bugs (IDOR, SSRF basics). This finds the duplicates everyone else found.
- The Business Eye: Slow down and ask: “What does this app actually do? How does it make money? What would be disastrous if it broke?”
- If it’s a ride-sharing app, figure out how to assign yourself a premium car for a basic price.
- If it’s a B2B SaaS, figure out how to view another tenant’s invoice.
The Mechanical Eye finds $250 bugs. The Business Eye finds $5,000 bugs.
Inventory Recon and Architecture Recon
Section titled “Inventory Recon and Architecture Recon”The pipeline above still works. What changed is what you are allowed to do with the output.
Inventory is a list of hosts, URLs, and template hits. In 2026 that list got cheap, and triage started treating unreviewed scanner output as noise. Keep the list. Do not submit it.
Architecture is a sentence you can test. This API version does not share the new role check. This bundle calls a route the UI never renders. This forgotten host uses the same identity provider as the main app. This worker runs after the request handler has already said yes.
When you prioritize in Phase 8, prefer a hypothesis you can confirm with two accounts over another five hundred subdomains. The numbers behind that choice are in Section 16. The questions to ask of a single feature are in Section 19.
Next step: if a WAF blocks your scans, read Section 6a. Otherwise move on to the bug classes in Section 7.
Continue in Recon Atlas
Section titled “Continue in Recon Atlas”- Read the full 16-phase methodology in Recon Atlas and the end-to-end workflow.
- Go deep on passive subdomains, JavaScript analysis, and content discovery.
- Pair recon outputs with IDOR-focused recon and WebSocket discovery.
Open local graph around this page
Linked from here
Links out to
- Recon mindset↗ Recon Atlas
- End-to-end workflow↗ Recon Atlas
- Subdomain enumeration, passive↗ Recon Atlas
- JavaScript analysis↗ Recon Atlas
- Content and API discovery↗ Recon Atlas
- Recon & Target Selection↗ IDOR Hunting
- Finding the socket↗ WebSocket
- AI-Assisted Bug Hunting: Practical LLM Workflows for 2026Bug Hunting
- The 2027 Market: Volume Went Up, Easy Bugs Did NotBug Hunting
- Business Logic: Draw the Map FirstBug Hunting
- WAF Evasion & Rate Limiting GuideBug Hunting
- High-ROI Bug Classes (With Real Disclosed Payouts)Bug Hunting
Bug Hunting for BeginnersFor authorized testing only. Read the ethics note before you put a domain in scope.