Content and API discovery
- Noise
- Heavy active
- Reads
http/live.txthttp/httpx.jsonparams/known.txturls/api.txt- Writes
content/content/findings.md
Scope checkActive phase. Check the program policy first. Send traffic only to in-scope assets, at the rate the program allows.
Find paths that nothing links to: /backup.zip, /.git/, /admin/, /api/internal/users, /actuator/env. Archives and crawlers only see what was linked somewhere. Brute force guesses the rest.
This is heavy traffic. A medium wordlist is tens of thousands of requests per host. Pick a few hosts from phase 6, not all of them, and keep the rate low.
| Tool | Noise | Best for | Status |
|---|---|---|---|
| ffuf | Heavy active | Anything with a FUZZ keyword: paths, params, vhosts, headers | Maintained |
| feroxbuster | Heavy active | Recursive directory discovery with auto-tuning | Maintained |
| Gobuster | Heavy active | Straightforward dir and vhost modes | Maintained |
| dirsearch | Heavy active | Good defaults and built-in extension handling | Maintained |
| Kiterunner | Heavy active | API route discovery using real API specs, sends correct methods and bodies | No release since 2021, still useful |
Pick the wordlist by stack
Section titled “Pick the wordlist by stack”Check http/httpx.json for the technology first. A PHP list on an IIS box wastes thousands of requests.
| Stack | Start with |
|---|---|
| Unknown | SecLists Discovery/Web-Content/quickhits.txt, then raft-medium-directories.txt |
| PHP | raft-medium-files.txt with .php extension, Assetnote httparchive_php |
| IIS and ASP.NET | SecLists IIS.fuzz.txt, Assetnote httparchive_aspx_asp_cfm_svc_ashx_asmx, then an IIS short name scanner |
| Java and Spring | Assetnote httparchive_jsp_jspa_do_action, plus Spring Boot actuator paths |
| APIs | Kiterunner routes-large.kite, Assetnote httparchive_apiroutes, SecLists Discovery/Web-Content/api/ |
| Node and SPAs | Most routes live in JS. Use js/endpoints.txt from phase 9 before brute force |
Build one target-specific list as well. Words from the target’s own URLs hit more often than any public list.
# Turn every path segment you have seen into a custom wordlistcat urls/clean.txt js/endpoints.txt | unfurl paths | tr '/' '\n' | grep -vE '^$|\.' | sort -u > content/custom-words.txtWhat a content hit proves
Section titled “What a content hit proves”Actuator env returns 200
Section titled “Actuator env returns 200”https://app.example.com/actuator/env 200 4218ffuf got a 200 and 4,218 bytes for /actuator/env. A handler answered that path. It does not mean the JSON contains live secrets. Spring Boot masks sensitive property values in this endpoint by default. Fetch the body and read it. If the values are masked, check /actuator/heapdump before you call the env endpoint a leak.
403 on a management path
Section titled “403 on a management path”403 https://app.example.com/management/The server recognized /management/ and refused it. The path exists. The 403 does not mean the check can be bypassed. Try other methods, a trailing slash, and the same path on a different host, then put it on the manual list.
backup.sql that is HTML
Section titled “backup.sql that is HTML”https://app.example.com/backup.sql 200 15420The status is 200 and the length is 15,420 bytes. Open the body. If the type is text/html and the first bytes are the app shell, the SPA answered an unknown path. Drop it. A real SQL dump does not start with <!DOCTYPE html>.
A redirect is the same kind of split. Location: /login means something protected sits there. Location: https://example.com/ is the site sending unknown paths home.
Convincing duds
Section titled “Convincing duds”Same length as a nonsense path
Section titled “Same length as a nonsense path”Request /probe-nonexistent-check-918237. If the status and length match the hit, you are looking at the shell or a soft 404. Filter on that size with -fs, or let -ac learn it, before you read the rest of the JSON.
WAF page after the rate climbs
Section titled “WAF page after the rate climbs”A run that was returning 404s starts returning a captcha, or a branded 403, for every name. The scanner will treat the new length as a hit. That page is the firewall. Stop the scan.
Trade-offs
Section titled “Trade-offs”feroxbuster follows directories it finds. A calendar or a faceted filter invents a new path for every date and every option, and recursion will fill the disk. --depth 2 is the cap in the command below. If a branch is dates or page numbers, exclude it and move on.
Step by step
Section titled “Step by step”-
Quick hits first. A short list of known sensitive files catches the easy wins in a few hundred requests.
Terminal window # Known sensitive files and paths, auto-calibrated filtering, 20 requests per secondffuf -u https://app.example.com/FUZZ -w ~/wordlists/SecLists/Discovery/Web-Content/quickhits.txt \-ac -rate 20 -t 10 -o content/app-quickhits.json -of json -
Directories with ffuf.
-acauto-calibrates, which learns what a “not found” looks like and filters it, even when the app returns 200 for everything.Terminal window # Directory brute force on one hostffuf -u https://app.example.com/FUZZ -w ~/wordlists/SecLists/Discovery/Web-Content/raft-medium-directories.txt \-ac -mc all -fc 404 -rate 30 -t 20 -o content/app-dirs.json -of jsonWhen
-acis not enough, filter by size, word count or line count after looking at a few false positives.Terminal window # Filter responses that are exactly 1234 bytes or 57 wordsffuf -u https://app.example.com/FUZZ -w content/custom-words.txt -fs 1234 -fw 57 -rate 30 -
Recursion with feroxbuster. It follows found directories automatically.
Terminal window # Recursive scan two levels deep, rate-limited, 404s hiddenferoxbuster -u https://app.example.com -w ~/wordlists/SecLists/Discovery/Web-Content/raft-medium-directories.txt \--depth 2 --rate-limit 30 --filter-status 404 -o content/app-ferox.txtGobuster and dirsearch do the same job; use whichever output you prefer.
Terminal window # Gobuster directory modegobuster dir -u https://app.example.com -w ~/wordlists/SecLists/Discovery/Web-Content/common.txt -t 10 --delay 100ms -o content/app-gobuster.txtTerminal window # dirsearch with common extensions and a rate capdirsearch -u https://app.example.com -e php,aspx,jsp,json,bak --max-rate 30 -o content/app-dirsearch.txt -
API routes with Kiterunner. Normal brute force sends
GET /FUZZ. Real APIs wantPOST /api/v1/userswith a JSON body. Kiterunner replays routes from thousands of real API specs with the right method and body.Terminal window # Scan an API host with the large routes datasetkr scan https://api.example.com -w ~/wordlists/routes-large.kite -x 10 -j 20 \--fail-status-codes 400,401,403,404,501,502Before you brute force, probe for an exposed OpenAPI or Swagger document. One
/openapi.jsonor/swagger-ui/hit lists every route and parameter at once, which beats guessing. The dork and the full path list are in phase 14. -
Virtual hosts. One IP can serve many sites, chosen by the
Hostheader. Hidden vhosts likeadmin.example.commay not exist in DNS at all.Terminal window # Fuzz the Host header on an origin IP; -ac drops the default siteffuf -u https://203.0.113.10/ -H "Host: FUZZ.example.com" -w ~/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -ac -rate 20Terminal window # Gobuster vhost mode against the main hostnamegobuster vhost -u https://example.com -w ~/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt --append-domain -t 10 -
Write up hits in
content/findings.md: URL, status, size, and why it matters.
Follow up what the brute force found
Section titled “Follow up what the brute force found”A path that returns 200, 403 or a source-control directory is a lead with an obvious next step.
Exposed .git
Section titled “Exposed .git”When /.git/HEAD returns 200, the repository is browsable and you can reconstruct the source, which often carries secrets and internal logic. git-dumper rebuilds a working tree from the exposed files.
# Rebuild the repository from an exposed .git directorygit-dumper https://app.example.com/.git/ content/git-dumpRead the dump offline. Report the exposure; do not push or alter anything.
403 on a path that exists
Section titled “403 on a path that exists”A 403 means the path is there and guarded. Before you move on, try the cheap bypasses: a trailing slash, path case (/Admin), a different method, and the X-Original-URL and X-Rewrite-URL headers. The full checklist, with path normalization and header tricks, is in vulnerability hunting. For the exact verbs, headers and path forms, see Transport tricks in the Broken Access Control field manual.
GraphQL with introspection off
Section titled “GraphQL with introspection off”When you find a /graphql endpoint that refuses introspection, Clairvoyance recovers the schema by sending malformed queries and reading the suggestions in the error messages.
# Recover a GraphQL schema when introspection is disabledclairvoyance https://app.example.com/graphql -o content/graphql-schema.jsonThe recovered schema drives the GraphQL testing in API and service testing.
An upload form or endpoint
Section titled “An upload form or endpoint”A hit such as /upload, /api/files or a multipart form is a lead for a different bug class. Note the path, the accepted field names and where the file is served back from, then keep the host in your queue. The File Upload guide starts with how an uploaded file travels from request to storage to serving, which tells you which tests apply.
How the output feeds the next phase
Section titled “How the output feeds the next phase”- New paths go into phase 12 to confirm versions and into phase 13 as targeted Nuclei input.
- New vhosts go back into
subs/all.txtwith a note that they only exist on a specific IP. - New API routes go back into phase 10 for hidden parameters.
Common mistakes
Section titled “Common mistakes”- Using the biggest wordlist on every host. Start small, go big only on hosts that look promising.
- Not filtering, then reading 30,000 “200 OK” responses that are the same SPA shell.
- Ignoring 401 and 403. They mean the path exists. Try other methods, trailing slashes and different hosts.
- Forgetting extensions.
/backupand/backup.zipare different requests. - Running content discovery through a CDN that bans you after 1,000 requests, when the origin IP was available.
- Version control:
/.git/HEAD,/.svn/entries,/.hg/ - Config and secrets:
/.env,/config.json,/web.config,/appsettings.json,/.aws/credentials - Backups:
.bak,.old,.zip,.tar.gz,.sqlnext to real file names - Framework internals:
/actuator/env,/actuator/heapdump,/server-status,/phpinfo.php,/_profiler/,/elmah.axd,/trace.axd - API docs:
/swagger-ui/,/v3/api-docs,/openapi.json,/graphqlwith introspection enabled - Vhosts that serve a different app than the default site
Next, identify what each host runs in phase 12.
Open local graph around this page
Linked from here
- Recon Methodology: How Real Hunters Map a TargetBug Hunting
- The upload security checklistFile Upload
- The file journey modelFile Upload
- SPA Calibration in Content DiscoveryRecon Atlas
- Following up on 403 Forbidden responsesRecon Atlas
- Verifying JavaScript endpointsRecon Atlas
- Continuous monitoringRecon Atlas
- Subdomain enumeration, activeRecon Atlas
- Live host probing and screenshotsRecon Atlas
- URL and endpoint discoveryRecon Atlas
- JavaScript analysisRecon Atlas
- Parameter discoveryRecon Atlas
Links out to
- Transport Tricks↗ Broken Access Control
- The file journey model↗ File Upload
- Live host probing and screenshotsRecon Atlas
- OSINT and leaksRecon Atlas
- HTTP protocol-level bugsRecon Atlas
- API and service-specific reconRecon Atlas
- Technology fingerprintingRecon Atlas
- Vulnerability scanningRecon Atlas
- Parameter discoveryRecon Atlas
Recon AtlasFor authorized testing only. Your scope is the map edge.