gobuster
Fast directory/file, DNS, and vhost brute-forcer written in Go.
Install:
go install github.com/OJ/gobuster/v3@latestDirectory Mode (dir)
# Basic directory scan
gobuster dir -u http://TARGET -w /usr/share/seclists/Discovery/Web-Content/common.txt
# With extensions
gobuster dir -u http://TARGET -w wordlist.txt -x php,html,txt,bak
# More threads
gobuster dir -u http://TARGET -w wordlist.txt -t 50Filtering
# Exclude status codes (blacklist)
gobuster dir -u http://TARGET -w wordlist.txt -b 302,404
# Include only specific codes
gobuster dir -u http://TARGET -w wordlist.txt -s 200,301
# Exclude response size
gobuster dir -u http://TARGET -w wordlist.txt --exclude-length 0,404Wildcard / dynamic 301 responses
When the server returns the same status (e.g. 301) for every path (wildcard), gobuster may prompt to exclude a status or length. Use a status-code whitelist so only interesting codes are reported:
Options
Flag
Description
-x
File extensions to search
-t
Number of threads (default 10)
-s
Include only these status codes
-b
Exclude these status codes
--exclude-length
Exclude responses by size
-k
Skip TLS certificate verification (use with -u https://)
-a
Custom User-Agent
-c
Cookies to use
-H
Custom headers
-o
Output file
-r
Follow redirects
-n
Don't print status codes
VHost Mode (vhost)
Important: Use --append-domain to append the base domain to each word.
DNS Mode (dns)
Subdomain enumeration via DNS resolution:
Authentication
Common Wordlists
Quick Reference
Last updated