Skip to content
PHASE 11/16OP EXCAVATE

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.

6 min readRecon Atlas

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

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.

Terminal window
# Turn every path segment you have seen into a custom wordlist
cat urls/clean.txt js/endpoints.txt | unfurl paths | tr '/' '\n' | grep -vE '^$|\.' | sort -u > content/custom-words.txt
https://app.example.com/actuator/env 200 4218

ffuf 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 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.

https://app.example.com/backup.sql 200 15420

The 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.

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.

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.

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.

  1. 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 second
    ffuf -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
  2. Directories with ffuf. -ac auto-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 host
    ffuf -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 json

    When -ac is 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 words
    ffuf -u https://app.example.com/FUZZ -w content/custom-words.txt -fs 1234 -fw 57 -rate 30
  3. Recursion with feroxbuster. It follows found directories automatically.

    Terminal window
    # Recursive scan two levels deep, rate-limited, 404s hidden
    feroxbuster -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.txt

    Gobuster and dirsearch do the same job; use whichever output you prefer.

    Terminal window
    # Gobuster directory mode
    gobuster dir -u https://app.example.com -w ~/wordlists/SecLists/Discovery/Web-Content/common.txt -t 10 --delay 100ms -o content/app-gobuster.txt
    Terminal window
    # dirsearch with common extensions and a rate cap
    dirsearch -u https://app.example.com -e php,aspx,jsp,json,bak --max-rate 30 -o content/app-dirsearch.txt
  4. API routes with Kiterunner. Normal brute force sends GET /FUZZ. Real APIs want POST /api/v1/users with 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 dataset
    kr scan https://api.example.com -w ~/wordlists/routes-large.kite -x 10 -j 20 \
    --fail-status-codes 400,401,403,404,501,502

    Before you brute force, probe for an exposed OpenAPI or Swagger document. One /openapi.json or /swagger-ui/ hit lists every route and parameter at once, which beats guessing. The dork and the full path list are in phase 14.

  5. Virtual hosts. One IP can serve many sites, chosen by the Host header. Hidden vhosts like admin.example.com may not exist in DNS at all.

    Terminal window
    # Fuzz the Host header on an origin IP; -ac drops the default site
    ffuf -u https://203.0.113.10/ -H "Host: FUZZ.example.com" -w ~/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -ac -rate 20
    Terminal window
    # Gobuster vhost mode against the main hostname
    gobuster vhost -u https://example.com -w ~/wordlists/SecLists/Discovery/DNS/subdomains-top1million-5000.txt --append-domain -t 10
  6. Write up hits in content/findings.md: URL, status, size, and why it matters.

A path that returns 200, 403 or a source-control directory is a lead with an obvious next step.

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.

Terminal window
# Rebuild the repository from an exposed .git directory
git-dumper https://app.example.com/.git/ content/git-dump

Read the dump offline. Report the exposure; do not push or alter anything.

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.

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.

Terminal window
# Recover a GraphQL schema when introspection is disabled
clairvoyance https://app.example.com/graphql -o content/graphql-schema.json

The recovered schema drives the GraphQL testing in API and service testing.

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.

  • New paths go into phase 12 to confirm versions and into phase 13 as targeted Nuclei input.
  • New vhosts go back into subs/all.txt with a note that they only exist on a specific IP.
  • New API routes go back into phase 10 for hidden parameters.
  • 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. /backup and /backup.zip are different requests.
  • Running content discovery through a CDN that bans you after 1,000 requests, when the origin IP was available.
What to look for
  • 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, .sql next 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, /graphql with introspection enabled
  • Vhosts that serve a different app than the default site

Next, identify what each host runs in phase 12.

Connections17 backlinks · 9 outgoing · 5 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.