# Gobuster Directory Fuzzing Cheatsheet

> Complete gobuster reference for directory brute-forcing, DNS subdomain discovery, vhost enumeration, and fuzzing.

Source: https://payloadplayground.com/cheatsheets/gobuster

For authorized security testing only.

## Directory Mode (dir)

- `gobuster dir -u http://target.com -w /usr/share/seclists/Discovery/Web-Content/common.txt` — Basic directory scan
- `gobuster dir -u http://target.com -w wordlist.txt -x php,html,txt,bak,zip` — Scan with file extensions
- `gobuster dir -u http://target.com -w wordlist.txt -s 200,204,301,302,307,403` — Show specific status codes only
- `gobuster dir -u http://target.com -w wordlist.txt -b 404,500` — Blacklist (hide) specific status codes
- `gobuster dir -u http://target.com -w wordlist.txt -t 50` — Use 50 threads
- `gobuster dir -u http://target.com -w wordlist.txt -o results.txt` — Save output to file

## DNS Subdomain Mode (dns)

- `gobuster dns -d target.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt` — Subdomain enumeration
- `gobuster dns -d target.com -w subdomains.txt --show-cname` — Show CNAME records (useful for subdomain takeover)
- `gobuster dns -d target.com -w subdomains.txt -r 8.8.8.8` — Use specific DNS resolver (Google DNS)
- `gobuster dns -d target.com -w subdomains.txt -t 100` — Use 100 threads for faster enumeration

## VHost Mode (vhost)

- `gobuster vhost -u http://target.com -w subdomains.txt` — Virtual host discovery via Host header
- `gobuster vhost -u http://target.com -w subdomains.txt --append-domain` — Append base domain to each word (word.target.com)
- `gobuster vhost -u http://10.10.10.10 -w subdomains.txt -H "Host: FUZZ.target.com"` — VHost fuzzing against IP address

## Fuzz Mode (fuzz)

- `gobuster fuzz -u "http://target.com/page?id=FUZZ" -w ids.txt` — Fuzz URL parameter value
- `gobuster fuzz -u "http://target.com/FUZZ/page" -w wordlist.txt` — Fuzz path segment
- `gobuster fuzz -u http://target.com -H "X-FUZZ: test" -w headers.txt` — Fuzz custom header value

## Authentication & Options

- `gobuster dir -u http://target.com -w wordlist.txt -c "session=abc123"` — Add cookie for authentication
- `gobuster dir -u http://target.com -w wordlist.txt -H "Authorization: Bearer eyJ..."` — Add Authorization header
- `gobuster dir -u http://target.com -w wordlist.txt -U admin -P password` — HTTP Basic authentication
- `gobuster dir -u http://target.com -w wordlist.txt -k` — Skip TLS certificate verification
- `gobuster dir -u http://target.com -w wordlist.txt -p http://127.0.0.1:8080` — Use proxy (Burp Suite)

## Common Wordlists

- `/usr/share/seclists/Discovery/Web-Content/common.txt` — Common files and directories (~4k entries)
- `/usr/share/seclists/Discovery/Web-Content/raft-large-directories.txt` — Large directory list (~62k entries)
- `/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt` — Top 5000 subdomains
- `/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt` — DirBuster medium list (~220k entries)
- `/usr/share/seclists/Discovery/Web-Content/api/objects.txt` — API endpoint wordlist

## Related

- [Local File Inclusion generator](https://payloadplayground.com/generators/lfi)
- [ffuf Web Fuzzer Cheatsheet](https://payloadplayground.com/cheatsheets/ffuf.md)
- [XSS Payloads & Filter Bypass — Cheat Sheet](https://payloadplayground.com/cheatsheets/xss.md)
- [SQLMap Injection Cheatsheet](https://payloadplayground.com/cheatsheets/sqlmap.md)
