Content discovery
Quick-reference commands for content discovery. Full explanation in the feroxbuster note.
Feroxbuster
Section titled “Feroxbuster”feroxbuster -u https://target.example -w /usr/share/seclists/Discovery/Web-Content/common.txtferoxbuster -u https://target.example \ -w /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt \ -x php,html,js,txt,bak,json,xml,conf,env \ -C 404 -t 20 --rate-limit 50 -d 3 \ -p http://127.0.0.1:8080 -k -o results.txtferoxbuster -u https://target.example -b "session=abc123" -H "Authorization: Bearer eyJ..."feroxbuster -u https://target.example/api \ -w /usr/share/seclists/Discovery/Web-Content/api/api-endpoints.txt \ -x json -C 404,405 --no-recursionferoxbuster -u https://target.example \ -w /usr/share/seclists/Discovery/Web-Content/common.txt \ -x bak,old,swp,save,orig,dist,txt,log,sql,gz,zip,tar \ --no-recursion -s 200| Filter | Flag | Use |
|---|---|---|
| Exclude status | -C 404,403 |
Remove known-bad codes |
| Include status | -s 200,301 |
Show only these codes |
| Exclude size | -S 1234 |
Custom 404 page (fixed size) |
| Exclude words | -W 42 |
Custom 404 (fixed word count) |
| Regex | --filter-regex "Not Found" |
Match 404 body text |
ffuf -u https://target.example/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,301,302,403ffuf -u https://target.example/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -acffuf -u https://target.example -H "Host: FUZZ.target.example" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -acffuf -u "https://target.example/page?FUZZ=value" -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt -acffuf -u https://target.example/login -X POST -d "username=admin&password=FUZZ" -w /usr/share/wordlists/rockyou.txt -fc 401Wordlists (SecLists)
Section titled “Wordlists (SecLists)”| Wordlist | Entries | Use |
|---|---|---|
Web-Content/common.txt |
~4,700 | Quick scan |
Web-Content/directory-list-2.3-medium.txt |
~220,000 | Standard assessment |
Web-Content/raft-medium-directories.txt |
~30,000 | Directories |
Web-Content/raft-medium-files.txt |
~17,000 | Files with extensions |
Web-Content/api/api-endpoints.txt |
~700 | API paths |
Web-Content/web-extensions.txt |
~40 | Backup extension fuzzing |
Extensions by tech stack
Section titled “Extensions by tech stack”| Stack | Extensions |
|---|---|
| PHP | -x php,html,txt,bak,old,conf,env,log |
| ASP.NET | -x aspx,ashx,asmx,config,bak |
| Java | -x jsp,jspx,do,action,xml,properties |
| Node.js | -x js,json,html,txt,env |
| Python | -x py,html,txt,json,yaml,env |
146 words, about 1 min read