Skip to content

Gobuster

70 commands

Brute-forces URIs, DNS subdomains, virtual hosts and cloud buckets. Simple, fast and written in Go.

  • content discovery
  • subdomains
  • vhosts

Install Gobuster

sudo apt install gobuster

Directory Enumeration (Basic)1

gobuster dir -u https://example.com -w wordlist.txt

Performs a basic directory brute-force scan against the target URL using a specified wordlist.

Link

Directory Enumeration (Extensions)1

gobuster dir -u https://example.com -w wordlist.txt -x php,html,txt

Searches for specific file extensions in addition to directories.

Directory Enumeration (Extensions File)1

gobuster dir -u https://example.com -w wordlist.txt -X extensions.txt

Reads the list of extensions to search for from a file.

Link

Directory Enumeration (Recursive)1

gobuster dir -u https://example.com -w wordlist.txt -r

Enables recursive mode to scan discovered directories immediately.

Directory Enumeration (No Recursion)1

gobuster dir -u https://example.com -w wordlist.txt --no-recursion

Explicitly disables recursive scanning if it was enabled by default configurations.

Directory Enumeration (Status Codes)1

gobuster dir -u https://example.com -w wordlist.txt -s 200,301,302

Whitelists specific status codes to display, ignoring all others.

Directory Enumeration (Blacklist Status)1

gobuster dir -u https://example.com -w wordlist.txt -b 404,403

Blacklists specific status codes to hide them from the output.

Directory Enumeration (Skip SSL)1

gobuster dir -u https://example.com -w wordlist.txt -k

Skips TLS/SSL certificate verification, useful for self-signed certificates.

Directory Enumeration (Expanded)1

gobuster dir -u https://example.com -w wordlist.txt -e

Prints the full URL for each result instead of just the path.

Directory Enumeration (No Status)1

gobuster dir -u https://example.com -w wordlist.txt -n

Hides the status code from the printed output.

Link

Directory Enumeration (Performance)1

gobuster dir -u https://example.com -w wordlist.txt -t 50

Sets the number of concurrent threads to 50 for faster scanning.

Link

Directory Enumeration (Slow Scan)1

gobuster dir -u https://example.com -w wordlist.txt --delay 1000ms

Adds a delay of 1000ms between requests to avoid rate limiting.

Link

Directory Enumeration (Timeout)1

gobuster dir -u https://example.com -w wordlist.txt --timeout 10s

Sets the HTTP request timeout to 10 seconds.

Link

Directory Enumeration (User Agent)1

gobuster dir -u https://example.com -w wordlist.txt -a "Mozilla/5.0"

Sets a custom User-Agent string to bypass filters or simulate a browser.

Link

Directory Enumeration (Headers)1

gobuster dir -u https://example.com -w wordlist.txt -H "Authorization: Bearer token"

Adds custom HTTP headers to every request.

Link

Directory Enumeration (Cookies)1

gobuster dir -u https://example.com -w wordlist.txt -c "sessionid=12345"

Sets the cookie string to use for authenticated scanning.

Link

Directory Enumeration (Basic Auth)1

gobuster dir -u https://example.com -w wordlist.txt -U username -P password

Uses HTTP Basic Authentication with the provided credentials.

Link

Directory Enumeration (Proxy)1

gobuster dir -u https://example.com -w wordlist.txt --proxy http://127.0.0.1:8080

Routes all traffic through a specified proxy, such as Burp Suite.

Link

Directory Enumeration (Output File)1

gobuster dir -u https://example.com -w wordlist.txt -o result.txt

Saves the scan output to a file.

Link

Directory Enumeration (Quiet Mode)1

gobuster dir -u https://example.com -w wordlist.txt -q

Enables quiet mode, printing only the positive results and suppressing banner/errors.

Link

Directory Enumeration (Verbose)1

gobuster dir -u https://example.com -w wordlist.txt -v

Enables verbose output for detailed logging.

Link

Directory Enumeration (Hide Length)1

gobuster dir -u https://example.com -w wordlist.txt --hide-length

Hides the length of the response body in the output.

Link

Directory Enumeration (Exclude Length)1

gobuster dir -u https://example.com -w wordlist.txt --exclude-length 1234

Excludes results that match a specific response content length.

Link

Directory Enumeration (Follow Redirects)1

gobuster dir -u https://example.com -w wordlist.txt -r

Follows HTTP redirects to determine the final destination.

Link

Directory Enumeration (Method)1

gobuster dir -u https://example.com -w wordlist.txt --method POST

Uses a different HTTP method (e.g., POST) instead of the default GET.

Link

Directory Enumeration (Regex Filter)1

gobuster dir -u https://example.com -w wordlist.txt --exclude-content-pattern "Error"

Excludes results where the response body matches the given regex pattern.

Link

Directory Enumeration (Pattern File)1

gobuster dir -u https://example.com -w wordlist.txt -p patterns.txt

Uses a pattern file to apply replacements to the wordlist (e.g., {GOBUSTER}).

Link

Directory Enumeration (Client Cert)1

gobuster dir -u https://example.com -w wordlist.txt --client-cert-p12 cert.p12 --client-cert-p12-password pass

Uses a P12 client certificate for mutual TLS (mTLS) authentication.

Link

Directory Enumeration (Retry)1

gobuster dir -u https://example.com -w wordlist.txt --retry

Retries requests on timeout or error.

Link

Directory Enumeration (Retry Attempts)1

gobuster dir -u https://example.com -w wordlist.txt --retry-attempts 3

Specifies the number of times to retry a failed request.

Link

DNS Enumeration (Basic)1

gobuster dns -d example.com -w subdomains.txt

Enumerates subdomains for the target domain using a wordlist.

Link

DNS Enumeration (Show IP)1

gobuster dns -d example.com -w subdomains.txt -i

Displays the resolved IP address for each discovered subdomain.

Link

DNS Enumeration (Wildcard)1

gobuster dns -d example.com -w subdomains.txt --wildcard

Forces scanning even if a wildcard DNS record is detected.

Link

DNS Enumeration (Custom Server)1

gobuster dns -d example.com -w subdomains.txt -r 8.8.8.8

Uses a specific DNS server for resolution instead of the system default.

Link

DNS Enumeration (CNAME)1

gobuster dns -d example.com -w subdomains.txt --show-cname

Displays CNAME records for discovered subdomains.

Link

DNS Enumeration (Timeout)1

gobuster dns -d example.com -w subdomains.txt --timeout 2s

Sets the DNS query timeout to 2 seconds.

Link

DNS Enumeration (Threads)1

gobuster dns -d example.com -w subdomains.txt -t 100

Increases DNS enumeration threads to 100 for high-speed scanning.

Link

VHost Enumeration (Basic)1

gobuster vhost -u https://example.com -w vhosts.txt

Enumerates virtual hosts by brute-forcing the Host header.

Link

VHost Enumeration (Append Domain)1

gobuster vhost -u https://example.com -w subdomains.txt --append-domain

Appends the base domain to each word in the wordlist (e.g., word.example.com).

Link

VHost Enumeration (Exclude Length)1

gobuster vhost -u https://example.com -w vhosts.txt --exclude-length 300

Excludes virtual host results that match a specific response size.

Link

VHost Enumeration (Method)1

gobuster vhost -u https://example.com -w vhosts.txt -m HEAD

Uses the HEAD method for virtual host enumeration to reduce traffic.

Link

VHost Enumeration (Proxy)1

gobuster vhost -u https://example.com -w vhosts.txt --proxy http://127.0.0.1:8080

Routes virtual host enumeration traffic through a proxy.

Link

Fuzzing Mode (Basic)1

gobuster fuzz -u https://example.com/FUZZ -w wordlist.txt

Fuzzes the URL by replacing the FUZZ keyword with words from the wordlist.

Link

Fuzzing Mode (Query Param)1

gobuster fuzz -u https://example.com?id=FUZZ -w numbers.txt

Fuzzes a specific query parameter in the URL.

Link

Fuzzing Mode (Exclude Length)1

gobuster fuzz -u https://example.com/FUZZ -w wordlist.txt --exclude-length 0

Hides fuzzing results that return an empty response body.

Link

Fuzzing Mode (Headers)1

gobuster fuzz -u https://example.com -H "User-Agent: FUZZ" -w user_agents.txt

Fuzzes HTTP headers by placing the FUZZ keyword in the header value.

Link

Fuzzing Mode (Post Body)1

gobuster fuzz -u https://example.com -d "data=FUZZ" -w wordlist.txt -m POST

Fuzzes the POST data body using the FUZZ keyword.

Link

Fuzzing Mode (Basic Auth)1

gobuster fuzz -u https://example.com -w wordlist.txt -U admin -P FUZZ

Brute-forces the Basic Auth password field using the FUZZ keyword.

Link

S3 Enumeration (Basic)1

gobuster s3 -w buckets.txt

Enumerates AWS S3 buckets using a specified wordlist.

Link

S3 Enumeration (Max Files)1

gobuster s3 -w buckets.txt --max-files 5

Limits the number of files listed from each discovered bucket to 5.

Link

S3 Enumeration (User Agent)1

gobuster s3 -w buckets.txt -a "CustomAgent"

Sets a custom User-Agent for S3 enumeration requests.

Link

S3 Enumeration (Proxy)1

gobuster s3 -w buckets.txt --proxy http://127.0.0.1:8080

Routes S3 enumeration traffic through a proxy.

Link

GCS Enumeration (Basic)1

gobuster gcs -w buckets.txt

Enumerates Google Cloud Storage (GCS) buckets using a wordlist.

Link

GCS Enumeration (Max Files)1

gobuster gcs -w buckets.txt --max-files 10

Limits listing of files in GCS buckets to the first 10.

Link

TFTP Enumeration (Basic)1

gobuster tftp -s tftp.example.com -w files.txt

Brute-forces filenames on a TFTP server.

Link

Global (Quiet & No Color)1

gobuster dir -u https://example.com -w wordlist.txt -q --no-color

Runs a clean, uncolored scan suitable for parsing in scripts.

Link

Global (Debug)1

gobuster dir -u https://example.com -w wordlist.txt --debug

Runs gobuster in debug mode to troubleshoot errors.

Link

Advanced (Combined Auth & Proxy)1

gobuster dir -u https://example.com -w wordlist.txt -U user -P pass --proxy http://127.0.0.1:8080 -k

Combines Basic Auth, Proxy, and SSL skipping for a complex target environment.

Link

Advanced (Precise Status Filtering)1

gobuster dir -u https://example.com -w wordlist.txt -s 200 -b 404 --exclude-length 0

Highly filtered scan allowing only status 200 and removing empty responses.

Link

Advanced (API Fuzzing JSON)1

gobuster fuzz -u https://api.example.com/v1/user -m POST -H "Content-Type: application/json" -d '{"id": "FUZZ"}' -w ids.txt

Fuzzes a JSON POST body field, essential for API penetration testing.

Link

Advanced (Recursive Extensions)1

gobuster dir -u https://example.com -w wordlist.txt -x php,txt -r --timeout 5s

Recursively scans for directories and specific file extensions with a short timeout.

Link

Advanced (Pattern Based)1

gobuster dir -u https://example.com -w wordlist.txt -p patterns.txt -t 60

Uses a pattern file to mutate the wordlist for smarter enumeration.

Link

Advanced (Redirect Analysis)1

gobuster dir -u https://example.com -w wordlist.txt -r -s 301,302,307 -e

Focuses on identifying and following redirects, showing full URLs.

Link

Advanced (DNS High Volume)1

gobuster dns -d example.com -w massive_subs.txt -t 100 --timeout 1s --no-error

Optimized high-speed DNS scan that suppresses error messages.

Link

Advanced (Fuzzing Auth Headers)1

gobuster fuzz -u https://api.example.com -H "Authorization: Bearer FUZZ" -w tokens.txt -b 401

Fuzzes the Bearer token header and hides 'Unauthorized' responses to find valid tokens.

Link

Advanced (Dir with Cookies & UserAgent)1

gobuster dir -u https://internal.example.com -w common.txt -c "PHPSESSID=xyz" -a "AdminBrowser" -k

Simulates an authenticated internal browser session ignoring SSL errors.

Link

Advanced (S3 Max Listing)1

gobuster s3 -w buckets.txt --max-files 50 --no-color -v

Verbose S3 enumeration listing up to 50 files per bucket without color codes.

Link

Advanced (GCS with Timeout)1

gobuster gcs -w buckets.txt --timeout 5s -t 20

GCS bucket enumeration with adjusted timeout and concurrency.

Link

Advanced (Full Recon Pipeline)1

gobuster dir -u https://target.com -w wordlist.txt -x php,html,js,json -r -k -t 50 -o full_scan.txt

A comprehensive 'all-in-one' style command for initial web reconnaissance.

Link