Gobuster & Ffuf: Web Fuzzing, Directory Brute-Force & Vhost Enumeration

Gobuster and Ffuf are essential web fuzzing tools for penetration testers. Gobuster excels at fast directory and DNS brute-forcing, while Ffuf (Fuzz Faster U Fool) is the modern standard for flexible fuzzing — directories, parameters, virtual hosts, and POST data. This guide covers both tools with real-world wordlists, filter techniques, and vhost enumeration strategies.

Gobuster: Directory & File Brute-Force

# Basic directory scan
gobuster dir -u https://target.com -w /usr/share/wordlists/dirb/common.txt

# With file extensions
gobuster dir -u https://target.com -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt -x php,html,txt,bak

# With authentication (Basic Auth)
gobuster dir -u https://target.com -w wordlist.txt -U admin -P password

# With cookies
gobuster dir -u https://target.com -w wordlist.txt -c "session=abc123"

# Increase threads
gobuster dir -u https://target.com -w wordlist.txt -t 50

# DNS subdomain enumeration
gobuster dns -d target.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

# VHOST enumeration
gobuster vhost -u http://target.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

Ffuf: Advanced Web Fuzzing

Ffuf uses FUZZ as a placeholder anywhere in the request — URL path, headers, parameters, POST body. It’s faster and more flexible than Gobuster for complex fuzzing scenarios.

# Directory fuzzing
ffuf -u https://target.com/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt

# File extension fuzzing
ffuf -u https://target.com/indexFUZZ -w /usr/share/seclists/Discovery/Web-Content/web-extensions.txt

# Parameter discovery
ffuf -u https://target.com/page?FUZZ=1 -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt

# POST data fuzzing
ffuf -u https://target.com/login -X POST -d "username=FUZZ&password=admin" -w usernames.txt

# VHOST fuzzing
ffuf -u http://10.10.10.10/ -H "Host: FUZZ.target.com" -w subdomains.txt

# Filter by status code / size
ffuf -u https://target.com/FUZZ -w wordlist.txt -fc 404        # filter 404
ffuf -u https://target.com/FUZZ -w wordlist.txt -fs 1234       # filter size 1234
ffuf -u https://target.com/FUZZ -w wordlist.txt -mc 200,302    # match 200 and 302

Best Wordlists for Fuzzing

SecLists is the gold standard for fuzzing wordlists. Install with: sudo apt install seclists or clone from GitHub.

# Top wordlists for each use case

# Directories:
/usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt
/usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt

# Files:
/usr/share/seclists/Discovery/Web-Content/raft-medium-files.txt

# DNS/subdomains:
/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt

# Parameters:
/usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt

# Usernames:
/usr/share/seclists/Usernames/xato-net-10-million-usernames-dup.txt

References

See Gobuster GitHub, Ffuf GitHub, and SecLists.

Related Articles

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top