How to use gobuster

Hackbydoing Academy tool guide · Web hacking · free, no login

What gobuster is, in plain words

Gobuster guesses names from a wordlist at high speed to find hidden web pages and folders, or hidden subdomains, that are not linked anywhere.

A working gobuster command

gobuster dir -u http://192.168.99.20 -w words.txt

This tries every word in words.txt as a page or folder name on that web server and reports the ones that actually exist.

Every piece of the command, explained

-dUsed in dns mode: the next piece is the domain to hunt under, such as example.com, and gobuster tries wordlist words in front of it.
-tThe next number is how many attempts to run at the same time (threads). More is faster and much louder in the server's logs.
-uThe next piece is the target web address (URL) to hunt on, used in dir mode.
-wThe next piece is the name of the wordlist file — the list of names to try, one per line.
-xThe next piece is a comma-separated list of file endings to also try after each word, such as php,txt, so word becomes word, word.php and word.txt.
dirThe word dir right after gobuster picks directory mode: hunt for hidden pages, folders and files on a website.
dnsThe word dns right after gobuster picks subdomain mode: hunt for hidden names in front of a domain, like dev.example.com.

Use it the legal way

Only run gobuster on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.

✦ Practice gobuster hands-on in a guided lab

Reading about gobuster is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.

Join Hackbydoing Academy →

Related tool guides

Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.