# Content Discovery > Finding paths, files, virtual hosts and parameters a web server answers for but never links: harvest known URLs first (archives, crawl, JS), then brute-force with a wordlist built for the target's stack, then triage hits by hand. ## How it works - A hidden path is not a finding. It becomes one when it exposes data without auth, a working admin function, or source code. The underlying weakness is usually forced browsing / CWE-425 Direct Request (restricted URLs with no authorization), so obscurity is never the control ([[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]], [[raw/learn.suvendudash.com/content-discovery-for-bug-bounty-15376|Suvendu Dash]]). - It runs after host discovery: [[Subdomain Enumeration]] then httpx probing, then discovery on **every** live in-scope host. Staging, dev and old subdomains are the soft ones ([[raw/learn.suvendudash.com/content-discovery-for-bug-bounty-15376|Suvendu Dash]]). - Typical yield: `/admin/`, `/manage/`, `/internal/`; `config.php.bak`, `backup.zip`, `db.sql`; `/.git/`; `/api/v1/` next to a live `/api/v3/`; debug and status pages, logs and default install pages. - MITRE files it as Active Scanning: Wordlist Scanning (T1595.003) ([[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]]). ## Techniques / payloads ### 1. Harvest real paths before guessing ```bash gau example.com | uro > archived.txt # archived URLs, deduped by pattern cat domains.txt | waybackurls | anew urls.txt # append only new lines katana -u https://target.example -d 3 -jc -o crawl.txt # crawl + parse JS for endpoints katana -u https://target.example -f qurl # field extraction: only URLs with query strings cat wayback.txt | unfurl --unique keys # parameter names from history meg --savestatus 200 /robots.txt # one path across many hosts ``` - Old endpoints from the Wayback Machine often still work, or reveal naming patterns the current site follows ([[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|as93]], [[raw/danielmiessler.com/a-tomnomnom-recon-tools-primer-6074|Miessler on TomNomNom tools]]). - Katana's default fields are `url, path, fqdn, rdn, rurl, qurl, qpath, file, key, value, kv, dir, udir`. Custom regex fields load from `$HOME/.config/katana/field-config.yaml` or `-flc custom.yaml`. On one target `-f qurl` cut 205 endpoints to 25 parameterised ones ([[raw/projectdiscovery.io/a-deep-dive-on-katana-field-extraction-4280|ProjectDiscovery: Katana field extraction]]). - Scrape `robots.txt` and `sitemap.xml`, and crawl manually through Burp with JS/CSS unblocked to set a baseline ([[raw/yeswehack.com/uncover-hidden-assets-with-bug-bounty-recon-fuzzing-and-js-analysis-4867|YesWeHack]]). In one lab, a `robots.txt` Disallow of `/backup` led to `ProductTemplate.java.bak` containing a hard-coded Postgres password ([[raw/infosecwriteups.com/lab-3-source-code-disclosure-via-backup-files-10525|Backup-file lab]]). - Split the harvested folder and file names into a custom per-target wordlist. It often beats a huge generic list. JS mining is covered in [[JavaScript Analysis]]. ### 2. Wordlists (they matter more than the tool) | List | What it is | |---|---| | SecLists `Discovery/Web-Content/` (`raft-medium-directories.txt`, `api/api-endpoints.txt`, `common.txt`) | Default general and API lists ([[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252\|as93]]) | | Assetnote wordlists | Built from real-world data ([[raw/learn.suvendudash.com/content-discovery-for-bug-bounty-15376\|Suvendu Dash]]) | | trickest/wordlists | Per-technology lists generated from cloned repos (including `*-all-levels.txt` with every directory depth); robots.txt Allow/Disallow paths of the top 100/1k/10k sites; 1.4M-word "Inventory" subdomains from 50+ bug bounty programs; 940k cloud subdomains from CN/SANs of 7M+ certificates ([[raw/github.com/trickest-wordlists-6061\|trickest]]) | | p0dalirius/webapp-wordlists | About 105k lists: every file and directory for each version of common webapps and CMSes, for version-exact discovery ([[raw/github.com/webapp-wordlists-6075\|webapp-wordlists]]) | | api_wordlist (`actions.txt` × `objects.txt`) | API function verbs × nouns. Run as a Burp Intruder **Cluster Bomb** to build `getUser`, `deleteAccount` and similar; add a third `objects` set for compound names like `UserAccount` ([[raw/github.com/api-wordlist-6028\|api_wordlist]]) | | CeWL | Builds a list from keywords on the target's own site ([[raw/yeswehack.com/uncover-hidden-assets-with-bug-bounty-recon-fuzzing-and-js-analysis-4867\|YesWeHack]]) | Match the stack: PHP lists for PHP, `.jsp`/`.do` for Java, Tomcat, WordPress, Spring Boot Actuator, Jenkins or Kubernetes Dashboard defaults once fingerprinted. Start small and grow only on interesting hosts ([[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]], [[raw/osintteam.blog/the-best-wordlists-every-bug-hunter-needs-15079|OSINT Team: wordlists]]). ### 3. Brute force with ffuf ```bash ffuf -u https://t/FUZZ -w common.txt -mc 200,204,301,302,307,401,403 -rate 50 ffuf -u https://t/FUZZ -w words.txt -e .bak,.old,.zip,.txt -ac -rate 50 -o ffuf.json -of json ffuf -u https://t/FUZZ -w list -recursion -recursion-depth 2 -maxtime-job 60 # per-job time cap ffuf -u https://t/ -w vhosts.txt -H "Host: FUZZ" -fs 4242 # vhost discovery ffuf -u "https://t/script.php?FUZZ=test" -w params.txt -fs 4242 # GET param names ffuf -u "https://t/?PARAM=VAL" -w params.txt:PARAM -w values.txt:VAL # multi-keyword ffuf -u https://t/FUZZ -w list -b "PHPSESSID=..." # authenticated ``` - Noise control: `-fs` (size), `-fw` (words), `-fc` (status), `-ac` (auto-calibrate the soft-404). Without these, a 200-for-everything catch-all buries real hits. - Defaults: 40 threads (`-t`) and **no rate cap**. Set `-rate`/`-p` to stay inside program rules. The default match set is 200–299, 301, 302, 307, 401, 403, 405, 500. - `-request` replays a raw request saved from Burp. `--input-cmd 'radamsa --seed $FFUF_NUM ...'` mutates request bodies. A default `ffufrc` lives at `$XDG_CONFIG_HOME/ffuf/ffufrc`, and repeatable CLI flags like `-H` are appended to it, not overridden. - Sources: [[raw/github.com/ffuf-fuzz-faster-u-fool-6021|ffuf README]], [[raw/intigriti.com/ffuf-fuzzer-guide-fuzz-faster-u-fool-for-bug-bounty-hunters-4871|Intigriti ffuf guide]], [[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]]. Alternatives: **feroxbuster** (Rust, recursive by default: `feroxbuster -u https://t -w common.txt -x php,txt -d 2 --rate-limit 50`), **dirsearch** (bundled list, good extension handling), Gobuster (dedicated DNS and bucket modes), and Burp Intruder for parameter or IDOR value fuzzing ([[raw/learn.suvendudash.com/content-discovery-for-bug-bounty-15376|Suvendu Dash]], [[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]], [[raw/yeswehack.com/uncover-hidden-assets-with-bug-bounty-recon-fuzzing-and-js-analysis-4867|YesWeHack]]). ### 4. Backup and variant guessing Once a core file is known (for example `settings.php`), try `settings.php.bak`, `settings.bak`, `settings.php.old`, `settings_old.php` and `settings.php~`. Mirror hints from JS too: a `config/` reference suggests trying `config_old/` and `config_bak/` ([[raw/yeswehack.com/uncover-hidden-assets-with-bug-bounty-recon-fuzzing-and-js-analysis-4867|YesWeHack]]). ### 5. Triage - `405` means the path exists with the wrong verb, so retry POST, PUT, DELETE and PATCH ([[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|as93]]). Verb switching also applies to parameter discovery: in the case below, GET param fuzzing found nothing and POST `-d "FUZZ=5"` found the parameters. - `401`/`403`: note them, and check whether the same content is reachable unprotected on another host or path. Follow redirects, because the body before a 30x can leak data. Try both `/admin` and `/admin/`. - In Burp, Bambdas over proxy history flag anomalies at scale: 3xx responses with a body over 1000 bytes (a missing `exit` after an auth redirect), HTML with more than one `</html>`, a `Content-Length` mismatch, header names containing spaces (SMTP on 443), JSON served as `text/html`, and GraphQL at non-standard paths found via a `query` param containing `\n` ([[raw/portswigger.net/finding-that-one-weird-endpoint-with-bambdas-6054|PortSwigger Bambdas]]). ## Notable cases - **waybackurls → param mining → 4× SQLi.** `waybackurls | uro | grep .php`, then split CamelCase file names (`getTargets.php` → `Targets`/`targets`) into a parameter list. `ffuf -X POST -d "FUZZ=5"` found `commitment`, `id`, `goal` and `list`, all injectable via `sqlmap -r req.txt -p commitment --level 5 --risk 3 --tamper=between --no-cast` ([[raw/0xmahmoudjo0.medium.com/how-i-found-multiple-sql-injection-with-ffuf-and-sqlmap-in-a-few-minut-5161|0xmahmoudJo0]]). See [[SQL Injection]]. - **robots.txt → `/backup/*.java.bak` → DB password** ([[raw/infosecwriteups.com/lab-3-source-code-disclosure-via-backup-files-10525|Backup-file lab]]). See [[Hardcoded Secrets]]. ## Defenses - Deploy an explicit artifact set. Keep config, logs and data outside the web root. Never edit in place on production, because editors leave `~`/`.bak` files. Keep non-prod off the public edge. Enforce authorization on every route (WSTG-CONF-03/04). - Detection signals: per-source 404 ratio (for example >50 req/5 min with >90% 404), many identical-size responses, the UA `Fuzz Faster U Fool v2.x`, many distinct `Host` values to one IP (not logged by default in NGINX combined format or IIS), and `.git`/`.env` probes. Alert when one of these is actually served, not on the request. A patient `-rate`/`-p` run defeats volume alerts ([[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|Invadel]]). ## Related - [[Reconnaissance]] (hub) · [[Subdomain Enumeration]] · [[Asset Discovery]] · [[JavaScript Analysis]] · [[Google Dorking]] - [[API Discovery]] for API-specific route and version discovery · [[Web Fuzzing]] · [[Bug Bounty Automation]] · [[Secret Scanning]] ## Sources - [[raw/github.com/ffuf-fuzz-faster-u-fool-6021|ffuf - Fuzz Faster U Fool]] - [[raw/intigriti.com/ffuf-fuzzer-guide-fuzz-faster-u-fool-for-bug-bounty-hunters-4871|FFuF Fuzzer Guide (Intigriti)]] - [[raw/invadel.com/ffuf-explained-web-fuzzing-wordlists-detection-13945|ffuf explained: web fuzzing, wordlists, detection]] - [[raw/learn.suvendudash.com/content-discovery-for-bug-bounty-15376|Content Discovery for Bug Bounty]] - [[raw/yeswehack.com/uncover-hidden-assets-with-bug-bounty-recon-fuzzing-and-js-analysis-4867|Uncover Hidden Assets with Bug Bounty Recon: Fuzzing and JS Analysis]] - [[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|Recon methodology for bug bounties (as93)]] - [[raw/danielmiessler.com/a-tomnomnom-recon-tools-primer-6074|A @TomNomNom Recon Tools Primer]] - [[raw/projectdiscovery.io/a-deep-dive-on-katana-field-extraction-4280|A Deep Dive on Katana Field Extraction]] - [[raw/github.com/trickest-wordlists-6061|trickest/wordlists]] - [[raw/github.com/webapp-wordlists-6075|webapp-wordlists]] - [[raw/github.com/api-wordlist-6028|api_wordlist]] - [[raw/osintteam.blog/the-best-wordlists-every-bug-hunter-needs-15079|The Best Wordlists Every Bug Hunter Needs]] - [[raw/infosecwriteups.com/lab-3-source-code-disclosure-via-backup-files-10525|Lab 3: Source code disclosure via backup files]] - [[raw/0xmahmoudjo0.medium.com/how-i-found-multiple-sql-injection-with-ffuf-and-sqlmap-in-a-few-minut-5161|How I Found multiple SQL Injection with FFUF and Sqlmap]] - [[raw/portswigger.net/finding-that-one-weird-endpoint-with-bambdas-6054|Finding that one weird endpoint with Bambdas]]