Web Application
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.
sudo apt update && sudo apt install gobuster -y
gobuster [command] [flags]
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.
| Command | Purpose |
|---|---|
gobuster dir -u <url> -w <wordlist> | Enumerate web paths.Directory enumeration can generate substantial traffic. |
gobuster dir -u <url> -w <wordlist> -x php,html,txt | Enumerate 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 dir -u <URL> -w <wordlist>Directory brute forcegobuster dns -d <domain> -w <wordlist>DNS subdomain enumerationgobuster vhost -u <URL> -w <wordlist>Virtual host enumerationgobuster dir -u <URL> -w <wordlist> -x php,html,txtSearch for specific file extensionsgobuster dir -u <URL> -w <wordlist> -s 200,204,301,302,307Match only chosen HTTP status codesgobuster dir -u <URL> -w <wordlist> -b 404,403Blacklist status codes to reduce output noisegobuster dir -u <URL> -w <wordlist> -c "session=abc123"Send a cookie to scan authenticated areasgobuster dir -u <URL> -w <wordlist> -k -t 50Skip TLS validation and run with 50 threadsgobuster dir -u <URL> -w <wordlist> -o results.txtWrite discovered paths to an output filegobuster s3 -w bucket-names.txtEnumerate public AWS S3 buckets by namegobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txtDirectory brute-forcegobuster dns -d example.com -w /usr/share/wordlists/subdomains.txtDNS subdomain brute-forcegobuster vhost -u http://example.com -w vhosts.txtVirtual host brute-forcegobuster dir -u http://example.com -w wordlist.txt -x php,html,txtWith file extensionsgobuster dir -u http://example.com -w wordlist.txt -t 5050 threadsgobuster dir -u http://example.com -w wordlist.txt -b 404,403Exclude status codesgobuster dir -u http://example.com -w wordlist.txt --proxy http://127.0.0.1:8080Through proxygobuster dir -u http://example.com -w wordlist.txt -rFollow redirectsgobuster dir -u http://example.com -w wordlist.txt --wildcardForce on wildcardgobuster dir -u http://example.com -w wordlist.txt -kSkip TLS verificationgobuster dir -u http://example.com -w wordlist.txt --no-errorSuppress errorsgobuster dns -d example.com -w wordlist.txt -c --timeout 10sDNS with timeoutgobuster dir -u http://example.com -w wordlist.txt -o results.txtSave to filegobuster dir -u http://example.com -w wordlist.txt -s 200,301,302,403Filter status codesgobuster dir -u http://example.com -w wordlist.txt -p prefix_Add prefixgobuster dir -u http://example.com -w wordlist.txt --delay 100msSlow requests to avoid crashing small serversgobuster 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 entrygobuster dir -u http://example.com -w wordlist.txt -eShow full URLs instead of relative pathsgobuster dir -u http://example.com -w wordlist.txt -nHide status lines for cleaner outputFind hidden directories and files on web servers using wordlist-based brute forcing.
Discover subdomains of a target domain using DNS resolution checks.
Find virtual hosts hosted on a single IP by manipulating the Host header.
Search for specific file types like .php, .html, or .txt on web servers.
Map web application attack surfaces during authorized security assessments.
Discover hidden endpoints and admin panels in bug bounty programs.
Find /admin, /login and backup paths that are not linked from a site's navigation during an authorized assessment.
Check whether public S3 or GCS bucket names exist for a target organization using the s3 and gcs modes.
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.
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.
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 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.
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'.
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.
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.
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.
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.
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.
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.
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.
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 · IntermediateLearn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.
OSINT · IntermediateMaster subdomain enumeration techniques using passive and active methods to discover hidden subdomains and expand attack surface mapping.
Tools · BeginnerLearn 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.
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.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.