| name | gobuster |
| description | Auth/lab ref: Directory, DNS subdomain, and vhost brute-forcer written in Go. For enumerate web directories, find hidden paths, brute-force subdomains via DNS, or discover virtual hosts on a web server. |
| license | Apache-2.0 |
| compatibility | Linux, Windows, macOS. |
| metadata | {"author":"AeonDave","version":"1.1"} |
Gobuster
Go-based brute-forcer for directories, DNS, and vhosts.
Quick Start
gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txt
gobuster dns -d example.com -w /usr/share/wordlists/subdomains.txt
gobuster vhost -u http://example.com -w /usr/share/wordlists/subdomains.txt
Modes
| Mode | Description |
|---|
dir | Directory/file enumeration |
dns | DNS subdomain brute-force |
vhost | Virtual host discovery |
fuzz | Generic fuzzing (URL path/param) |
s3 | Enumerate open S3 buckets |
gcs | Google Cloud Storage buckets |
Dir Mode Flags
| Flag | Description |
|---|
-u <url> | Target URL |
-w <wordlist> | Wordlist path |
-t <n> | Threads (default 10) |
-x <ext> | File extensions (e.g., php,html,txt) |
-s <codes> | Allowed status codes (default 200,204,301,302,307,401,403) |
-b <codes> | Blacklist status codes |
-r | Follow redirects |
-k | Skip TLS verification |
-H <header> | Custom header (e.g., "Authorization: Bearer TOKEN") |
-c <cookie> | Add cookie |
--timeout <duration> | HTTP timeout (e.g., 10s) |
-o <file> | Output file |
-q | Quiet (no banner) |
--no-error | Suppress errors |
--add-slash | Append / to each request |
-e | Expanded mode (print full URLs) |
--exclude-length <n> | Exclude responses of this length |
-n | No status codes in output |
DNS Mode Flags
| Flag | Description |
|---|
-d <domain> | Target domain |
-w <wordlist> | Wordlist |
-r <resolver> | Custom DNS resolver |
--wildcard | Force continue on wildcard DNS |
--show-ips | Show IPs with results |
--show-cname | Show CNAME records |
Vhost Mode Flags
| Flag | Description |
|---|
-u <url> | Base URL |
-w <wordlist> | Wordlist of subdomains |
--append-domain | Append base domain to wordlist entries |
--domain <domain> | Domain to append (if different from -u) |
--exclude-length <n> | Exclude specific response size (filter default response) |
Common Workflows
gobuster dir -u https://target.com -w common.txt -x php,html,bak -o dirs.txt -q
gobuster dir -u https://target.com -w common.txt -H "Authorization: Bearer <token>"
gobuster dir -u https://target.com/api/ -w api-endpoints.txt -x json
gobuster dns -d target.com -w subdomains-top1m.txt -r 8.8.8.8 -t 50
gobuster vhost -u http://target.com -w subdomains.txt --append-domain
gobuster vhost -u http://target.com -w subdomains.txt --append-domain --exclude-length 12345
gobuster s3 -w bucket-names.txt
gobuster fuzz -u https://target.com/FUZZ -w wordlist.txt -b 404
Useful Wordlists
/usr/share/wordlists/dirb/common.txt — general dirs
/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt — comprehensive
SecLists/Discovery/Web-Content/raft-medium-directories.txt — raft lists
SecLists/Discovery/DNS/subdomains-top1million-5000.txt — DNS
Resources
| File | When to load |
|---|
references/wordlists.md | Recommended wordlists per mode and target type |