dirb Command-Line Cheat Sheet

This cheat sheet references some of the most commonly used dirb commands. Whether you’re a seasoned professional looking to brush up on your command-line skills or a newcomer eager to explore the possibilities of networking through dirb, you’ll find valuable insights and shortcuts here.
Installation
| Distribution | Command |
|---|---|
| Debian/Ubuntu | sudo apt install dirb |
| CentOS/Fedora/Red Hat | sudo yum install dirb |
| NixOS | nix-env -iA nixos.dirb |
dirb Cheat Sheet Commands
| Task | Command |
|---|---|
| Basic scan | dirb http://example.com |
| Scan with wordlist | dirb http://example.com /usr/share/dirb/wordlists/common.txt |
| Ignore errors | dirb http://example.com -S |
| Use custom port | dirb http://example.com -p 8080 |
Example output:

Wrapping Up
This dirb cheat sheet has highlighted the tool’s flexibility and power for everything from simple tasks to advanced operations. Mastering dirb can significantly boost your networking skills. If you want a faster, multi-threaded alternative, the gobuster cheat sheet covers the same job. Keep practising, exploring further resources, and share your findings to deepen your understanding and contribute to the community’s collective knowledge.
You May Also Be Interested In
References
The Debian dirb manual - https://manpages.debian.org/unstable/dirb/dirb.1.en.html.