Complete Recon
Master Checklist
Every phase. Every tool. Every command. Step-by-step guide used by elite bug bounty hunters and professional red teamers β from zero to full attack surface map.
Environment Setup β Ek Baar Karo
βΌBefore Everything
Har target ke liye ek dedicated folder structure banao. Har command ka output save karo β baad mein kaam aata hai. Ye habit tujhe baaki hunters se aage rakhegi.
Target Scoping & Intelligence
βΌGoal
Program ke rules samjho, attack surface define karo, aur target ka business context build karo β bina ek bhi tool chalaaye. Ye most underrated step hai.
cat > ~/recon/$TARGET/scope/scope.txt
Root Domain Analysis
βΌGoal
WHOIS, DNS records, ASN discovery, aur reverse WHOIS se organization ke saare registered domains aur IP ranges map karo.
sudo apt install whois -y
sudo apt install dnsutils -y
Subdomain Enumeration β Passive
βΌGoal
Target ke server ko touch kiye bina β internet ke existing databases se saare subdomains collect karo. Completely silent. Stealth level: maximum.
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
sudo apt install amass -y
*.corp.target.com,
*.internal.target.com in crt.sh = gold. Ye internal naming convention reveal
karta hai β brute force wordlist mein add karo immediately.go install github.com/tomnomnom/assetfinder@latest
Subdomain Enumeration β Active (DNS Brute Force)
βΌGoal
Wordlist se potential subdomain names guess karke DNS query bhejte hain. Passive se 3x zyada subdomains nikaal sakta hai β especially those not in public CT logs.
go install github.com/d3mondev/puredns/v2@latest
go install github.com/Josue87/gotator@latest && go install github.com/projectdiscovery/alterx/cmd/alterx@latest
Live Host Resolution, Probing & Port Scanning
βΌGoal
DNS resolve karo β live web servers identify karo β non-standard ports scan karo. Non-standard ports often host dev tools, admin panels, CI/CD, aur internal services.
go install -v github.com/projectdiscovery/dnsx/v2/cmd/dnsx@latest
go install -v github.com/projectdiscovery/httpx/v2/cmd/httpx@latest
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
go install github.com/sensepost/gowitness@latest
Technology Fingerprinting
βΌGoal
Exact tech versions fingerprint karo β headers, cookies, error pages, favicon hashes. Version pata chala = CVE search possible.
sudo apt install whatweb -y
pip3 install shodan --break-system-packages && shodan init YOUR_API_KEY
Content Discovery (Directory & File Brute Force)
βΌGoal
Wordlist se hidden directories aur files dhundho β .env, .git/, admin panels, API docs, backup files, debug endpoints. Ye phase sabse zyada quick wins deta hai.
go install github.com/ffuf/ffuf/v2@latest
sudo apt install feroxbuster -y
URL Collection (Passive + Active Crawling)
βΌGoal
Historical URLs + live crawling se complete URL map banao. Filter karo: .env files, backup files, API endpoints, admin panels, parameters.
pip3 install waymore --break-system-packages && go install github.com/tomnomnom/waybackurls@latest && go install github.com/lc/gau/v2/cmd/gau@latest
go install github.com/projectdiscovery/katana/cmd/katana@latest && go install github.com/hakluke/hakrawler@latest
JavaScript Analysis
βΌGoal
JS files = gold mine. Modern SPAs mein ALL routing logic, API endpoints, feature flags, role names, aur sometimes credentials hote hain. Ye sabse important recon step hai.
git clone https://github.com/GerbenJavado/LinkFinder && pip3 install -r LinkFinder/requirements.txt && go install github.com/BishopFox/jsluice/cmd/jsluice@latest
Secret Discovery
βΌGoal
JS files, GitHub repos, aur configs mein hardcoded secrets dhundho β AWS keys, API tokens, passwords, JWT secrets, database connection strings.
sudo apt install gh -y && gh auth login
Parameter Discovery
βΌGoal
Hidden parameters dhundho β debug params, admin flags, user ID params. Debug params jo security checks disable karte hain ya verbose output dete hain.
pip3 install arjun --break-system-packages
API & GraphQL Recon
βΌGoal
API documentation dhundho (Swagger/OpenAPI), GraphQL schema leak karo, aur saare API endpoints test karo β unauthenticated access, IDOR, mass assignment.
Cloud & Infrastructure Mapping
βΌGoal
CDN origin IPs dhundho, cloud buckets enumerate karo, Docker Hub check karo, aur GitHub org source code leaks dhundho.
pip3 install s3scanner cloud-enum --break-system-packages
Subdomain Takeover Detection
βΌGoal
Orphaned DNS records dhundho jahan CNAME points to unclaimed third-party services. Claim karo β full control over subdomain β cookie stealing, phishing, XSS.
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest && go install github.com/haccer/subjack@latest
403 Forbidden Bypass Techniques
βΌGoal
403 response = resource exists but blocked. Headers, path obfuscation, aur HTTP methods se bypass karo β yahan hidden admin panels, APIs, aur restricted content milte hain.
Vulnerability Hunting Preparation
βΌGoal
Recon se jo information mili hai usse organize karo aur har vulnerability type ke liye specific targets identify karo. Automation se detect hone wali vulnerabilities pehle scan karo.
Manual Deep Dive
βΌGoal
Automation jo nahi dhundh sakta β business logic flaws, chained vulnerabilities, aur context-based bugs β manually explore karo. Ye step sabse bade bounties deta hai.
Master Automation Pipeline β One Script to Rule All
βΌComplete Automation
Ye script saare passive + active recon steps automatically run karta hai. Target set karo aur chhod do β kuch minutes mein complete attack surface map ready.
master_recon.sh β chmod +x master_recon.sh β
./master_recon.sh target.com β Ek command mein complete Phase 1-8 automated. Manual
phases (9-17) ke liye output files use karo.