DIRB
DIRB is a Web Content Scanner that looks for existing and hidden web objects by launching dictionary-based attacks against web servers. It analyzes HTTP responses to identify directories, files, and other content.
Description
DIRB is a URL bruteforcing tool designed for professional web application auditing, particularly in security testing. It helps uncover web objects that generic CGI scanners miss, focusing on content discovery rather than vulnerability detection. The tool comes with preconfigured wordlists but supports custom ones, making it versatile for targeted scans.
Use cases include enumerating hidden directories and files on web servers during penetration testing. It covers gaps left by classic vulnerability scanners by specifically hunting for web objects through response analysis. DIRB is not a vulnerability scanner but excels at content discovery for further manual assessment.
The package includes supporting utilities like dirb-gendict for generating custom dictionaries and html2dic for extracting words from HTML files to build wordlists.
How It Works
DIRB launches dictionary-based attacks by sending HTTP requests for each word in the wordlist appended to the base URL. It analyzes server responses, particularly HTTP status codes and response sizes, to identify existing content. Features like fine-tuning 404 detection, handling redirects, and extension amplification allow precise identification of directories, files, and hidden objects.
Installation
sudo apt install dirbFlags
Examples
dirb http://192.168.1.224/ /usr/share/wordlists/dirb/common.txtdirb-gendict -n thisword_Xdirb-gendict -c thisword_Xdirb-gendict -C thisword_Xdirb-gendict -h thisword_Xdirb-gendict -a thisword_Xhtml2dic <file>