| Field | Detail |
|---|---|
| Summary | Brute-force web content, directories, vhosts and DNS |
| Category | Web content & DNS discovery |
| Phase | web-testing, enumeration |
| Interface | CLI |
| Platform | Linux, Windows, macOS |
| Licence | Open source |
| Docs | https://github.com/ffuf/ffuf / https://github.com/OJ/gobuster |
| Related | Burp Suite, Nikto, SQLMap |
Content and DNS brute-forcers for web enumeration — find hidden directories, files, virtual hosts and subdomains by trying a wordlist. ffuf is fast and flexible (fuzzes any part of a request via the FUZZ keyword); Gobuster is simple and fast with clear modes.
⚠️ Warning — This is noisy and in-scope only Directory brute-forcing hammers the target and fills its logs. Keep it to authorised hosts and tune the rate on fragile ones.
Wordlists (Kali paths)
/usr/share/wordlists/dirb/common.txt
/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt
/usr/share/seclists/Discovery/Web-Content/ # install: apt install seclists
/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
/usr/share/wordlists/rockyou.txt # passwords, not content (gunzip first)
ffuf
The FUZZ keyword marks where each wordlist entry is substituted.
# Directories/files
ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt \
-u http://10.10.10.5/FUZZ
# Add extensions
ffuf -w common.txt -u http://10.10.10.5/FUZZ -e .php,.html,.txt,.bak
# Recursion
ffuf -w list.txt -u http://10.10.10.5/FUZZ -recursion -recursion-depth 2
# Filter/match by response
ffuf ... -mc 200,301,302 # match status codes
ffuf ... -fc 404 # filter out status codes
ffuf ... -fs 1234 # filter out responses of this byte size
ffuf ... -fw 12 # filter by word count
ffuf ... -ac # auto-calibrate: learn & drop the "not found" pattern
# Virtual-host discovery (same IP, different Host header)
ffuf -w subdomains.txt -u http://10.10.10.5/ -H "Host: FUZZ.target.com" -fs 0
# GET parameter fuzzing
ffuf -w params.txt -u "http://10.10.10.5/page?FUZZ=test" -fs 1234
# POST body / login fuzzing
ffuf -w list.txt -X POST -d "user=admin&pass=FUZZ" \
-H "Content-Type: application/x-www-form-urlencoded" \
-u http://10.10.10.5/login -fc 200
# Multiple wordlists (clusterbomb by default)
ffuf -w users.txt:U -w pass.txt:P -X POST -d "user=U&pass=P" -u .../login
Useful flags: -t 40 threads, -p 0.1 delay, -rate 100 req/sec cap, -o out.json -of json output, -replay-proxy http://127.0.0.1:8080 to send hits into Burp Suite, -mc all then filter.
💡 Tip — If everything returns 200, the app likely serves a custom not-found page. Use
-ac(auto-calibrate) or filter by size/words (-fs/-fw) to drop it.
Gobuster
Mode-based. Pick the mode, give a wordlist with -w.
# dir — directories/files
gobuster dir -u http://10.10.10.5 -w common.txt
gobuster dir -u http://10.10.10.5 -w list.txt -x php,html,txt # extensions
gobuster dir -u https://10.10.10.5 -w list.txt -k # skip TLS verify
gobuster dir -u http://10.10.10.5 -w list.txt -s 200,204,301,302,307 -b "" # status include, blacklist none
gobuster dir -u http://10.10.10.5 -w list.txt -t 50 # threads
gobuster dir ... -c "session=abc" # cookies
gobuster dir ... -U admin -P password # basic auth
# dns — subdomain brute force
gobuster dns -d target.com -w subdomains.txt
gobuster dns -d target.com -w subdomains.txt -i # show resolved IPs
# vhost — virtual hosts (Host header)
gobuster vhost -u http://10.10.10.5 -w subdomains.txt --append-domain
feroxbuster (recursive by default)
A fast Rust content scanner whose selling point is automatic, sensible recursion — it spiders discovered directories without you managing depth by hand.
feroxbuster -u http://10.10.10.5 # recursive by default
feroxbuster -u http://10.10.10.5 -w common.txt -x php,txt # wordlist + extensions
feroxbuster -u http://10.10.10.5 -d 2 # cap recursion depth
feroxbuster -u http://10.10.10.5 -C 404,403 # filter status codes
feroxbuster -u http://10.10.10.5 -s 200,301 -o ferox.txt # include-status, output
feroxbuster -u https://10.10.10.5 -k # skip TLS verify
feroxbuster -u http://10.10.10.5 --proxy http://127.0.0.1:8080 # through Burp
feroxbuster --resume-from ferox.state # resume a scan
Pick it over ffuf/Gobuster when you specifically want hands-off recursion; it auto-filters the "not found" pattern (like ffuf's -ac) with less tuning.
Other content scanners you'll meet
- dirsearch — Python, good default extension list, clean output.
- dirb — older, slower, still on many boxes;
dirb http://host wordlist.txt. - wfuzz — ffuf's predecessor; same
FUZZkeyword idea, largely superseded by ffuf.
ffuf vs Gobuster vs feroxbuster — quick pick
| Need | Use |
|---|---|
| Fuzz params, headers, POST bodies, vhosts | ffuf (FUZZ anywhere) |
| Fast, simple dir/dns/vhost sweep | Gobuster |
| Hands-off recursive directory discovery | feroxbuster (recursion by default) |
| Pipe hits into Burp | ffuf -replay-proxy / feroxbuster --proxy |
| Manual recursion control | ffuf -recursion -recursion-depth |
More ffuf / Gobuster flags
ffuf matchers/filters and modes:
| Flag | Purpose |
|---|---|
-mc / -ms / -ml / -mw / -mr |
Match by status / size / lines / words / regex |
-fc / -fs / -fl / -fw / -fr |
Filter OUT by status / size / lines / words / regex |
-ac / -acc |
Auto-calibrate the "not found" response (incl. custom) |
-mode clusterbomb\|pitchfork\|sniper |
Multi-wordlist combination mode |
-rate N / -p 0.1 / -t N |
Rate limit / per-request delay / threads |
-recursion -recursion-depth N |
Recurse into discovered directories |
-H / -b / -d / -X |
Header / cookie / POST body / method |
-replay-proxy http://127.0.0.1:8080 |
Replay matched hits into Burp |
-o out.json -of json |
Output (json/csv/html/md) |
ffuf -w list.txt:FUZZ -u https://t/FUZZ -mc 200,301 -ac -recursion -o out.json -of json
ffuf -w users.txt:U -w pass.txt:P -mode clusterbomb -X POST -d 'user=U&pass=P' -u https://t/login -fc 401
Gobuster has more modes beyond dir/dns/vhost: s3/gcs (cloud-bucket brute), tftp, and fuzz (ffuf-style keyword fuzzing).
Kill-chain usage
Enumeration
gobuster dir -u https://t -w common.txt # find directories/files
Web testing
ffuf -w params.txt -u 'https://t/?FUZZ=1' -fs 1234 # parameter fuzzing
Where it fits
Run after an initial Nmap shows a web port. Discover endpoints → inspect interesting ones in Burp Suite Repeater → feed any parameters to SQLMap. Pair with Nikto for known-file/misconfiguration checks.