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.
sudo apt install dirb
dirb <url> [wordlist]
To use DIRB, run dirb followed by the target URL — for example, dirb http://127.0.0.1:8080. DIRB checks every entry in its default wordlist against the target and reports each path that responds. To use your own wordlist, put its file path right after the URL, and add -X .php,.html to try those extensions on every word.
DIRB is a legacy web content scanner, so the workflow is deliberately simple: check that it runs, confirm you own the target or have written authorization, and pick a lab target. Run a first scan, read the output, and choose one finding to verify. Take the verified result to Nikto or Gobuster for a separate, manual follow-up.
For a first scan on a local practice app, run dirb http://127.0.0.1:8080. A sample excerpt reads: ==> DIRECTORY: http://127.0.0.1:8080/admin/ — DIRB thinks admin is a directory; + http://127.0.0.1:8080/login.php (CODE:200|SIZE:1234) — the login page responded; + http://127.0.0.1:8080/server-status (CODE:403|SIZE:277) — access was denied, which does not prove sensitive content; + http://127.0.0.1:8080/test (CODE:301|SIZE:0) — the path redirects. Read each line as a lead, then verify the interesting ones in your browser.
On Kali, DIRB defaults to common.txt, a list of about 4,600 entries in /usr/share/dirb/wordlists/. Switch to big.txt if the default scan misses routes you expect and you can afford more requests. To use a custom wordlist, pass its file path as the second positional argument, right after the URL. The vulns/ subdirectory holds specialized lists, and SecLists is another source of web-content wordlists.
On macOS, run brew install dirb and look for the wordlists under your Homebrew prefix. There is no native Windows build, so use Kali in a VM or in WSL. There is no official online version of DIRB — run it locally, on a system you own or are authorized to test.
DIRB is a web content scanner that discovers hidden directories, backup files, and sensitive content on web servers by launching dictionary-based attacks against the target URL.
Written in C, DIRB sends HTTP requests for each entry in a wordlist and identifies existing paths based on HTTP response codes. It includes a built-in wordlist for quick scans.
While DIRB is a legacy tool largely replaced by faster alternatives like ffuf and gobuster, it remains useful for beginners due to its simple command-line syntax and minimal configuration requirements.
| Command | Purpose |
|---|---|
dirb http://127.0.0.1:8080/ /usr/share/wordlists/dirb/common.txt | Run basic recursive content discovery. |
dirb http://127.0.0.1:8080/ /usr/share/wordlists/dirb/common.txt -r -z 500 | Disable recursion and wait 500 ms between requests. |
dirb http://127.0.0.1:8080/ /usr/share/wordlists/dirb/common.txt -X .php,.html | Add PHP and HTML extension variants. |
dirb http://127.0.0.1:8080/ /usr/share/wordlists/dirb/common.txt -o dirb.txt | Save findings to text. |
dirb http://192.168.1.1Basic scan - Launch a standard directory discovery scan using the default built-in wordlistdirb http://192.168.1.1 /usr/share/wordlists/dirb/big.txtThorough scan - Use a larger, more comprehensive wordlist for deeper hidden directory discoverydirb http://192.168.1.1 -o results.txtSave results - Export and log the tool's scan output into a text file for documentationdirb http://192.168.1.1 -a "Mozilla/5.0"Custom user agent - Spoof the request header to avoid detection by basic user-agent filtersdirb http://192.168.1.1 -X .php,.html,.txtAppend extensions - Try .php, .html and .txt variants of every word in the listdirb http://192.168.1.1 -c "session=abc123"Cookie - Send a session cookie to scan authenticated areasdirb http://192.168.1.1 -H "Authorization: Bearer TOKEN"Custom header - Add an authorization or custom header to each requestdirb http://192.168.1.1 -p 127.0.0.1:8080Proxy - Route requests through Burp or another HTTP proxydirb http://192.168.1.1 -z 100Throttle - Add a millisecond delay between requests to avoid detectiondirb http://192.168.1.1 -rNon-recursive - Scan only the top level, skipping subdirectoriesdirb https://192.168.1.1 -wWarnings - Continue scanning even when warning conditions occurdirb http://192.168.1.1 -N 403Ignore 403 - Skip forbidden responses so only accessible paths are reporteddirb http://192.168.1.1 -RInteractive recursion - Ask before scanning inside each discovered directorydirb http://192.168.1.1 -SSilent mode - Hide tested words from the output for quieter scansdirb http://192.168.1.1 -iCase-insensitive - Match paths regardless of letter casedirb http://192.168.1.1 -fFine-tune 404 detection - Improve how DIRB recognizes not-found responsesdirb http://192.168.1.1 -M "~,.tmp,.old,.backup"Try variations - When a file is found, try backup and temp variants of itdirb http://192.168.1.1 -x extensions.txtExtensions file - Read the extensions to try from a filedirb http://192.168.1.1 -u user:passwordBasic auth - Supply a username and password for protected areasFind hidden directories and files on small web servers using basic wordlist attacks.
Discover backup files, config files, and sensitive documents left on web servers.
Fast setup and execution for small-scale web application reconnaissance.
Beginner-friendly introduction to web content discovery techniques.
Scan login-protected areas with a session cookie, custom header, or basic auth credentials.
Find backup and config files by appending .bak, .old, .sql, and .zip extensions to every word.
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.
Web Application
This how-to guide shows you how to install DirBuster in Kali Linux and use its normal GUI workflow or headless mode in an authorized lab. DirBuster is a multi-threaded Java application from OWASP that brute forces directory and file names on web servers. Version 1.0-RC1 is still shipped on Kali Linux, but it is discontinued and no longer maintained by OWASP.
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.
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.
Web Application
Wfuzz is a highly flexible web application fuzzer designed to brute force parameters, discover hidden directories, files, and test for various vulnerabilities by injecting payloads into any HTTP request section.
Web Application
Arjun finds hidden HTTP parameters in web applications. It uses a huge default dictionary and smart techniques to discover parameters not visible in the user interface.
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.
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 · BeginnerNikto commands cheat sheet: install Nikto, run your first web server scan, read the results, tune scans and save reports — with a worked example.
In the sample, the ==> DIRECTORY line marks /admin/ as a likely directory, and DIRB looks inside it while recursion is on. CODE:200 on /login.php means the server sent a successful response — not that DIRB confirmed a real login page. CODE:403 on /server-status means access was denied; it does not prove the path contains sensitive content. CODE:301 on /test means a permanent redirect, while CODE:302 would mean a temporary one. SIZE is the response body length in bytes, so an error page can still have a nonzero size. Before counting any 200 as a hit, compare its response with a random missing path in the same part of the app: if both show the same missing-page template, the 200 is likely a soft 404. If the scan finishes normally with no hits, none of the tried names produced a recognized match — try a larger wordlist or extensions that fit the lab app.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.