Gobuster Cheat Sheet: Commands and Examples for Gobuster 3.8

Photo by Anete Lusina on Pexels
Based on the official docs for gobuster 3.8.2 Hardware test not run How guides are made and checked

Gobuster is a fast brute forcing tool written in Go. It guesses names from a wordlist and reports which ones exist: directories and files on a web server, subdomains in DNS, virtual hosts, cloud storage buckets and files on a TFTP server. This cheat sheet covers the current release, gobuster 3.8.2, including the short flags that changed in 3.7.

Use gobuster on your own websites and servers, or on systems you have written permission to test. Run against your own site, it is a quick way to find forgotten backups, old admin pages and test subdomains before someone else does.

Install gobuster

SystemCommandVersion you get
Kali Linuxsudo apt install gobuster3.8.2
Debian 13 (stable)sudo apt install gobuster3.6.0
Ubuntu 24.04 LTSsudo apt install gobuster3.6.0
Fedorasudo dnf install gobusterCheck dnf info gobuster
NixOSnix-shell -p gobusterFollows nixpkgs
Any system with Go 1.25 or latergo install github.com/OJ/gobuster/v3@latestLatest
Dockerdocker pull ghcr.io/oj/gobuster:latestLatest

Distribution packages lag behind. Debian 13 and Ubuntu 24.04 still ship 3.6.0, which uses the old short flags (for example -d for the DNS domain). If you want the commands below to work exactly as written, install 3.8.2 with go install or use the Docker image:

docker run --rm -it ghcr.io/oj/gobuster:latest dir -u https://example.com -w /path/to/wordlist.txt

For a wordlist inside the container, mount it with -v "$PWD:/data" and point -w at /data/yourlist.txt. Check what you have with gobuster --version.

Modes at a glance

ModeWhat it findsBasic command
dirDirectories and files on a web servergobuster dir -u https://example.com -w wordlist.txt
dnsSubdomains, by DNS lookupsgobuster dns -do example.com -w subdomains.txt
vhostVirtual hosts on a web servergobuster vhost -u https://example.com --ad -w vhosts.txt
fuzzAnything you mark with FUZZ in the URL, headers or bodygobuster fuzz -u "https://example.com/?id=FUZZ" -w list.txt
s3Public Amazon S3 bucketsgobuster s3 -w bucket-names.txt
gcsPublic Google Cloud Storage bucketsgobuster gcs -w bucket-names.txt
tftpFiles on a TFTP servergobuster tftp -s 10.0.0.1 -w wordlist.txt

Help for any mode: gobuster help dir or gobuster dir --help.

There is no headers or cert mode. Older versions of this cheat sheet listed them by mistake; to fuzz a header, use fuzz mode with -H.

Global options (all modes)

OptionWhat it does
-w, --wordlistWordlist path. Use -w - to read from standard input
-t, --threadsConcurrent threads (default 10)
-d, --delayWait per thread between requests, for example -d 500ms
-o, --outputWrite results to a file
-q, --quietNo banner or noise
--np, --no-progressHide the progress line (turned off automatically when output is redirected)
--ne, --no-errorHide errors
--nc, --no-colorPlain output
--wo, --wordlist-offsetResume from a line number in the wordlist
-p, --patternFile of replacement patterns, using {GOBUSTER} as the placeholder
--debugDebug output (replaced -v/--verbose in 3.7)

dir mode: directories and files

TaskCommand
Basic directory scangobuster dir -u https://example.com -w wordlist.txt
Look for files by extensiongobuster dir -u https://example.com -w wordlist.txt -x php,html,txt,bak
Only show some status codesgobuster dir -u https://example.com -w wordlist.txt -s 200,204,301,302 -b ""
Hide status codes (default hides 404)gobuster dir -u https://example.com -w wordlist.txt -b 404,403
Hide responses of a given sizegobuster dir -u https://example.com -w wordlist.txt --xl 1234
Self-signed certificate (your lab)gobuster dir -u https://192.168.1.10 -w wordlist.txt -k
Follow redirectsgobuster dir -u https://example.com -w wordlist.txt -r
Add a cookiegobuster dir -u https://example.com -w wordlist.txt -c "session=abc123"
Add a headergobuster dir -u https://example.com -w wordlist.txt -H "Authorization: Bearer TOKEN"
Basic authgobuster dir -u https://example.com -w wordlist.txt -U admin -P 'password'
Look for backups of each file foundgobuster dir -u https://example.com -w wordlist.txt -x php --db
Print full URLsgobuster dir -u https://example.com -w wordlist.txt -e
Slow and politegobuster dir -u https://example.com -w wordlist.txt -t 5 -d 200ms
Through a proxy (for example Burp or ZAP)gobuster dir -u https://example.com -w wordlist.txt --proxy http://127.0.0.1:8080

Notes:

  • -s (show) and -b (hide) work against each other. -b defaults to 404, so to use -s on its own, blank it with -b "". Both accept ranges such as 200,300-399.
  • If the server answers a made-up URL with a status you asked to see (a “soft 404”), gobuster stops at its pre-check. Find the size of that page and hide it with --xl. Use --force to carry on regardless, only if you know why the check failed.
  • From 3.7, lines starting with # in a wordlist are no longer skipped. Some popular lists start with comment lines; they now become (harmless) requests.

Example gobuster dir output from an older 3.6 run

dns mode: subdomains

TaskCommand
Basic subdomain scangobuster dns -do example.com -w subdomains.txt
Faster, 50 threadsgobuster dns -do example.com -w subdomains.txt -t 50
Use a specific resolvergobuster dns -do example.com -w subdomains.txt --resolver 1.1.1.1:53
Resolver over TCPgobuster dns -do example.com -w subdomains.txt --resolver 1.1.1.1:53 --protocol tcp
Also check CNAME recordsgobuster dns -do example.com -w subdomains.txt -c
Carry on when a wildcard record is foundgobuster dns -do example.com -w subdomains.txt --wc

The domain flag is -do (--domain) in 3.7 and later. In 3.6 and older it was -d, which now means --delay. --show-cname was renamed --check-cname. If an old tutorial’s command fails, that is usually why.

If gobuster warns about a wildcard, your domain answers for any name. You can confirm it by looking up a random name such as nothere123.example.com in the DNS Lookup tool.

vhost mode: virtual hosts

TaskCommand
Append the domain to each wordgobuster vhost -u https://example.com -w vhosts.txt --ad
Target an IP, test names under a domaingobuster vhost -u https://203.0.113.10 -do example.com --ad -w vhosts.txt
Hide a response sizegobuster vhost -u https://example.com --ad -w vhosts.txt --xl 4523
Adjust the hidden size for the hostname lengthgobuster vhost -u https://example.com --ad -w vhosts.txt --xl 4523 --xh
Hide status codesgobuster vhost -u https://example.com --ad -w vhosts.txt --xs 400-404

Without --ad (--append-domain), gobuster sends each word as the full host name, so a list of plain words like dev and staging tests Host: dev rather than Host: dev.example.com. Gobuster 3.7 and later warn you when this looks like a mistake.

fuzz mode: anything else

Put the keyword FUZZ where each word should go.

TaskCommand
Fuzz a query parametergobuster fuzz -u "https://example.com/item?id=FUZZ" -w ids.txt
Fuzz a parameter namegobuster fuzz -u "https://example.com/?FUZZ=1" -w params.txt
Fuzz a headergobuster fuzz -u https://example.com -H "X-Custom-Header: FUZZ" -w list.txt
Fuzz a POST bodygobuster fuzz -u https://example.com/login -m POST -B "user=admin&pass=FUZZ" -w list.txt
Hide status codesgobuster fuzz -u "https://example.com/?id=FUZZ" -w ids.txt -b 404,500
Hide a response sizegobuster fuzz -u "https://example.com/?id=FUZZ" -w ids.txt --xl 0

The request body flag is -B (--body). -d is the global delay in current versions, so commands from older guides that pass the body with -d won’t do what you expect.

Wordlists

Kali ships wordlists under /usr/share/wordlists/ (for example dirb/common.txt), and the seclists package adds the SecLists collection under /usr/share/seclists/, including Discovery/Web-Content/ for dir mode and Discovery/DNS/ for dns mode. To build your own list from a set of characters or a pattern, see the Crunch wordlist cheat sheet.

Start small. A short list such as common.txt finishes in seconds and catches most of the obvious mistakes; save the multi-million line lists for when you have a reason.

What’s changed recently

  • 3.8.2 (early January 2026): the current release. 3.8.1 and 3.8.2 fixed expanded mode (-e) printing entries twice and then not showing the full URL.
  • 3.8: added --xh (--exclude-hostname-length) for vhost mode, fixed fuzzing of query parameters, and added --force to dir mode.
  • 3.7: moved to a new CLI library with many more short flags. Breaking changes: the DNS domain is now -do, -d is --delay, --show-cname became --check-cname, -v/--verbose became --debug, and comment lines in wordlists are no longer ignored. It also added --interface and --local-ip, TCP for DNS resolvers, and Host header fuzzing.

Security notes: there are no security advisories for gobuster’s own code. Some distributions (Chainguard and Wolfi, for example) publish rebuilt packages when a Go library it depends on gets a fix, so keep it updated through your package manager like anything else.

Gobuster is one of several tools for this job. dirb is the older, single-threaded option with built-in wordlists. Once you know what is on the server, Nikto checks it for known misconfigurations and outdated software.

Sources

Updated 21 November 2026: rewritten for gobuster 3.8.2 with per-mode command tables, the flag changes from 3.7 (-do, --delay, --debug), current install options, and removed the headers and cert modes, which don’t exist.