GO KALI FREE

Gobuster

Web Application

Intermediatemedium risk

Learn how to use Gobuster, the fast Go-based directory and subdomain brute-forcer, with install steps, your first dir scan, wordlist picks, and result filtering — a beginner tutorial for Kali Linux.

Authorized request context and tool-specific inputs produce HTTP requests and responses; status, size, body and timing differences need reproducible validation.
HTTP testing turns responses into evidenceConceptual assessment, not exact tool internals. FUZZ is a FFUF substitution convention, not a vulnerability indicator; SQLMap probes can have side effects.Original conceptual diagram. On narrow screens, scroll the figure to read the labels.

Installation

sudo apt update && sudo apt install gobuster -y

Basic Syntax

gobuster [command] [flags]

Quick Facts

Full Name
Gobuster
License
MIT License
Written In
Go
Platforms
Linux, Windows, macOS
Category
Directory Brute Force
Modes
dir, dns, vhost
First Release
2012
Author
OJ Reeves

Tool Overview

To use Gobuster, install it with sudo apt install gobuster (it is pre-installed on Kali Linux), pick a wordlist, then run gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txt. Gobuster tests every wordlist entry against the target and reports the paths that exist, with their HTTP status codes. Use dir mode for directories and files, dns mode for subdomains, and vhost mode for virtual hosts.

Learning how to use Gobuster follows one loop: install it and verify it with gobuster version, choose a wordlist, run your first dir scan against a target you own or have written permission to test, read the status codes, filter out the noise, and follow up on what you find. Directories you discover become the next targets: scan them with Nikto, test forms and parameters with SQLMap, and use dns mode to map subdomains of the same domain. Every scan starts with permission — brute-forcing a site you do not own is illegal in most places, and Gobuster is loud: every request is logged by the target.

A first scan on a lab target looks like this. With a local test app running at http://127.0.0.1:8080 and the small dirb wordlist, the command is gobuster dir -u http://127.0.0.1:8080 -w /usr/share/wordlists/dirb/common.txt. The output lists /admin (Status: 301) [Size: 178] [--> http://127.0.0.1:8080/admin/], which is a redirect to a real admin directory worth visiting; /login.php (Status: 200) [Size: 3421], a real page you can open; and /robots.txt (Status: 200) [Size: 123], a real file that often lists more paths. A 200 means the path exists, a 301 or 302 is a redirect to a path that usually exists, and a 403 means the path exists but access is denied — all three are findings, while a 404 means nothing is there. If every entry returns 200, the server is answering everything and the results are false positives: blacklist the size with --exclude-length or rerun with --wildcard to confirm.

Gobuster is pre-installed on Kali Linux — run gobuster version to check (3.x is the current line). On Debian or Ubuntu install it with sudo apt install gobuster, on macOS with brew install gobuster, and on Windows with the Go route go install github.com/OJ/gobuster/v3@latest (Go 1.24 or newer). The wordlist is the real engine: start with /usr/share/wordlists/dirb/common.txt for a quick scan, move to dirbuster/directory-list-2.3-medium.txt or SecLists Discovery/Web-Content/common.txt for a thorough one, and use SecLists Discovery/DNS/subdomains-top1million-5000.txt for dns mode. Install the SecLists collection with sudo apt install seclists if it is missing.

Gobuster is a fast, multi-threaded directory and file brute-forcing tool written in Go. It discovers hidden directories, files, DNS subdomains, and virtual hosts on web servers by sending requests based on wordlists.

Created by OJ Reeves, Gobuster supports three distinct modes: directory brute force (dir), DNS subdomain enumeration (dns), and virtual host discovery (vhost). Each mode targets a different aspect of web application reconnaissance.

Its simplicity and speed make it a favorite among penetration testers. Unlike more complex fuzzers, Gobuster requires minimal configuration while still providing reliable results for content discovery tasks.

Quick Reference Commands

Verified quick-reference commands for Gobuster
CommandPurpose
gobuster dir -u <url> -w <wordlist>Enumerate web paths.Directory enumeration can generate substantial traffic.
gobuster dir -u <url> -w <wordlist> -x php,html,txtEnumerate paths with specified extensions.
gobuster dns -do <domain> -w <wordlist>Enumerate DNS subdomain candidates.
gobuster vhost -u <url> --append-domain -w <wordlist>Enumerate virtual hosts from bare wordlist entries.
gobuster fuzz -u "<url>?FUZZ=test" -w <wordlist>Fuzz a custom query location.
Gobuster

Common Commands

gobuster dir -u <URL> -w <wordlist>Directory brute force
gobuster dns -d <domain> -w <wordlist>DNS subdomain enumeration
gobuster vhost -u <URL> -w <wordlist>Virtual host enumeration
gobuster dir -u <URL> -w <wordlist> -x php,html,txtSearch for specific file extensions
gobuster dir -u <URL> -w <wordlist> -s 200,204,301,302,307Match only chosen HTTP status codes
gobuster dir -u <URL> -w <wordlist> -b 404,403Blacklist status codes to reduce output noise
gobuster dir -u <URL> -w <wordlist> -c "session=abc123"Send a cookie to scan authenticated areas
gobuster dir -u <URL> -w <wordlist> -k -t 50Skip TLS validation and run with 50 threads
gobuster dir -u <URL> -w <wordlist> -o results.txtWrite discovered paths to an output file
gobuster s3 -w bucket-names.txtEnumerate public AWS S3 buckets by name
gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txtDirectory brute-force
gobuster dns -d example.com -w /usr/share/wordlists/subdomains.txtDNS subdomain brute-force
gobuster vhost -u http://example.com -w vhosts.txtVirtual host brute-force
gobuster dir -u http://example.com -w wordlist.txt -x php,html,txtWith file extensions
gobuster dir -u http://example.com -w wordlist.txt -t 5050 threads
gobuster dir -u http://example.com -w wordlist.txt -b 404,403Exclude status codes
gobuster dir -u http://example.com -w wordlist.txt --proxy http://127.0.0.1:8080Through proxy
gobuster dir -u http://example.com -w wordlist.txt -rFollow redirects
gobuster dir -u http://example.com -w wordlist.txt --wildcardForce on wildcard
gobuster dir -u http://example.com -w wordlist.txt -kSkip TLS verification
gobuster dir -u http://example.com -w wordlist.txt --no-errorSuppress errors
gobuster dns -d example.com -w wordlist.txt -c --timeout 10sDNS with timeout
gobuster dir -u http://example.com -w wordlist.txt -o results.txtSave to file
gobuster dir -u http://example.com -w wordlist.txt -s 200,301,302,403Filter status codes
gobuster dir -u http://example.com -w wordlist.txt -p prefix_Add prefix
gobuster dir -u http://example.com -w wordlist.txt --delay 100msSlow requests to avoid crashing small servers
gobuster dir -u http://example.com -w wordlist.txt --exclude-length 1234Ignore responses of a fixed size (false positives)
gobuster vhost -u http://example.com -w vhosts.txt --append-domainAppend domain to each vhost entry
gobuster dir -u http://example.com -w wordlist.txt -eShow full URLs instead of relative paths
gobuster dir -u http://example.com -w wordlist.txt -nHide status lines for cleaner output

Step-by-Step Guide

  1. 1Verify Gobuster is installed with gobuster version (pre-installed on Kali Linux; otherwise sudo apt install gobuster)
  2. 2Confirm you have written permission for the target — use your own lab site, DVWA, or a Hack The Box machine
  3. 3Pick a wordlist: /usr/share/wordlists/dirb/common.txt for a first scan, SecLists common.txt or big.txt for a thorough one
  4. 4Run your first dir scan: gobuster dir -u http://127.0.0.1:8080 -w /usr/share/wordlists/dirb/common.txt
  5. 5Read the output: 200 means the path exists, 301/302 is a redirect to a real path, 403 means it exists but is denied
  6. 6Filter the noise: add -b 404,403 to hide uninteresting codes, -s 200,301 to show only hits, or --exclude-length 1234 to drop a repeated false-positive size
  7. 7Hunt file types with extensions: gobuster dir -u http://127.0.0.1:8080 -w wordlist.txt -x php,txt,bak
  8. 8Tune speed safely: -t 20 for faster scans, --delay 100ms to slow down and avoid crashing small servers or tripping a WAF
  9. 9Expand the map: gobuster dns -d example.com -w subdomains-top1million-5000.txt for subdomains, then gobuster vhost -u http://example.com -w vhosts.txt for virtual hosts
  10. 10Save results with -o gobuster-dir.txt, visit each finding by hand, then hand the live paths to Nikto and the parameters to ffuf or SQLMap

Warnings

Use Cases

Directory Discovery

Find hidden directories and files on web servers using wordlist-based brute forcing.

DNS Subdomain Enumeration

Discover subdomains of a target domain using DNS resolution checks.

Virtual Host Discovery

Find virtual hosts hosted on a single IP by manipulating the Host header.

File Extension Scanning

Search for specific file types like .php, .html, or .txt on web servers.

Penetration Testing Recon

Map web application attack surfaces during authorized security assessments.

Bug Bounty Recon

Discover hidden endpoints and admin panels in bug bounty programs.

Hidden Admin Panel Discovery

Find /admin, /login and backup paths that are not linked from a site's navigation during an authorized assessment.

Cloud Bucket Enumeration

Check whether public S3 or GCS bucket names exist for a target organization using the s3 and gcs modes.

Key Features

People Also Ask

How do I use Gobuster in Kali Linux?

Run 'gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txt' for directory brute forcing. For DNS enumeration: 'gobuster dns -d example.com -w /usr/share/wordlists/seclists/Discovery/DNS/subdomains-top1million-5000.txt'. Gobuster is pre-installed on Kali Linux.

What are the different Gobuster modes?

Gobuster supports three modes: 'dir' for directory and file brute forcing, 'dns' for subdomain enumeration via DNS, and 'vhost' for virtual host discovery. Each mode uses different wordlist types and serves a distinct purpose in web application reconnaissance.

Where are wordlists located for Gobuster on Kali?

Default wordlists are in '/usr/share/wordlists/'. For directory brute forcing use 'dirb/common.txt' or 'dirbuster/directory-list-2.3-medium.txt'. For DNS enumeration use 'seclists/Discovery/DNS/subdomains-top1million-5000.txt'. These are included with most Kali installations.

Gobuster vs FFUF vs DIRB — which should I use?

Gobuster is fastest for quick directory discovery and simple DNS enumeration. FFUF offers more advanced fuzzing with parameter injection and filtering. DIRB is simplest but slower. Use Gobuster for speed, FFUF for precision, and DIRB for basic scans.

How do I install Gobuster on Linux?

On Kali Linux, Gobuster is pre-installed. On Ubuntu/Debian: 'sudo apt install gobuster'. From source: 'go install github.com/OJ/gobuster/v3@latest' (requires Go 1.18+). Docker: 'docker run ghcr.io/oj/gobuster:latest'.

How do I use Gobuster for vhost discovery?

Run 'gobuster vhost -u http://example.com -w /usr/share/wordlists/dirb/common.txt'. This sends Host headers with each wordlist entry and identifies virtual hosts by analyzing response differences. Useful for finding hidden admin panels on shared hosting.

Related Tools

DIRB

Web Application

DIRB is a web content scanner that finds hidden directories, backup files, and other sensitive content on web servers by launching dictionary-based attacks against a target URL. This beginner tutorial shows how to use DIRB in Kali Linux: install it, run your first scan, read the output, switch wordlists, and hand verified findings to the next tool.

FFUF

Web Application

Learn how to use FFUF (Fuzz Faster U Fool), the extremely fast open-source web fuzzer written in Go: place the FUZZ keyword where a wordlist entry should go, run your first scan, filter the noise, and discover hidden directories, files, parameters, virtual hosts and API endpoints on targets you have permission to test.

Nikto

Vulnerability Analysis

Learn how to use Nikto, an open-source web server scanner written in Perl and pre-installed on Kali Linux, to audit servers you own or have written permission to test. Its 6700+ checks for potentially dangerous files and programs, plus tests for outdated software and misconfigurations, highlight issues that need verification.

SQLMap

Web Application

SQLMap is an open-source penetration testing tool that automates SQL injection detection and exploitation. It supports six SQL injection techniques (boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries, and out-of-band) and over 30 database backends including MySQL, Oracle, PostgreSQL, Microsoft SQL Server, and many more.

Nuclei

Vulnerability Analysis

Nuclei is used to send requests across targets based on templates, allowing zero false positives and providing rapid scanning over large infrastructure footprints.

Feroxbuster

Web Application

Feroxbuster is a fast, recursive content discovery tool written in Rust. It is designed to perform forced browsing to find hidden directories and files on web servers using high-performance parallel execution.

Related Cybersecurity Guides

Tools · Beginner

How to Use Gobuster: Beginner's Guide to Directory, DNS & VHost Enumeration in Kali Linux

Learn how to use Gobuster in Kali Linux — dir, DNS and vhost modes, wordlists, and a worked DVWA example, with a cheat sheet and troubleshooting.

OSINT · Intermediate

Reconnaissance Workflow: Complete Information Gathering Process

Learn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.

OSINT · Intermediate

Subdomain Enumeration: Finding Hidden Attack Surface

Master subdomain enumeration techniques using passive and active methods to discover hidden subdomains and expand attack surface mapping.

Tools · Beginner

How to Use Dirb: Beginner's Guide to Directory Brute-Forcing in Kali Linux

Learn how to use Dirb in Kali Linux: run your first directory scan, pick the right wordlist, and read the results — with a worked example and cheat sheet.

Frequently Asked Questions

What is Gobuster used for?

Gobuster is a directory and file brute-forcing tool used to discover hidden paths on web servers. It supports three modes: directory brute force, DNS subdomain enumeration, and virtual host discovery.

How does Gobuster work?

Gobuster sends HTTP requests for each entry in a wordlist to the target URL. Based on HTTP response codes (200, 301, 403), it identifies existing paths, directories, and files that are not publicly linked.

What is the difference between Gobuster and ffuf?

Gobuster is simpler with dedicated dir, dns, and vhost modes. ffuf offers more advanced filtering, regex support, and faster performance but has a steeper learning curve.

Can Gobuster bypass WAFs?

Gobuster has basic options for rate limiting and user-agent spoofing, but it is not designed for advanced WAF evasion. For WAF bypass scenarios, tools like ffuf or wfuzz with custom payloads are more suitable.

What wordlist should I use with Gobuster?

For directory mode, use SecLists' common.txt or big.txt. For DNS mode, use subdomains-top1million-5000.txt. For vhost mode, use vhosts-top1mil-5000.txt. Always start with smaller lists and escalate to larger ones for thorough discovery.

How do I filter false positives in Gobuster?

Use the -b flag to exclude HTTP status codes (e.g., -b 404,403). Add -l to include response length in output for manual filtering. The -x flag can filter by file extension to reduce noise from irrelevant paths.

Can Gobuster enumerate DNS subdomains?

Yes, use gobuster dns -d target.com -w wordlist.txt to discover subdomains. The DNS mode queries for each subdomain in the wordlist and returns those that resolve. Combine with -r for custom DNS resolver configuration.

How does Gobuster compare to ffuf and wfuzz?

Gobuster is faster for simple directory discovery and has built-in DNS/vhost modes. ffuf offers advanced filtering and fuzzing capabilities. wfuzz provides more payload manipulation options. Gobuster is best for quick scans; ffuf/wfuzz for complex scenarios.

What HTTP status codes indicate a valid discovery?

200 (OK) indicates the path exists. 301/302 (redirects) may indicate valid directories. 403 (Forbidden) often means the path exists but access is restricted. Use -b to exclude irrelevant codes and focus on meaningful results.

How do I use Gobuster in a CI/CD pipeline?

Use Gobuster with a curated wordlist in automated security checks. Set appropriate timeouts with -t and use exit codes to determine if new paths are discovered. Integrate with Jenkins or GitHub Actions for automated security regression testing.

How do I increase Gobuster speed?

Use -t to increase thread count (default is 10): gobuster dir -u http://target.com -w wordlist.txt -t 50. Higher threads increase speed but may overwhelm target servers or trigger WAFs. Start moderate and increase gradually.

Can Gobuster enumerate virtual hosts on a single IP?

Yes, use gobuster vhost mode: gobuster vhost -u http://192.168.1.1 -w wordlist.txt. This sends Host headers with each wordlist entry to discover additional virtual hosts hosted on the same IP address.

How do I use Gobuster with custom cookies?

Use the --cookie flag to pass session cookies: gobuster dir -u http://target.com -w wordlist.txt --cookie "session=abc123". This allows scanning behind authentication by maintaining a valid session.

Can Gobuster scan over HTTPS?

Yes, simply use https:// in the target URL: gobuster dir -u https://target.com -w wordlist.txt. Use --no-tls-validation to skip SSL certificate verification for self-signed or expired certificates.

How do I use Gobuster with extensions?

Use -x to specify file extensions: gobuster dir -u http://target.com -w wordlist.txt -x php,html,txt. This appends each extension to wordlist entries, testing for example.php, example.html, etc.

How do I set the User-Agent in Gobuster?

Use --user-agent or -a to set a custom User-Agent string: gobuster dir -u http://target.com -w wordlist.txt -a 'Mozilla/5.0'. Some WAFs block requests with default Gobuster or Go user-agent strings.

Can Gobuster follow redirects?

Yes, use the -r flag to follow redirects from the target server. Without -r, Gobuster reports 301/302 responses without following them. Use -r when redirects point to the actual content you want to discover.

How do I use Gobuster with multiple wordlists?

Gobuster accepts a single wordlist per scan. To use multiple wordlists, run separate scans or concatenate them: cat list1.txt list2.txt | sort -u > combined.txt, then use combined.txt as the wordlist.

What is the best wordlist for Gobuster directory mode?

For directory mode, use SecLists common.txt for quick scans, big.txt for thorough discovery, or raft-large-directories.txt for comprehensive coverage. Start with smaller lists and escalate based on results.

How do I use Gobuster in Kali Linux?

Gobuster is pre-installed on Kali Linux — run gobuster version to confirm, then start with gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txt against a target you own or have written permission to test. For DNS enumeration use gobuster dns -d example.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt. If Gobuster is missing, install it with sudo apt update && sudo apt install gobuster -y.

How do I use Gobuster to find hidden directories?

Run gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt. Gobuster tries every wordlist entry as a path and reports the ones that exist, with their status codes: 200 means the path is real, 301/302 means it redirects to a real path, and 403 means it exists but is restricted. Add -x php,txt,bak to hunt for files, -b 404 to hide misses, and -o results.txt to save the findings for manual review.

How do I use Gobuster for subdomain enumeration?

Use dns mode: gobuster dns -d example.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt. Gobuster queries DNS for each wordlist entry and lists the subdomains that resolve. Add -r 8.8.8.8 to use a custom resolver, -i to show the resolved IP addresses, and --wildcard to handle wildcard DNS records that would otherwise report every entry as found.

How do I update Gobuster?

On Kali or Debian, run sudo apt update && sudo apt upgrade gobuster — the repository build may lag behind the latest release on GitHub. For the newest release, install from source with go install github.com/OJ/gobuster/v3@latest (needs Go 1.24 or newer), then confirm the version with gobuster version.

What does Gobuster vhost do?

Vhost mode discovers virtual hosts on a single IP address: it sends requests with the Host header set to each wordlist entry and flags the ones that return a different response. Run gobuster vhost -u http://192.168.1.1 -w vhosts.txt (use the IP address as the URL so every request goes to the same server). This finds extra sites on shared hosting — staging panels, admin portals, and internal apps that share one IP. Use --append-domain to append the domain to each entry, and --exclude-length to drop the default response size.

Tags

#web-application#directory-brute-force#reconnaissance

Output Explanation

Gobuster prints a header block first: the target URL, the method (GET), the thread count, the wordlist path, the negative status codes it hides (404 by default), the user agent, and the timeout. Each finding is one line: the path, its HTTP status code, and its response size in bytes — /admin (Status: 301) [Size: 178] [--> http://127.0.0.1:8080/admin/] means the admin directory exists and redirects to the same path with a trailing slash, while /login.php (Status: 200) [Size: 3421] is a real page of 3,421 bytes. Read sizes as well as codes: several findings with the same size are usually the same error page in disguise. A 403 is still a finding — the path exists, only access is denied — so check it by hand before discarding it. If every wordlist entry returns 200, the server answers everything and the scan is useless until you filter: use --exclude-length with the repeated size, or --wildcard to let Gobuster detect the wildcard response and skip it.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.