// ELITE BUG BOUNTY β€” MASTER RECON FRAMEWORK

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.

17Phases
100+Steps
60+Tools
∞Attack Surface
ENV

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.

# ── Dedicated target folder structure ────────────────────────────── export TARGET="target.com" mkdir -p ~/recon/$TARGET/{scope,subdomains,live,ports,urls,js,params,endpoints,secrets,screenshots,content,notes} cd ~/recon/$TARGET echo "[*] Workspace ready for: $TARGET" # ── Install all tools (run once) ─────────────────────────────────── # Go tools go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest go install -v github.com/projectdiscovery/httpx/v2/cmd/httpx@latest go install -v github.com/projectdiscovery/dnsx/v2/cmd/dnsx@latest go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest go install -v github.com/projectdiscovery/katana/cmd/katana@latest go install -v github.com/projectdiscovery/alterx/cmd/alterx@latest go install github.com/d3mondev/puredns/v2@latest go install github.com/tomnomnom/assetfinder@latest go install github.com/tomnomnom/waybackurls@latest go install github.com/tomnomnom/anew@latest go install github.com/tomnomnom/unfurl@latest go install github.com/lc/gau/v2/cmd/gau@latest go install github.com/sensepost/gowitness@latest go install github.com/hakluke/hakrawler@latest go install github.com/jaeles-project/gospider@latest go install github.com/Josue87/gotator@latest go install github.com/BishopFox/jsluice/cmd/jsluice@latest go install github.com/denandz/sourcemapper@latest go install github.com/ffuf/ffuf/v2@latest # Apt tools sudo apt install -y amass dirsearch feroxbuster seclists gh nmap masscan # Python tools pip3 install waymore arjun shodan trufflehog gitleaks git-dumper --break-system-packages # Wordlists wget https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/all.txt -O ~/wordlists/jhaddix_all.txt wget https://raw.githubusercontent.com/trickest/resolvers/main/resolvers.txt -O ~/wordlists/resolvers.txt
01

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.

1.1 β€” Scope File Document Karo
ManualCRITICAL
β–Ό
Purpose: Out-of-scope asset test karne par program se directly remove kar dete hain β€” koi warning nahi milti. Scope pehle document karo.
Command
cat > ~/recon/$TARGET/scope/scope.txt
# Scope file banao β€” SABSE PEHLE YE KARO cat > ~/recon/$TARGET/scope/scope.txt << EOF === IN SCOPE === $TARGET www.$TARGET [add all in-scope wildcards] === OUT OF SCOPE === [jo program ne bola hai woh likho] === SPECIAL RULES === [rate limiting, no automated scanning, etc.] === PROGRAM TYPE === [HackerOne / Bugcrowd / Private β€” platform name] EOF # Hacktivity check karo (HackerOne) # hackerone.com/[program]/hacktivity β†’ past reports padho # Duplicate avoid karo + attack vectors samjho
1.2 β€” Tech Stack Intelligence (LinkedIn + Job Postings)
Browser/ManualHIGH
β–Ό
Purpose: Job postings DevOps/Engineering roles reveal exact tech stack β€” AWS, Kubernetes, Terraform, PostgreSQL, etc. Ye pata chalne se attack surface narrow hota hai.
# LinkedIn pe dhundho: # Company page β†’ Jobs β†’ Filter: Engineering, DevOps, Security # Job posting mein ye keywords dhundho: AWS / GCP / Azure β†’ Cloud provider Kubernetes / Docker β†’ Container infra PostgreSQL / MongoDB β†’ Database tech Node.js / Python / Java β†’ Backend language React / Angular / Vue β†’ Frontend framework Nginx / Apache β†’ Web server Terraform / Ansible β†’ IaC tools β†’ internal naming clues # Tech stack save karo cat > ~/recon/$TARGET/notes/tech_stack.md << EOF Cloud: [AWS / GCP / Azure] Backend: [language + framework] Database: [db tech] Frontend: [React / Angular / Vue] DevOps: [K8s / Docker / Terraform] CDN: [Cloudflare / Fastly / Akamai] Email: [SendGrid / Mailgun / SES] EOF
1.3 β€” Company Research (Acquisitions + Products)
Crunchbase / BrowserHIGH
β–Ό
Purpose: Acquired companies ki infrastructure often forgotten aur poorly maintained hoti hai β€” goldmine for bugs.
# Browser pe manually check karo: crunchbase.com/organization/[target] β†’ acquisitions list linkedin.com/company/[target]/about β†’ company overview github.com/[target-org] β†’ public repos # Kya dhundho: - Acquired startups β†’ unka domain still live? - Old product names β†’ still have backend APIs? - App Store / Play Store β†’ old apps β†’ backend still running? - Old Twitter handles β†’ linked to old infrastructure?
02

Root Domain Analysis

β–Ό

Goal

WHOIS, DNS records, ASN discovery, aur reverse WHOIS se organization ke saare registered domains aur IP ranges map karo.

2.1 β€” WHOIS Lookup
whois / cliHIGH
β–Ό
Purpose: Registrant email + org name milega β†’ reverse WHOIS ke liye use karo. Old domain = forgotten assets. Own nameserver = more attack surface.
Install
sudo apt install whois -y
# Basic WHOIS whois $TARGET | tee ~/recon/$TARGET/notes/whois.txt # Specific fields extract karo whois $TARGET | grep -Ei "registrar|created|expires|name server|org|email|admin" # Kya note karo: # Registrar: β†’ Cloudflare / GoDaddy? # Creation Date: β†’ 2009 ka domain = forgotten assets honge # Name Server: β†’ ns1.target.com = apna DNS server # cloudflare.com = CDN confirm # Registrant Email: β†’ admin@targetcorp.com β†’ save for reverse WHOIS # Registrant Org: β†’ "Target Corp Inc" β†’ exact legal name
2.2 β€” DNS Records Deep Dive
dig / nslookupCRITICAL
β–Ό
Purpose: TXT records ek gold mine hain β€” company ki saari third-party services reveal hoti hain. Har service = potential integration = potential attack surface.
Install
sudo apt install dnsutils -y
# All records at once dig $TARGET ANY +noall +answer | tee ~/recon/$TARGET/notes/dns_records.txt # Individual records dig $TARGET A # Main IP dig $TARGET MX # Mail server β†’ mail.target.com type hints dig $TARGET NS # Nameservers dig $TARGET TXT # SPF, DKIM, verification tokens β€” GOLD dig $TARGET CNAME # Redirects dig $TARGET SOA # Zone info # Zone transfer (rarely works but always try) dig axfr $TARGET @ns1.$TARGET # TXT record examples & what they mean: # "v=spf1 include:sendgrid.net" β†’ SendGrid use karte hain # "google-site-verification=xxx" β†’ Google Search Console # "atlassian-domain-verification" β†’ Jira/Confluence internal tools # "MS=msXXXXXX" β†’ Microsoft 365 / Azure AD
πŸ”₯
Zone Transfer Success Saare subdomains ek hi command mein milenge β€” extremely rare but instant jackpot. Immediately save karo.
πŸ’‘
TXT Records Har third-party service = alag attack surface. Atlassian found? Jira/Confluence check karo. SendGrid found? Email spoofing test karo.
2.3 β€” ASN Discovery & IP Range Mapping
bgpview / ipinfo / amassHIGH
β–Ό
Purpose: Company ke saare IP blocks dhundho β€” yahan forgotten servers, internal tools, aur non-CDN origins milte hain.
# Method 1: IP se ASN dhundho curl -s https://ipinfo.io/$(dig +short $TARGET) | python3 -m json.tool # Output mein "org": "AS12345 Target Corp" milega # Method 2: ASN ke saare IP ranges pull karo curl -s https://api.bgpview.io/asn/ASN_NUMBER/prefixes \ | python3 -c " import json,sys d=json.load(sys.stdin) for p in d['data']['ipv4_prefixes']: print(p['prefix']) " | tee ~/recon/$TARGET/notes/ip_ranges.txt # Method 3: Amass intel amass intel -org "Target Corp" -asn | tee ~/recon/$TARGET/notes/asn.txt # Method 4: bgp.he.net manually check karo in browser # bgp.he.net β†’ search "Target Corp Name"
2.4 β€” Reverse WHOIS (Related Domains)
viewdns / whoxy / domaintoolsHIGH
β–Ό
Purpose: Registrant email se company ke saare registered domains dhundho β€” different TLDs, marketing domains, acquired product domains.
# Browser pe manually check karo: viewdns.info/reversewhois/ β†’ registrant email ya org name se whoxy.com/reverse-whois/ β†’ same process domaintools.com/reverse-whois/ β†’ paid but free preview deta hai # Discovered related domains save karo cat > ~/recon/$TARGET/notes/related_domains.txt << EOF $TARGET ← main $TARGET.io ← alternative TLD get$TARGET.com ← marketing domain [add more as found] EOF # Each related domain = run full phase 2-onwards recon again
03

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.

3.1 β€” Subfinder (40+ Passive Sources)
subfinderCRITICAL
β–Ό
Purpose: 40+ sources (crt.sh, VirusTotal, Shodan, URLScan, SecurityTrails, etc.) se ek saath subdomains collect karo. API keys add karo for 3x more results.
Install
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
# Basic run subfinder -d $TARGET -o subdomains/subfinder.txt # Full power β€” all sources + recursive subfinder -d $TARGET \ -all \ # saare sources use karo -recursive \ # subdomains ke subdomains bhi -silent \ -o subdomains/subfinder.txt echo "[+] Subfinder: $(wc -l < subdomains/subfinder.txt) subdomains" # API keys add karo for best results # nano ~/.config/subfinder/provider-config.yaml # securitytrails: [key] β†’ securitytrails.com (free) # shodan: [key] β†’ shodan.io (free tier) # virustotal: [key] β†’ virustotal.com (free) # censys: [id:secret] β†’ censys.io (free)
3.2 β€” Amass (OSINT + Graph Database)
amassCRITICAL
β–Ό
Purpose: Amass ASN→IP→Hostname relationships map karta hai. Subfinder se zyada thorough — OSINT + certificate + DNS sources combine karta hai intelligently.
Install
sudo apt install amass -y
# Passive mode β€” silent, safe amass enum -passive -d $TARGET -o subdomains/amass_passive.txt # OSINT intelligence mode amass intel -d $TARGET -whois -o subdomains/amass_intel.txt # Verbose β€” kahan se kya mila dekho amass enum -passive -d $TARGET -v 2>&1 | tee subdomains/amass_verbose.txt
3.3 β€” Certificate Transparency (crt.sh)
crt.sh / curl + pythonCRITICAL
β–Ό
Purpose: SSL certificates se naming patterns samjho β€” dev., staging., internal., api-v2. Ye patterns brute force wordlist banane mein kaam aate hain.
# Automated crt.sh query curl -s "https://crt.sh/?q=%25.$TARGET&output=json" \ | python3 -c " import json,sys data=json.load(sys.stdin) names=set() for cert in data: for name in cert['name_value'].split('\n'): name=name.strip().lstrip('*.') if '$TARGET' in name: names.add(name) for n in sorted(names): print(n) " | tee subdomains/crtsh.txt # High-value naming patterns filter karo grep -E "dev\.|staging\.|internal\.|api\.|admin\.|corp\.|test\." subdomains/crtsh.txt # tlsx from ProjectDiscovery (faster alternative) go install github.com/projectdiscovery/tlsx/cmd/tlsx@latest tlsx -san -cn -silent -ro -host $TARGET | anew subdomains/tlsx.txt
Naming patterns like *.corp.target.com, *.internal.target.com in crt.sh = gold. Ye internal naming convention reveal karta hai β€” brute force wordlist mein add karo immediately.
3.4 β€” Assetfinder + Wayback Historical Subs
assetfinder / waybackHIGH
β–Ό
Purpose: Assetfinder quick passive enum karta hai. Wayback Machine se historical subdomains milte hain jo ab public CT logs mein nahi hain.
Install
go install github.com/tomnomnom/assetfinder@latest
# Assetfinder assetfinder --subs-only $TARGET | tee subdomains/assetfinder.txt # Wayback Machine historical subdomains curl -s "http://web.archive.org/cdx/search/cdx?url=*.$TARGET&output=text&fl=original&collapse=urlkey" \ | sed -e 's_https*://__' -e "s_/.*__" \ | grep "\.$TARGET$" \ | sort -u | tee subdomains/wayback_subs.txt # Combine ALL passive results cat subdomains/subfinder.txt \ subdomains/amass_passive.txt \ subdomains/assetfinder.txt \ subdomains/crtsh.txt \ subdomains/wayback_subs.txt \ | sort -u | tee subdomains/all_passive.txt echo "[βœ…] Total passive: $(wc -l < subdomains/all_passive.txt) unique subdomains"
πŸ”₯
dev.target.com / staging.target.com found HIGH PRIORITY β€” seedha manually check karo. Often: weak auth, debug mode on, real prod data, admin panels accessible.
πŸ”₯πŸ”₯
*.internal.target.com found CRITICAL β€” DNS resolve karo. Agar public IP hai toh goldmine. Internal tools, admin dashboards accessible ho sakte hain.
πŸ“§
mail.target.com / smtp.target.com Mail server found β€” SPF/DKIM/DMARC check karo. Email spoofing test possible.
πŸ”
vpn.target.com / remote.target.com VPN gateway β€” version fingerprint karo, CVEs check karo. Credential stuffing possible.
04

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.

4.1 β€” PureDNS Brute Force (Best DNS Brute Forcer)
purednsCRITICAL
β–Ό
Purpose: Wildcard DNS automatically filter karta hai β€” sirf real subdomains deta hai. Jhaddix all.txt = best bug bounty wordlist (9M+ words).
Install
go install github.com/d3mondev/puredns/v2@latest
# Small wordlist β€” fast start (5000 words) puredns bruteforce \ /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt \ $TARGET \ -r ~/wordlists/resolvers.txt \ -o subdomains/puredns_small.txt # BIG GUN β€” jhaddix all.txt (best wordlist for bug bounty) puredns bruteforce \ ~/wordlists/jhaddix_all.txt \ $TARGET \ -r ~/wordlists/resolvers.txt \ --wildcard-tests 5 \ -o subdomains/puredns_jhaddix.txt \ --write-wildcards subdomains/wildcards.txt echo "[βœ…] Brute force: $(wc -l < subdomains/puredns_jhaddix.txt) found" # Resolvers download karo (important for speed) wget https://raw.githubusercontent.com/trickest/resolvers/main/resolvers.txt \ -O ~/wordlists/resolvers.txt # ~7000-10000 resolvers hone chahiye
πŸ”₯
Brute force ne naye subdomains diye jo passive ne nahi diye Company apni subdomains public CT logs mein nahi daali β†’ less likely discovered by other hunters β†’ PRIORITY HIGH.
⚠️
Wildcard DNS detect hua *.target.com β†’ sab resolve ho raha hai. puredns automatically handle karta hai β€” live host probe karke confirm karo.
4.2 β€” Permutation Scanning (Gotator + Alterx)
gotator / alterxHIGH
β–Ό
Purpose: Found subdomains se smart variations generate karo. api.target.com mila β†’ api-v1, api-dev, api-staging, api-internal automatically try karta hai.
Install
go install github.com/Josue87/gotator@latest && go install github.com/projectdiscovery/alterx/cmd/alterx@latest
# Gotator β€” permutations from passive results gotator -sub subdomains/all_passive.txt \ -perm ~/wordlists/gotator_perms.txt \ -depth 1 -numbers 3 -silent \ | tee subdomains/permutations.txt # Alterx β€” smarter permutations (ProjectDiscovery) cat subdomains/all_passive.txt | alterx | tee subdomains/alterx_perms.txt # Resolve the permutations puredns resolve subdomains/permutations.txt \ -r ~/wordlists/resolvers.txt \ -o subdomains/puredns_perms.txt # Example: "api.target.com" β†’ generates: # api-v1, api-v2, api-dev, api-staging, api-old # api-internal, api-test, api2 β†’ any that resolve = NEW FIND πŸ”₯ # Final combine β€” ALL methods cat subdomains/all_passive.txt \ subdomains/puredns_jhaddix.txt \ subdomains/puredns_perms.txt \ | sort -u > subdomains/all_combined.txt echo "[βœ…] TOTAL UNIQUE: $(wc -l < subdomains/all_combined.txt)"
05

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.

5.1 β€” DNS Resolution with dnsx
dnsxCRITICAL
β–Ό
Purpose: Sirf woh subdomains rakho jo actually DNS resolve karte hain. CNAME records takeover ke liye important hain.
Install
go install -v github.com/projectdiscovery/dnsx/v2/cmd/dnsx@latest
# DNS resolution + CNAME detection dnsx -l subdomains/all_combined.txt \ -silent \ -a \ # A records -cname \ # CNAME records (takeover ke liye) -resp \ # Response include -o subdomains/resolved.txt echo "[βœ…] Resolved: $(wc -l < subdomains/resolved.txt)"
5.2 β€” httpx β€” Live Web Server Probing
httpxCRITICAL
β–Ό
Purpose: Title, status code, tech stack, server headers β€” sab ek saath. Output padh ke instantly pata chalta hai kaunsa subdomain interesting hai.
Install
go install -v github.com/projectdiscovery/httpx/v2/cmd/httpx@latest
# Full probe httpx -l subdomains/resolved.txt \ -title \ # Page title -status-code \ # HTTP status -tech-detect \ # Technology fingerprint -content-length \ # Response size -web-server \ # Server header -follow-redirects \ -threads 50 \ -o live/httpx_results.txt # Example output: # https://admin.target.com [200] [Admin Dashboard] [nginx] [React] ← πŸ”₯ # https://dev.target.com [200] [Dev Server] [Apache/2.4] [PHP/7.4] ← πŸ”₯ # https://jenkins.target.com [200] [Jenkins] [Jetty] ← πŸ”₯πŸ”₯ # https://grafana.target.com [302] [] [nginx] # https://staging.target.com [401] [Unauthorized] [nginx]
πŸ”₯πŸ”₯πŸ”₯
[200] + "Admin" title Admin panel publicly accessible. Default creds: admin/admin, admin/password, admin/admin123. Version fingerprint β†’ CVE search.
πŸ”₯πŸ”₯
[200] + "Jenkins" CI/CD exposed. /script console check karo β†’ RCE possible. Anonymous access? Build logs mein credentials ho sakte hain.
πŸ”₯πŸ”₯
[200] + "Grafana" Default creds: admin/admin. Data sources mein database credentials. Internal network dashboards visible.
⚠️
[403] Forbidden Resource exist karta hai but blocked β†’ 403 Bypass try karo (Phase 15 dekho).
↩️
[302] Redirect Kahan redirect ho raha hai dekho. Agar external domain pe β†’ open redirect possible?
5.3 β€” Port Scanning (naabu / masscan)
naabu / masscan / rustscanHIGH
β–Ό
Purpose: Non-standard ports pe admin panels, dev servers, aur internal services milte hain jo port 80/443 pe nahi hote.
Install
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
# Extract hostnames from httpx output cat live/httpx_results.txt | sed 's|https\?://||' | cut -d/ -f1 | sort -u > live/hosts_only.txt # Common interesting web ports naabu -l live/hosts_only.txt \ -p 80,443,8080,8443,8888,8000,9000,9090,3000,4000,5000,7000,7443,6443,2375,4848,9200,5601,3306,5432,6379,27017 \ -silent -o ports/naabu_targeted.txt # Top 1000 ports (thorough) naabu -l live/hosts_only.txt -top-ports 1000 -silent -o ports/naabu_top1000.txt # Port meanings: # 8080 β†’ Jenkins, Tomcat, Spring Boot # 9000 β†’ SonarQube (source code!), Portainer (Docker UI) # 3000 β†’ Node.js dev, Grafana (admin/admin) # 5000 β†’ Flask debug = RCE, Docker Registry # 9090 β†’ Prometheus (metrics + env vars) # 2375 β†’ πŸ”₯πŸ”₯πŸ”₯ Docker API without TLS = full container access # 9200 β†’ Elasticsearch (unauthenticated data) # 5601 β†’ Kibana dashboard # 4200 β†’ Angular dev server
5.4 β€” Screenshots (Gowitness)
gowitnessHIGH
β–Ό
Purpose: 200 subdomains ke pages ek baar mein visually dekho β€” admin panels, login forms, error pages instantly identify hote hain.
Install
go install github.com/sensepost/gowitness@latest
# Screenshot all live hosts gowitness file \ -f live/httpx_results.txt \ --screenshot-path screenshots/ \ --threads 10 # Generate visual report gowitness report generate \ --screenshot-path screenshots/ \ --db-location gowitness.sqlite3 # Serve report in browser gowitness report serve --db-location gowitness.sqlite3 # β†’ open localhost:7171 in browser
06

Technology Fingerprinting

β–Ό

Goal

Exact tech versions fingerprint karo β€” headers, cookies, error pages, favicon hashes. Version pata chala = CVE search possible.

6.1 β€” Whatweb / Wappalyzer
whatweb / wappalyzerHIGH
β–Ό
Purpose: CMS, framework, server, library versions β€” sab ek saath detect karo.
Install
sudo apt install whatweb -y
# Whatweb on all live hosts whatweb -i live/hosts_only.txt --log-json notes/whatweb.json # Single target verbose whatweb -v https://$TARGET # Check response headers manually curl -sI https://$TARGET | grep -Ei \ "server|x-powered-by|x-aspnet|x-debug|set-cookie|x-generator|x-drupal|x-wp" # Cookie analysis β€” reveals backend tech: # PHPSESSID β†’ PHP backend # JSESSIONID β†’ Java / Tomcat # ASP.NET_SessionId β†’ .NET / IIS # laravel_session β†’ Laravel PHP # _rails_session β†’ Ruby on Rails # Favicon hash β†’ Shodan search curl -s https://$TARGET/favicon.ico | python3 -c \ "import sys,mmh3,base64; print(mmh3.hash(base64.encodebytes(sys.stdin.buffer.read())))" # Take the hash β†’ Shodan: http.favicon.hash:[hash]
πŸ”₯
Apache/2.2 or PHP/5.x found Very outdated. Run: searchsploit apache 2.2 β†’ multiple known CVEs. Check for known exploits immediately.
πŸ”₯
X-Debug-Token header found Symfony Profiler enabled β†’ /profiler endpoint accessible β†’ full stack traces, config data, credentials.
πŸ’‘
Framework-specific paths Laravel: /telescope, /_debugbar. Django: /admin. Spring Boot: /actuator. Check these immediately on every host.
6.2 β€” Shodan / Censys Intelligence
shodan CLI / censysHIGH
β–Ό
Purpose: Internet scan data se exposed services, SSL cert alternative hostnames, known CVEs, aur banners milte hain.
Install
pip3 install shodan --break-system-packages && shodan init YOUR_API_KEY
# Shodan search shodan search "$TARGET" | tee notes/shodan.txt shodan search "org:Target Corp" --fields ip_str,port,hostnames,vulns # IP-specific lookup TARGET_IP=$(dig +short $TARGET) shodan host $TARGET_IP # Uncover β€” multiple search engines at once go install github.com/projectdiscovery/uncover/cmd/uncover@latest echo "$TARGET" | uncover -e shodan,censys,fofa,binaryedge -silent # What to note: # Open ports: β†’ 8080? 9000? Dev ports? # Services: β†’ Jenkins? Grafana? Kibana? # SSL Certs: β†’ Alternative hostnames? # Vulnerabilities: β†’ CVEs Shodan detected?
07

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.

7.1 β€” ffuf (Fastest Directory Brute Forcer)
ffufCRITICAL
β–Ό
Purpose: Raft-large wordlist (119k words) + file extensions ke combination se hidden resources dhundho.
Install
go install github.com/ffuf/ffuf/v2@latest
# Basic directory brute force ffuf \ -u "https://$TARGET/FUZZ" \ -w /usr/share/seclists/Discovery/Web-Content/raft-large-words.txt \ -mc 200,201,204,301,302,307,401,403,405 \ -t 100 \ -o content/ffuf_root.json -of json \ -ic -c # With extensions ffuf \ -u "https://$TARGET/FUZZ" \ -w /usr/share/seclists/Discovery/Web-Content/raft-large-words.txt \ -e .php,.asp,.aspx,.jsp,.html,.js,.txt,.xml,.json,.bak,.old,.backup,.zip,.sql,.env,.config \ -mc 200,201,301,302,401,403 \ -t 100 -ic # Recursive brute force ffuf \ -u "https://$TARGET/FUZZ" \ -w /usr/share/seclists/Discovery/Web-Content/raft-large-directories.txt \ -recursion -recursion-depth 3 \ -mc 200,201,204,301,302,401,403 \ -t 50 -ic
πŸ”₯πŸ”₯πŸ”₯
.git/HEAD [200] Git repository exposed! Run: git-dumper https://target.com/.git/ ./git_dump/ β†’ Full source code, credentials, commit history.
πŸ”₯πŸ”₯πŸ”₯
.env [200] curl https://target.com/.env β†’ DB_PASSWORD, API_KEY, SECRET_KEY β†’ Instant P1 bug.
πŸ”₯πŸ”₯
/actuator/ [200] (Spring Boot) /actuator/env β†’ environment variables + secrets. /actuator/heapdump β†’ memory dump β†’ credentials extract.
πŸ”₯πŸ”₯
/swagger-ui [200] API documentation exposed β†’ all endpoints documented β†’ try each with test data β†’ auth bypass possible.
7.2 β€” Critical Paths Wordlist (Manual High-Value Check)
ffuf / curlCRITICAL
β–Ό
Purpose: Ye specific paths manually check karo har subdomain pe β€” yahan sabse bade bugs milte hain.
# Create critical paths wordlist cat > ~/wordlists/critical_paths.txt << 'EOF' .env .git/HEAD .git/config .htaccess .htpasswd web.config config.php config.json settings.py database.yml credentials.xml backup.zip backup.sql db.sql phpinfo.php info.php debug.php admin/ wp-admin/ phpmyadmin/ adminer.php swagger/ swagger-ui.html swagger-ui/ api-docs/ openapi.json openapi.yaml graphql graphiql actuator/ actuator/env actuator/heapdump actuator/mappings server-status server-info console/ h2-console/ jenkins/ kibana/ grafana/ prometheus/ solr/ EOF # Run on ALL subdomains cat live/hosts_only.txt | while read sub; do ffuf -u "https://$sub/FUZZ" \ -w ~/wordlists/critical_paths.txt \ -mc 200,201,204,301,302,401,403 \ -t 30 -silent \ | tee -a content/critical_all_subs.txt done
7.3 β€” Feroxbuster (Recursive, Rust-based)
feroxbusterHIGH
β–Ό
Purpose: Automatic recursive brute force β€” found directories ke andar bhi automatically brute force karta hai. APIs ke liye perfect.
Install
sudo apt install feroxbuster -y
# Recursive content discovery feroxbuster \ --url "https://$TARGET" \ --wordlist /usr/share/seclists/Discovery/Web-Content/raft-large-words.txt \ --threads 50 --depth 3 \ --extensions php,asp,aspx,js,json,txt,bak,old \ --filter-status 404,429 \ --output content/feroxbuster.txt # API endpoint specific feroxbuster \ --url "https://api.$TARGET" \ --wordlist /usr/share/seclists/Discovery/Web-Content/api/api-endpoints.txt \ --methods GET,POST,PUT,DELETE \ --threads 30 \ --output content/feroxbuster_api.txt
08

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.

8.1 β€” Waymore (Best Historical URL Collector)
waymore / gau / waybackurlsCRITICAL
β–Ό
Purpose: Waymore = Wayback + URLScan + OTX + CommonCrawl = 3-4x more URLs than waybackurls alone. Historical URLs mein forgotten endpoints, backup files, debug pages milte hain.
Install
pip3 install waymore --break-system-packages && go install github.com/tomnomnom/waybackurls@latest && go install github.com/lc/gau/v2/cmd/gau@latest
# Waymore β€” best tool, multiple sources waymore -i $TARGET -mode U -oU urls/waymore_urls.txt # Waybackurls waybackurls $TARGET | tee urls/wayback_raw.txt cat subdomains/resolved.txt | waybackurls | anew urls/wayback_raw.txt # GAU β€” GetAllUrls gau --providers wayback,commoncrawl,otx,urlscan $TARGET | tee urls/gau_urls.txt # Combine everything cat urls/waymore_urls.txt urls/wayback_raw.txt urls/gau_urls.txt \ | sort -u > urls/all_passive_urls.txt echo "[βœ…] Total URLs: $(wc -l < urls/all_passive_urls.txt)" # ── FILTER FOR HIGH-VALUE TARGETS ────────────────── # Sensitive file extensions grep -E "\.(php|asp|aspx|jsp|env|config|json|sql|bak|old|backup|zip|tar|gz|log|key|pem)" \ urls/all_passive_urls.txt | tee urls/interesting_files.txt # API endpoints grep -E "/api/|/v1/|/v2/|/v3/|/rest/|/graphql|/gql" \ urls/all_passive_urls.txt | tee urls/api_endpoints.txt # URLs with parameters (for SQLi/XSS/IDOR) grep "?" urls/all_passive_urls.txt | tee urls/params_urls.txt # Admin panels grep -iE "/admin|/dashboard|/manager|/panel|/backend|/portal" \ urls/all_passive_urls.txt | tee urls/admin_panels.txt # JS files grep -E "\.js(\?|$)" urls/all_passive_urls.txt | grep -v ".json" | tee js/js_from_passive.txt
πŸ”₯πŸ”₯πŸ”₯
.env or backup.zip URL mila Immediately: curl https://target.com/.env β†’ DB_PASSWORD, API_KEY, secrets. Direct P1 bug.
πŸ”₯πŸ”₯πŸ”₯
.git/ directory URL mila Git repository exposed β†’ git-dumper se download karo β†’ full source code, credentials, commit history.
πŸ’‘
?id=123 wale URLs mile IDOR testing ke liye queue mein daalo. ID values note karo β€” sequential hain?
8.2 β€” Active Web Crawling (Katana + Hakrawler)
katana / hakrawler / gospiderCRITICAL
β–Ό
Purpose: Live application ko crawl karo β€” forms, API calls, JS-rendered endpoints collect karo jo passive mein nahi milte.
Install
go install github.com/projectdiscovery/katana/cmd/katana@latest && go install github.com/hakluke/hakrawler@latest
# Katana β€” full power crawl with JS execution katana \ -u https://$TARGET \ -depth 5 \ -jc \ # JS files crawl -jsl \ # JS links extract -hl \ # Headless browser -ef css,png,jpg,gif,woff \ -silent \ -o urls/katana_full.txt # Multiple hosts katana -list live/httpx_results.txt -depth 3 -jc -silent -o urls/katana_all.txt # Hakrawler echo "https://$TARGET" | hakrawler -depth 3 -plain -insecure | tee urls/hakrawler.txt # Master URL list β€” combine all cat urls/katana_full.txt urls/hakrawler.txt urls/all_passive_urls.txt \ | sort -u > urls/MASTER_URLS.txt echo "[βœ…] MASTER: $(wc -l < urls/MASTER_URLS.txt) URLs"
09

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.

9.1 β€” Collect + Download All JS Files
katana / grep / curlCRITICAL
β–Ό
Purpose: Saari JS files locally download karo β€” chunk files bhi (0.chunk.js, vendors~main.js) β€” ye React/Next.js bundles ka goldmine hain.
# Collect JS files from all sources katana -u https://$TARGET -jc -d 5 -silent \ | grep -E "\.js$" | grep -v ".json" | anew js/all_js_files.txt cat js/js_from_passive.txt | anew js/all_js_files.txt echo "[+] Total JS files: $(wc -l < js/all_js_files.txt)" # Download all JS files locally mkdir -p js/downloaded/ cat js/all_js_files.txt | while read url; do filename=$(echo $url | md5sum | cut -d' ' -f1).js curl -sk "$url" -o "js/downloaded/$filename" echo "$url β†’ $filename" >> js/js_url_map.txt done # Source maps check β€” original source code exposed! cat js/all_js_files.txt | while read url; do mapurl="${url}.map" status=$(curl -sk -o /dev/null -w "%{http_code}" "$mapurl") if [ "$status" = "200" ]; then echo "[πŸ”₯πŸ”₯πŸ”₯] SOURCE MAP EXPOSED: $mapurl" echo $mapurl >> secrets/exposed_sourcemaps.txt fi done # Extract source from .map file # go install github.com/denandz/sourcemapper@latest sourcemapper -url "https://$TARGET/static/js/main.js.map" -output ./js/src/
9.2 β€” LinkFinder + JSluice (Endpoint Extraction)
linkfinder / jsluiceCRITICAL
β–Ό
Purpose: JS files se API endpoints, routes, aur hidden paths extract karo automatically.
Install
git clone https://github.com/GerbenJavado/LinkFinder && pip3 install -r LinkFinder/requirements.txt && go install github.com/BishopFox/jsluice/cmd/jsluice@latest
# LinkFinder on all downloaded files find js/downloaded/ -name "*.js" | while read f; do python3 ~/tools/LinkFinder/linkfinder.py -i $f -o cli 2>/dev/null done | sort -u | tee endpoints/linkfinder.txt # JSluice β€” URLs + secrets cat js/all_js_files.txt | while read url; do curl -sk "$url" | jsluice urls done | tee endpoints/jsluice_urls.txt # Manual grep β€” API patterns grep -rE "(fetch|axios|\.get\(|\.post\(|XMLHttpRequest)" js/downloaded/ \ | grep -oE "'[/a-zA-Z0-9_\-\?=&\.]+'" | tr -d "'" \ | grep "^/" | sort -u | tee endpoints/api_from_js.txt # Route definitions (React Router, Vue Router) grep -rE "(path|route|to):\s*['\"][/a-zA-Z0-9_\-:]+['\"]" js/downloaded/ \ | grep -oE "['\"][/a-zA-Z0-9_\-:]+['\"]" | tr -d "'" \ | sort -u | tee endpoints/routes_from_js.txt # Feature flags + role names (for privilege escalation) grep -rE "(role|permission|featureFlag|feature_flag)\s*[:=]\s*['\"]" js/downloaded/ \ | tee endpoints/roles_flags.txt # Master endpoints combine cat endpoints/linkfinder.txt endpoints/jsluice_urls.txt \ endpoints/api_from_js.txt endpoints/routes_from_js.txt \ | sort -u > endpoints/MASTER_ENDPOINTS.txt
10

Secret Discovery

β–Ό

Goal

JS files, GitHub repos, aur configs mein hardcoded secrets dhundho β€” AWS keys, API tokens, passwords, JWT secrets, database connection strings.

10.1 β€” Manual Grep for Secret Patterns
grep / trufflehog / gitleaksCRITICAL
β–Ό
Purpose: JS files mein hardcoded credentials dhundho β€” AWS keys, API tokens, passwords, JWT secrets, DB strings, webhook URLs.
# AWS Keys grep -rE "AKIA[0-9A-Z]{16}" js/downloaded/ | tee secrets/aws_access_keys.txt grep -rEi "aws[_-]?secret" js/downloaded/ >> secrets/aws_access_keys.txt # Google API Keys grep -rE "AIza[0-9A-Za-z\-_]{35}" js/downloaded/ | tee secrets/google_keys.txt # Generic API Keys grep -rEi "api[_-]?key['\"]?\s*[:=]\s*['\"][0-9a-zA-Z\-_]{20,}" \ js/downloaded/ | tee secrets/api_keys.txt # JWT Tokens hardcoded grep -rE "eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}" \ js/downloaded/ | tee secrets/jwt_tokens.txt # Passwords hardcoded grep -rEi "password\s*[:=]\s*['\"][^'\"]{4,}" js/downloaded/ | tee secrets/passwords.txt # Internal URLs grep -rE "https?://[a-zA-Z0-9\-\.]+\.(internal|local|corp|intranet)" \ js/downloaded/ | tee secrets/internal_urls.txt # Database connection strings grep -rEi "mongodb://|mysql://|postgresql://|redis://|jdbc:" \ js/downloaded/ | tee secrets/db_strings.txt # Slack/Discord webhooks grep -rE "hooks\.slack\.com|discord(app)?\.com/api/webhooks" \ js/downloaded/ | tee secrets/webhooks.txt # Private Keys grep -rE "BEGIN (RSA|EC|DSA|OPENSSH) PRIVATE KEY" \ js/downloaded/ | tee secrets/private_keys.txt # Combine all secrets cat secrets/*.txt | sort -u > secrets/ALL_SECRETS.txt echo "[πŸ”₯] Total secrets: $(wc -l < secrets/ALL_SECRETS.txt)"
πŸ”₯πŸ”₯πŸ”₯
AWS Key AKIA... found IMMEDIATELY: aws configure β†’ aws sts get-caller-identity β†’ agar valid then aws s3 ls. Critical P1 β†’ report ASAP.
πŸ”₯πŸ”₯
Internal URL found https://api.internal.target.com/admin/users β†’ SSRF test karo via any URL parameter in app.
πŸ’‘
JWT token hardcoded jwt.io pe decode karo β†’ algorithm check karo (RS256 vs HS256) β†’ None algorithm attack try karo.
10.2 β€” GitHub Secret Hunting
gh CLI / trufflehog / gitleaksCRITICAL
β–Ό
Purpose: Developers accidentally commit secrets to GitHub. Company ke GitHub org + code search mein API keys, passwords, internal configs milte hain.
Install
sudo apt install gh -y && gh auth login
# GitHub CLI search gh search repos "$TARGET" --limit 20 gh search code "$TARGET" --limit 50 | tee notes/github_results.txt # Browser dorks (github.com search bar): # "$TARGET" "api_key" # "$TARGET" "password" # "$TARGET" extension:env # "$TARGET" "Authorization: Bearer" # "$TARGET" "DB_PASSWORD" # org:TargetCompany ← company GitHub org # org:TargetCompany secret # org:TargetCompany password # Trufflehog β€” scan GitHub org trufflehog github --org TargetCompany --only-verified \ | tee secrets/trufflehog_github.txt # Gitleaks on cloned repo git clone https://github.com/TargetCompany/repo ./tmp/repo gitleaks detect --source ./tmp/repo --report-path secrets/gitleaks_report.json
11

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.

11.1 β€” Arjun (Hidden Parameter Discovery)
arjun / x8 / paramspiderCRITICAL
β–Ό
Purpose: Har API endpoint pe hidden GET/POST parameters test karo. Developers production mein debug params leave karte hain β€” ye security bypass kar sakte hain.
Install
pip3 install arjun --break-system-packages
# Arjun β€” hidden parameter discovery arjun -u "https://$TARGET/api/users" -m GET -o params/arjun_get.json arjun -u "https://$TARGET/api/users" -m POST -o params/arjun_post.json # Bulk URLs arjun --import urls/api_endpoints.txt -t 10 -o params/arjun_bulk.json # Extract unique params from all found URLs cat urls/MASTER_URLS.txt | grep "?" \ | grep -oE "[?&][a-zA-Z_][a-zA-Z0-9_]*=" \ | tr -d '?&=' | sort -u | tee params/discovered_params.txt echo "[+] Unique params: $(wc -l < params/discovered_params.txt)"
High-value parameters to always test: debug=true, verbose=1, admin=1, test=1, role=admin, format=internal, include_internal=true, user_id=[other_user], redirect=https://evil.com, url=http://169.254.169.254
12

API & GraphQL Recon

β–Ό

Goal

API documentation dhundho (Swagger/OpenAPI), GraphQL schema leak karo, aur saare API endpoints test karo β€” unauthenticated access, IDOR, mass assignment.

12.1 β€” API Documentation Hunt
curl / ffufCRITICAL
β–Ό
Purpose: Swagger/OpenAPI documentation exposed = full API map ek click mein. Developer ne documentation rakhi aur security ne block karna bhool gayi.
# Check all common API doc paths for path in /swagger /swagger-ui /swagger-ui.html /api-docs /api/docs \ /v1/api-docs /v2/api-docs /openapi.json /openapi.yaml \ /api/swagger.json /api/openapi.json /graphql /graphiql \ /__graphql /api/graphql /altair /playground; do status=$(curl -sk -o /dev/null -w "%{http_code}" "https://$TARGET$path") if [[ "$status" =~ ^(200|301|302|401|403)$ ]]; then echo "[$status] https://$TARGET$path" echo "$status https://$TARGET$path" >> endpoints/api_docs_found.txt fi done
12.2 β€” GraphQL Introspection + Exploitation
curl / InQL / graphql-voyagerHIGH
β–Ό
Purpose: GraphQL introspection enabled hone par full schema mil jata hai β€” saare types, queries, mutations, fields. Hidden data aur operations reveal ho jaati hain.
# GraphQL introspection query curl -sk -X POST "https://$TARGET/graphql" \ -H "Content-Type: application/json" \ -d '{"query":"{__schema{types{name fields{name}}}}"}' \ | python3 -m json.tool | tee endpoints/graphql_schema.txt # Common GraphQL queries to test curl -sk -X POST "https://$TARGET/graphql" \ -H "Content-Type: application/json" \ -d '{"query":"{users{id email password role}}"}' # graphql-voyager.netlify.app β†’ paste schema β†’ visualize # Test for IDOR via GraphQL # {"query":"{user(id:1){email phone ssn}"} # {"query":"{user(id:2){email phone ssn}"} ← change id # Nuclei GraphQL templates nuclei -l live/httpx_results.txt \ -t ~/nuclei-templates/technologies/graphql/ \ -silent -o notes/graphql_nuclei.txt
13

Cloud & Infrastructure Mapping

β–Ό

Goal

CDN origin IPs dhundho, cloud buckets enumerate karo, Docker Hub check karo, aur GitHub org source code leaks dhundho.

13.1 β€” CDN Origin IP Discovery
curl / SecurityTrails / ShodanHIGH
β–Ό
Purpose: CDN bypass karke real origin IP dhundho β€” firewalls aur WAFs CDN pe hote hain, origin server pe nahi. Direct IP pe WAF rules apply nahi hoti.
# Check CDN headers curl -sI https://$TARGET | grep -Ei "cf-ray|x-cache|x-served-by|x-amz|via|fastly" # Methods to find origin IP: # 1. SecurityTrails historical DNS β€” old A records before CDN # 2. Shodan SSL cert search: ssl.cert.subject.cn:target.com # 3. Censys: parsed.names:target.com # 4. Old DNS records via ViewDNS # Test origin IP directly (bypasses CDN/WAF) curl -sk -H "Host: $TARGET" https://ORIGIN_IP/
13.2 β€” Cloud Bucket Enumeration
s3scanner / gcpbucketbrute / cloud_enumCRITICAL
β–Ό
Purpose: Misconfigured cloud buckets = public file access, credential leaks, source code. Company name se bucket names guess karo.
Install
pip3 install s3scanner cloud-enum --break-system-packages
# S3 bucket enumeration s3scanner scan --bucket $TARGET s3scanner scan --bucket "$TARGET-backup" s3scanner scan --bucket "$TARGET-dev" s3scanner scan --bucket "$TARGET-prod" s3scanner scan --bucket "$TARGET-static" s3scanner scan --bucket "$TARGET-assets" # Cloud enum β€” AWS, GCP, Azure at once cloud_enum -k $TARGET -l notes/cloud_enum.txt # Manual S3 check curl -s https://$TARGET.s3.amazonaws.com/ aws s3 ls s3://$TARGET --no-sign-request # Docker Hub # hub.docker.com β†’ search company name β†’ analyze image layers docker pull targetcompany/appname docker history targetcompany/appname # view layers
πŸ”₯πŸ”₯πŸ”₯
S3 bucket publicly listable aws s3 ls s3://target-bucket --no-sign-request β†’ download files β†’ source code, backups, PII. Critical P1.
14

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.

14.1 β€” Nuclei + Subjack Takeover Check
nuclei / subjack / subzyCRITICAL
β–Ό
Purpose: CNAME pointing to unclaimed service = subdomain takeover. Agar company.github.io repository exist nahi karta β†’ claim karo β†’ full subdomain control.
Install
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest && go install github.com/haccer/subjack@latest
# Nuclei takeover templates (best method) nuclei -l subdomains/resolved.txt \ -t ~/nuclei-templates/takeovers/ \ -silent -o notes/takeovers.txt # Subjack subjack -w subdomains/resolved.txt \ -t 100 -timeout 30 -o notes/subjack.txt -ssl # Manual check β€” look for these CNAME fingerprints: # GitHub Pages: β†’ "There isn't a GitHub Pages site here" # Heroku: β†’ "No such app" # Shopify: β†’ "Sorry, this shop is currently unavailable" # Fastly: β†’ "Fastly error: unknown domain" # AWS S3: β†’ "NoSuchBucket" # Azure: β†’ "404 Web Site not found" # Zendesk: β†’ "Help Center Closed" # Verify CNAME then check if claimable dig CNAME subdomain.$TARGET curl -s https://subdomain.$TARGET | grep -i "no such\|not found\|unavailable"
Subdomain takeover = P1 bug on most programs. GitHub Pages takeover: CNAME points to username.github.io β†’ create that repo β†’ upload HTML β†’ full control. Bounty: $500-$3000+
15

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.

15.1 β€” Complete 403 Bypass Toolkit
curl / ffuf / bypass-403CRITICAL
β–Ό
Purpose: Server-side vs WAF 403 farq karta hai. Ek technique se nahi mila toh dusri try karo. Combination often works.
# Helper function URL="https://$TARGET/admin" # ── PATH MANIPULATION ────────────────────────────── curl -sk "$URL" # baseline 403 curl -sk "$URL/" # trailing slash curl -sk "${URL}///" # multiple slashes curl -sk "${URL};/" # semicolon bypass curl -sk "${URL}%2e/" # URL encoding curl -sk "${URL}%20" # space encoding curl -sk "${URL}..;/" # path traversal curl -sk "${URL}/./" # dot bypass # ── IP HEADERS (CDN/WAF bypass) ──────────────────── curl -sk -H "X-Forwarded-For: 127.0.0.1" "$URL" curl -sk -H "X-Real-IP: 127.0.0.1" "$URL" curl -sk -H "X-Originating-IP: 127.0.0.1" "$URL" curl -sk -H "X-Remote-IP: 127.0.0.1" "$URL" curl -sk -H "X-Client-IP: 127.0.0.1" "$URL" curl -sk -H "True-Client-IP: 127.0.0.1" "$URL" curl -sk -H "X-Custom-IP-Authorization: 127.0.0.1" "$URL" # ── HOST HEADER MANIPULATION ────────────────────── curl -sk -H "Host: localhost" "$URL" curl -sk -H "Host: internal" "$URL" curl -sk -H "Host: 127.0.0.1" "$URL" curl -sk -H "X-Forwarded-Host: localhost" "$URL" # ── HTTP METHOD SWITCHING ───────────────────────── curl -sk -X POST "$URL" curl -sk -X PUT "$URL" curl -sk -X PATCH "$URL" curl -sk -X HEAD "$URL" # HEAD response code may differ curl -sk -X "GET /" -H "X-HTTP-Method-Override: GET" "$URL" # ── AUTOMATED BYPASS TOOL ───────────────────────── go install github.com/iamj0ker/bypass-403@latest bypass-403 -u "$URL" -d admin
πŸ”₯πŸ”₯πŸ”₯
X-Forwarded-For: 127.0.0.1 β†’ 200 IP-based access control bypass! Server sirf local requests allow kar raha tha. Admin panel access mila.
πŸ”₯πŸ”₯
Path /admin%2e/ β†’ 200 WAF pattern matching bypass. URL encoding ne WAF ko fool kar diya while backend normalize karta aur process kiya.
16

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.

16.1 β€” Nuclei Full Scan
nucleiCRITICAL
β–Ό
Purpose: 7000+ templates se known vulnerabilities, misconfigurations, exposed panels automatically detect karo. Fast wins pehle uthao.
# Update templates nuclei -ut # Critical + High severity only (fast) nuclei -l live/httpx_results.txt \ -s critical,high \ -silent -c 50 \ -o notes/nuclei_crithigh.txt # Full scan β€” all templates nuclei -l live/httpx_results.txt \ -silent -c 50 \ -o notes/nuclei_full.txt # Specific template categories nuclei -l live/httpx_results.txt -t ~/nuclei-templates/exposures/ -silent nuclei -l live/httpx_results.txt -t ~/nuclei-templates/misconfiguration/ -silent nuclei -l live/httpx_results.txt -t ~/nuclei-templates/takeovers/ -silent nuclei -l live/httpx_results.txt -t ~/nuclei-templates/vulnerabilities/ -silent
16.2 β€” Vulnerability-Specific Target Lists
grep / manualHIGH
β–Ό
Purpose: Har vulnerability type ke liye specific URLs filter karo β€” XSS ke liye reflection points, SQLi ke liye numeric IDs, SSRF ke liye URL params.
# XSS candidates β€” reflected params grep -E "[?&](q|search|query|keyword|s|name|input|data|msg|error|redirect)=" \ urls/MASTER_URLS.txt | sort -u > params/xss_candidates.txt # SQLi candidates β€” numeric IDs grep -E "[?&](id|user_id|product_id|item_id|post_id|page|offset|limit|pid|uid)=[0-9]" \ urls/MASTER_URLS.txt | sort -u > params/sqli_candidates.txt # SSRF candidates β€” URL-type params grep -E "[?&](url|link|redirect|next|target|dest|callback|path|domain|host|proxy|ref|return|returnto|return_url|go|r|u|feed|img|image|open|source|original)=" \ urls/MASTER_URLS.txt | sort -u > params/ssrf_candidates.txt # IDOR candidates β€” owned resource IDs grep -E "/api/(user|account|profile|order|invoice|document|file)/[0-9a-f-]+" \ urls/MASTER_URLS.txt | sort -u > params/idor_candidates.txt # Open Redirect candidates grep -E "[?&](redirect|next|return|url|to|goto|location|continue|rurl|destination)=" \ urls/MASTER_URLS.txt | sort -u > params/redirect_candidates.txt # Summary echo "XSS targets: $(wc -l < params/xss_candidates.txt)" echo "SQLi targets: $(wc -l < params/sqli_candidates.txt)" echo "SSRF targets: $(wc -l < params/ssrf_candidates.txt)" echo "IDOR targets: $(wc -l < params/idor_candidates.txt)"
17

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.

17.1 β€” Burp Suite Complete Auth Flow Analysis
Burp Suite ProCRITICAL
β–Ό
Purpose: Burp proxy se saare requests capture karo β€” auth flow, API calls, headers, cookies. Manually test karo: IDOR, auth bypass, privilege escalation, business logic.
# Burp Suite checklist (manual steps) 1. Proxy pe sab traffic capture karo 2. Site map build karo — Target → Scope add karo 3. Authentication flow: - Registration → Login → Forgot Password - OAuth flows → state parameter check karo - JWT tokens → decode on jwt.io 4. Role-based access test: - User A ka token leke User B ka resource access karo - Ek low-priv account se high-priv endpoints hit karo - Har admin endpoint ko user token se hit karo 5. API testing: - Swagger documentation se saare endpoints list - Har endpoint pe authentication check karo - HTTP methods change karo (GET→POST→PUT→DELETE) - Version change karo (/api/v2 → /api/v1) 6. Business logic: - Price manipulation (negative values, floating point) - Quantity overflow (999999999, -1) - Coupon/voucher reuse - Race conditions (concurrent requests)
17.2 β€” Final Recon Notes Document
ManualHIGH
β–Ό
Purpose: Har finding note karo β€” interesting subdomains, exposed endpoints, secret finds, potential vulnerabilities. Yahi notes report mein kaam aayenge.
# Final notes template cat > notes/FINAL_FINDINGS.md << 'EOF' # Recon Summary: $TARGET ## Priority Targets (Manual Testing Needed) - [ ] admin.target.com [200] β€” admin panel no auth - [ ] dev.target.com [200] β€” dev server, PHP/7.4 outdated - [ ] api.target.com/v1/users [200 unauthenticated] β€” user list ## Exposed Secrets - [ ] AWS Key found in main.js (AKIA...) - [ ] DB password in .env file at /apps/.env ## Subdomains of Interest - [ ] staging.target.com β€” real prod data - [ ] vpn.target.com β€” Cisco AnyConnect 4.8 (CVE exists) ## Parameters (Vuln Testing Queue) - [ ] /search?q= β†’ XSS candidate - [ ] /api/users?id= β†’ IDOR candidate - [ ] /redirect?url= β†’ Open Redirect candidate ## Quick Wins Attempted - [ ] Nuclei scan complete - [ ] GitDumper on .git/ exposed - [ ] GraphQL introspection returned full schema EOF
πŸš€

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 β€” Full Automation Pipeline
#!/bin/bash # ═══════════════════════════════════════════════════ # MASTER RECON PIPELINE β€” by Elite Bug Bounty Hunter # Usage: ./master_recon.sh target.com # ═══════════════════════════════════════════════════ export TARGET="$1" mkdir -p ~/recon/$TARGET/{subdomains,live,ports,urls,js,params,endpoints,secrets,screenshots,content,notes} cd ~/recon/$TARGET echo "[*] Starting recon for: $TARGET" # ── PHASE 1: PASSIVE SUBDOMAIN ENUM ──────────────── echo "[*] Phase 1: Passive subdomain enum..." subfinder -d $TARGET -all -silent -o subdomains/subfinder.txt & amass enum -passive -d $TARGET -o subdomains/amass.txt & assetfinder --subs-only $TARGET > subdomains/assetfinder.txt & curl -s "https://crt.sh/?q=%25.$TARGET&output=json" \ | python3 -c "import json,sys;[print(n.strip().lstrip('*.')) for c in json.load(sys.stdin) for n in c['name_value'].split('\n') if '$TARGET' in n]" \ | sort -u > subdomains/crtsh.txt & wait cat subdomains/*.txt | sort -u > subdomains/all_passive.txt echo "[+] Passive: $(wc -l < subdomains/all_passive.txt) subdomains" # ── PHASE 2: ACTIVE SUBDOMAIN ENUM ───────────────── echo "[*] Phase 2: Brute force + permutations..." puredns bruteforce ~/wordlists/jhaddix_all.txt $TARGET \ -r ~/wordlists/resolvers.txt -o subdomains/puredns.txt cat subdomains/all_passive.txt | alterx | puredns resolve \ -r ~/wordlists/resolvers.txt -o subdomains/alterx.txt cat subdomains/all_passive.txt subdomains/puredns.txt subdomains/alterx.txt \ | sort -u > subdomains/all_combined.txt echo "[+] Combined: $(wc -l < subdomains/all_combined.txt) subdomains" # ── PHASE 3: DNS RESOLUTION + LIVE PROBING ───────── echo "[*] Phase 3: DNS resolution + HTTP probing..." dnsx -l subdomains/all_combined.txt -silent -a -cname -o subdomains/resolved.txt httpx -l subdomains/resolved.txt \ -title -status-code -tech-detect -content-length -web-server -follow-redirects -threads 50 \ -o live/httpx_results.txt cat live/httpx_results.txt | cut -d' ' -f1 > live/live_urls.txt echo "[+] Live hosts: $(wc -l < live/live_urls.txt)" # ── PHASE 4: PORT SCAN ────────────────────────────── echo "[*] Phase 4: Port scanning..." cat live/httpx_results.txt | sed 's|https\?://||' | cut -d/ -f1 | sort -u > live/hosts_only.txt naabu -l live/hosts_only.txt \ -p 80,443,8080,8443,8888,8000,9000,9090,3000,5000,4443,6443,2375,9200,5601,3306,5432,6379 \ -silent -o ports/naabu.txt # ── PHASE 5: CONTENT DISCOVERY ────────────────────── echo "[*] Phase 5: Content discovery..." ffuf -u "https://$TARGET/FUZZ" \ -w ~/wordlists/critical_paths.txt \ -mc 200,201,204,301,302,401,403 -t 50 -silent -o content/ffuf.json -of json # ── PHASE 6: URL COLLECTION ───────────────────────── echo "[*] Phase 6: URL collection..." waymore -i $TARGET -mode U -oU urls/waymore.txt 2>/dev/null katana -u https://$TARGET -depth 3 -jc -silent -o urls/katana.txt cat urls/waymore.txt urls/katana.txt | sort -u > urls/MASTER_URLS.txt echo "[+] URLs: $(wc -l < urls/MASTER_URLS.txt)" # ── PHASE 7: JS ANALYSIS ──────────────────────────── echo "[*] Phase 7: JS analysis..." grep -E "\.js$" urls/MASTER_URLS.txt | grep -v ".json" > js/all_js.txt cat js/all_js.txt | while read url; do curl -sk "$url" | jsluice urls 2>/dev/null done | sort -u > endpoints/js_endpoints.txt grep -rE "AKIA[0-9A-Z]{16}|AIza[0-9A-Za-z\-_]{35}|eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+" \ js/ > secrets/js_secrets.txt # ── PHASE 8: NUCLEI SCAN ──────────────────────────── echo "[*] Phase 8: Nuclei scan..." nuclei -l live/live_urls.txt -s critical,high -silent -o notes/nuclei_crithigh.txt # ── DONE ──────────────────────────────────────────── echo "[βœ…] RECON COMPLETE FOR: $TARGET" echo "──────────────────────────────────────────" echo "Subdomains: $(wc -l < subdomains/all_combined.txt)" echo "Live hosts: $(wc -l < live/live_urls.txt)" echo "Total URLs: $(wc -l < urls/MASTER_URLS.txt)" echo "Endpoints: $(wc -l < endpoints/js_endpoints.txt)" echo "Secrets: $(wc -l < secrets/js_secrets.txt)" echo "Nuclei hits: $(wc -l < notes/nuclei_crithigh.txt)" echo "──────────────────────────────────────────"
Save this as 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.