☼
⌃
☰

gobuster

Table of Contents

Directory and DNS brute-forcing tool. Faster than Dirb but less featured than Feroxbuster — no automatic recursion. Use when a room or target specifically expects Gobuster, or for DNS/vhost enumeration. For recursive directory busting prefer Feroxbuster; for parameter fuzzing prefer ffuf.

Related: Feroxbuster ffuf Content Discovery Subdomain Enumeration Web Application Testing Methodology

Modes

Mode Use
dir Directory and file brute-forcing
dns Subdomain enumeration
vhost Virtual host enumeration
fuzz General fuzzing (like ffuf)

Core Flags

Flag Description
-u Target URL
-w Wordlist
-x File extensions e.g. -x php,html,txt
-t Threads (default 10)
-o Output file
-b Blacklist status codes e.g. -b 404,403
-s Whitelist status codes
-k Skip TLS verification
-c Cookie string
-H Add header
-r Follow redirects
-q Quiet — no banner

Common Workflows

Directory Enumeration

SHELL
gobuster dir -u http://$IP \
  -w /usr/share/seclists/Discovery/Web-Content/common.txt \
  -x php,html,txt \
  -b 404,403 \
  -o gobuster_dir.txt

# With authentication
gobuster dir -u http://$IP \
  -w /usr/share/seclists/Discovery/Web-Content/common.txt \
  -c "session=abc123"

DNS Subdomain Enumeration

SHELL
gobuster dns -d target.com \
  -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt \
  -o gobuster_dns.txt

Virtual Host Enumeration

SHELL
gobuster vhost -u http://$IP \
  -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt \
  --append-domain \
  -o gobuster_vhost.txt

Tips

  • Gobuster does not recurse — run again manually on interesting directories discovered in the first pass
  • --append-domain is required for vhost mode on newer versions
  • For speed increase threads with -t 50 on stable targets
  • Feroxbuster is generally preferable — use Gobuster when a room explicitly expects it or for DNS/vhost mode