ffuf & gobuster
ffuf and gobuster are web fuzzers: they try words from a wordlist against the target and show you what answers differently. They’re used to discover hidden content (directories, files, backups), virtual hosts, undocumented parameters and values that change the application’s behaviour. The tool is the easy part; what decides the outcome is filtering the baseline response properly and choosing the right wordlist.
What it is
Section titled “What it is”- ffuf (Fuzz Faster U Fool): very fast and flexible. The
FUZZkeyword marks where to inject, and it can go in the URL, any header or the body. - gobuster: simple and robust, with dedicated modes (
dir,vhost,dns,fuzz). - feroxbuster: recursive by default with automatic filtering of repeats; good for a first broad sweep.
Installation
Section titled “Installation”sudo apt install ffuf gobuster feroxbuster seclists # Kali/Parrot; SecLists in /usr/share/seclists# or with Gogo install github.com/ffuf/ffuf/v2@latestgo install github.com/OJ/gobuster/v3@latestThe key: filtering the baseline
Section titled “The key: filtering the baseline”Before fuzzing, look at how the server responds to something that doesn’t exist. That’s the baseline response, and the whole job is hiding it.
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' https://host/does-not-exist-123# 200 4521 → the server answers 200 to everything (soft-404): filtering by status is useless| Option | What it does |
|---|---|
-mc · -fc |
Show · hide by status (by default ffuf already shows 200-299, 301, 302, 307, 401, 403, 405, 500) |
-ms · -fs |
By size in bytes |
-mw · -fw |
By word count |
-ml · -fl |
By line count |
-mr · -fr |
By regular expression on the response |
-ac |
Auto-calibration: learns the baseline with test requests and filters it by itself |
-acc |
Adds your own calibration strings |
A reliable strategy: -mc all (see everything) plus a baseline filter (-fs, -fw or -ac). If -ac over- or under-filters, calibrate by hand with the baseline’s size or word count.
ffuf -u https://host/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words.txt -mc all -fs 4521ffuf -u https://host/FUZZ -w wl.txt -acContent: directories and files
Section titled “Content: directories and files”# Quick first sweepffuf -u https://host/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -ac
# Files with the extensions of the detected stackffuf -u https://host/FUZZ -w wl.txt -e .php,.bak,.old,.txt -ac
# Bounded recursionffuf -u https://host/FUZZ -w wl.txt -recursion -recursion-depth 2 -ac
# gobuster and feroxbuster equivalentsgobuster dir -u https://host -w wl.txt -x php,bakferoxbuster -u https://host -w wl.txt -x php,bak -d 2| Stack | Extensions worth adding |
|---|---|
| PHP | .php, .phtml, .php.bak, .inc |
| .NET | .aspx, .ashx, .asmx, .config |
| Java | .jsp, .do, .action |
| Any | .bak, .old, .zip, .tar.gz, .txt, ~ |
Pick extensions based on the stack fingerprint: adding all of them multiplies requests without improving results.
Virtual hosts
Section titled “Virtual hosts”The same IP can serve several sites depending on the Host header. A vhost doesn’t need a public DNS record, so it only shows up when you fuzz that header.
| Subdomain | Vhost | |
|---|---|---|
| DNS | Has its own record | May have none |
| IP | Can point to another machine | Same IP, different Host |
| How you find it | DNS sources, certificates, DNS brute force | Fuzzing the Host header |
# Baseline for a made-up Hostcurl -s -o /dev/null -w '%{size_download}\n' -H 'Host: zzzz.domain.htb' http://10.10.10.5/
# Vhost fuzzingffuf -u http://10.10.10.5/ -H 'Host: FUZZ.domain.htb' \ -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -fs <baseline-size>
# gobuster: --append-domain appends the domain to each wordgobuster vhost -u http://domain.htb -w subs.txt --append-domainEvery vhost you find goes into /etc/hosts and gets fuzzed again as if it were another site.
Parameters, values, headers and methods
Section titled “Parameters, values, headers and methods”# Hidden GET parameters: FUZZ in the NAMEffuf -u 'https://host/page.php?FUZZ=test' \ -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt -fs <baseline-size>
# POST parameters: you must set the Content-Type yourselfffuf -u https://host/page.php -X POST -d 'FUZZ=test' \ -H 'Content-Type: application/x-www-form-urlencoded' -w params.txt -fs <baseline-size>
# JSON bodyffuf -u https://host/api/items -X POST -d '{"FUZZ":"test"}' \ -H 'Content-Type: application/json' -w params.txt -fs <baseline-size>
# Values: FUZZ in the VALUE (IDs for IDOR, file names, actions)seq 1 500 > ids.txtffuf -u 'https://host/api/users?id=FUZZ' -w ids.txt -mc 200 -fs <baseline-size>
# Headers that change the logic ("localhost only")ffuf -u https://host/admin -H 'X-Forwarded-For: FUZZ' -w ips.txt -mc all -fc 403
# Methods against a 403ffuf -u https://host/admin -X FUZZ -w <(printf 'GET\nPOST\nPUT\nPATCH\nDELETE\nOPTIONS\nHEAD\n') -mc allFor hidden parameters there are also dedicated tools (arjun, x8) that try many names per request and compare responses.
Several wordlists at once
Section titled “Several wordlists at once”Each list gets its own keyword (-w list.txt:KEYWORD), and the mode decides how they combine:
| Mode | How it combines | Typical use |
|---|---|---|
clusterbomb (default) |
Every combination across lists | Users × passwords in a lab |
pitchfork |
In parallel: line 1 with line 1, 2 with 2… | Known pairs (a user and their leaked password) |
ffuf -u https://host/login -X POST -d 'user=USR&pass=PWD' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -w users.txt:USR -w passwords.txt:PWD -mode clusterbomb -fc 401Output and pace
Section titled “Output and pace”ffuf -u https://host/FUZZ -w wl.txt -ac -o out.json -of json # save resultsffuf -u https://host/FUZZ -w wl.txt -t 20 -rate 50 # threads and requests per secondffuf -u https://host/FUZZ -w wl.txt -x http://127.0.0.1:8080 # route through Burp to reviewWorkflow
Section titled “Workflow”flowchart TD
A[Web host in scope] --> B["Baseline response (curl)"]
B --> C["ffuf content + stack extensions"]
B --> D["ffuf vhosts (Host: FUZZ)"]
D --> E["New vhosts → /etc/hosts → repeat"]
C --> F{"Interesting paths"}
F -->|"directories"| G["Recursion"]
F -->|"endpoints"| H["Parameters: name and value"]
F -->|"403"| I["Methods and headers"]
H --> J["IDOR / LFI / injections"]
Detection (Blue Team)
Section titled “Detection (Blue Team)”- Fuzzing produces bursts of 404s (or identical responses) from a single IP: visible in access logs and the WAF.
- Default
User-Agentstrings (Fuzz Faster U Fool,gobuster/3.x) give the tool away. - Vhost fuzzing produces many requests to the same IP with a changing
Hostand default-site responses. - Useful defences: per-IP rate limiting, consistent 404 responses (that don’t leak existence through size or timing), and alerts on error volume.
Checklist
Section titled “Checklist”- Target within the authorised scope and pace agreed.
- Baseline response measured and filtered (
-fs/-fw/-ac). - Extensions chosen according to the stack.
- Vhosts fuzzed and added to
/etc/hosts. - Parameters tried by name and by value, GET and POST (with
Content-Type). - 403s reviewed with methods and headers.
- Results saved.
See also
Section titled “See also”- Wordlists — which list to pick for each kind of fuzzing.
- Content discovery — what to look for and what to do with what turns up.