# Basic directory brute force
gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt
# With file extensions
gobuster dir -u http://target.com -w wordlist.txt -x php,html,txt,js
# With authentication
gobuster dir -u http://target.com -w wordlist.txt -U admin -P password
# With cookies
gobuster dir -u http://target.com -w wordlist.txt -c "session=abc123"
# Custom headers
gobuster dir -u http://target.com -w wordlist.txt -H "Authorization: Bearer token"
# Increase threads (default 10)
gobuster dir -u http://target.com -w wordlist.txt -t 50
# Follow redirects
gobuster dir -u http://target.com -w wordlist.txt -r
# Show only specific status codes
gobuster dir -u http://target.com -w wordlist.txt -s 200,204,301,302,307
# Output to file
gobuster dir -u http://target.com -w wordlist.txt -o results.txt
# Basic subdomain enum
gobuster dns -d target.com -w /usr/share/wordlists/subdomains.txt
# Show IP addresses
gobuster dns -d target.com -w wordlist.txt -i
# Custom DNS resolver
gobuster dns -d target.com -w wordlist.txt -r 8.8.8.8
# Wildcard detection bypass
gobuster dns -d target.com -w wordlist.txt --wildcard
# Basic vhost enum
gobuster vhost -u http://target.com -w wordlist.txt
# Append domain to wordlist entries
gobuster vhost -u http://target.com -w wordlist.txt --append-domain
# With custom host header base
gobuster vhost -u http://10.10.10.10 -w wordlist.txt -H "Host: FUZZ.target.com"
# Skip TLS verification
gobuster dir -u https://target.com -w wordlist.txt -k
# Client certificate
gobuster dir -u https://target.com -w wordlist.txt --client-cert cert.pem --client-key key.pem
| Path | Use Case |
|---|
/usr/share/wordlists/dirb/common.txt | Quick directory scan |
/usr/share/wordlists/dirb/big.txt | Thorough directory scan |
/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt | Medium scan |
/usr/share/seclists/Discovery/Web-Content/raft-large-directories.txt | SecLists dirs |
/usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt | Subdomains |
| Flag | Description |
|---|
-u | Target URL |
-w | Wordlist path |
-x | File extensions |
-t | Threads (default 10) |
-o | Output file |
-s | Status codes to show |
-b | Status codes to exclude |
-k | Skip TLS verification |
-r | Follow redirects |
-q | Quiet mode |
--timeout | HTTP timeout (default 10s) |