Dirb Guide: Web Content Scanner
Learn Dirb for web content discovery and directory brute-forcing with wordlist-based scanning, file extension detection, and security assessment.
Why You Need Dirb
You need to find hidden directories and files on a web server that are not linked from the homepage — Dirb brute-forces paths using wordlists. It is one of the oldest and most reliable web content discovery tools, ideal for finding admin panels, backup files, and configuration leaks.
Prerequisites
Installation
sudo apt install dirb
Basic Usage
dirb http://target.com /usr/share/wordlists/dirb/common.txt
Key Options
| Option | Description |
|--------|-------------|
| -w | Don't stop on warnings |
| -r | Recursive scan |
| -z MILLIS | Delay between requests |
| -o FILE | Output file |
| -X EXT | Append extensions |
| -x EXT_FILE | Extensions from file |
| -S | Silent mode |
Practical Examples
dirb http://192.168.1.100 /usr/share/wordlists/dirb/common.txt
dirb http://192.168.1.100 /usr/share/wordlists/dirb/common.txt -X .php,.html,.txt
dirb http://192.168.1.100 /usr/share/wordlists/dirb/common.txt -r
dirb http://192.168.1.100 /usr/share/wordlists/dirb/common.txt -z 500
Real-World Example
dirb http://target.com /usr/share/wordlists/dirb/common.txt -o initial-scan.txt
dirb http://target.com /usr/share/wordlists/dirb/common.txt -X .php,.html -o extension-scan.txt
dirb http://target.com /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt -o deep-scan.txt
Common Mistakes
Using too small a wordlist. Not specifying extensions. Ignoring recursive scans. Scanning without output.
Best Practices
Start small, grow larger. Always specify extensions. Use recursion wisely.
Related Tools
Related Articles
Summary
Dirb is a reliable web content scanner for discovering hidden directories and files.