gobuster Command-Line Cheat Sheet

Published 19 April 2024
Last updated 19 April 2024
An older guide that hasn't been re-checked yet, so commands or versions may have moved on.
How guides are made and checked
This cheat sheet references some of the most commonly used gobuster 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 web enumeration through Gobuster, you’ll find valuable insights and shortcuts here.
Installation
| Distribution | Command |
|---|---|
| Debian/Ubuntu | sudo apt-get install gobuster |
| CentOS/Fedora/RHEL | sudo dnf install gobuster |
| NixOs | nix-env -iA nixos.gobuster |
gobuster Cheat Sheet Commands
| Task | Command |
|---|---|
| Directory/File Enumeration | gobuster dir -u <URL> -w <wordlist> |
| DNS Subdomain Enumeration | gobuster dns -d <domain> -w <wordlist> |
| Virtual Host Discovery | gobuster vhost -u <URL> -w <wordlist> |
| HTTP Header Enumeration | gobuster headers -u <URL> -w <wordlist> |
| SSL Certificate Enumeration | gobuster cert -u <URL> -w <wordlist> |
Example Output:

Wrapping Up
This gobuster cheat sheet has highlighted the tool’s flexibility and power for everything from simple tasks to advanced operations. Mastering Gobuster can significantly boost your web enumeration skills. 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
Gobuster Documentation: https://github.com/OJ/gobuster/blob/master/README.md