Web Application
DIRB is a web content scanner that looks for existing web objects by launching a dictionary-based attack against a web server. It finds hidden directories, backup files, and other sensitive content.
sudo apt install dirb
dirb <url> [wordlist]
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.
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,.txtTarget specific extensions - Limit the search to files ending with specific file extensionsdirb 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 occurFind 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.
Displays the URLs it successfully identifies along with the HTTP reply code. A return of CODE:200 indicates success, while CODE:403 reveals a restricted access area.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.