Directories
We can identifies all directories of a website:
gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://example.com
Also, for a specific content, we can get all files:
gobuster dir -x jpeg,jpg,png -w <wordlist.txt> -u http://example.com/uploads
Also, that can help to identify all html page or php page for instance:
gobuster dir -x jpeg,html,htm,php -w <wordlist.txt> -u http://example.com/
User-Agent
Sometime, when you have the error bellow:
Error: error on running gobuster: unable to connect to http://example.com:5000/: Get "http://example.com:5000/": EOF
That's mean, you have defined a proxy or, you need to user another User-Agent:
gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://example.com -a "curl"