pentesting, updated
ffuf
ffuf (Fuzz Faster U Fool): fast web fuzzing for directories, files, parameters and virtual hosts.
What it’s for
Fast HTTP fuzzing — brute-force directories and files, discover parameters, and enumerate
virtual hosts, by replacing the FUZZ keyword with each wordlist entry.
Install
go install github.com/ffuf/ffuf/v2@latest # https://github.com/ffuf/ffuf
# or: sudo apt install ffuf
Common commands
ffuf -c -w wordlist.txt -u https://example.com/FUZZ # directory/file discovery
ffuf -c -w wordlist.txt -u https://example.com/FUZZ -fc 401 # filter out 401 responses
ffuf -c -w wordlist.txt -u https://example.com/FUZZ -mc 200,301,302 # match only these codes
ffuf -c -w params.txt -u 'https://example.com/page?FUZZ=test' # parameter name discovery
ffuf -c -w subs.txt -u https://example.com -H 'Host: FUZZ.example.com' # vhost enumeration
ffuf -c -w wordlist.txt -u https://example.com/FUZZ -e .php,.bak,.old # append extensions
Useful flags
| Flag | Effect |
|---|---|
-c | Colourise output |
-fc | Filter out these HTTP status codes |
-mc | Match only these status codes |
-fs | Filter out responses of this size (kill a noisy default page) |
-e | Append extensions to each word |
-recursion | Recurse into discovered directories |
Notes
Start by filtering the noise: if a missing page returns 200 with a fixed size, use -fs
on that size. Tune threads with -t to stay within a safe rate for the target.