Gobuster Dir Usage -u -w
gobuster dir -u http://example.com -w wordlist.txt -x php,html,txt Use code with caution. 2. Handling Status Codes ( -b and -s )
=============================================================== Gobuster v3.6 [+] Url: https://target.com [+] Wordlist: /usr/share/wordlists/dirb/common.txt [+] Status codes: 200,204,301,302,307,401,403 =============================================================== /admin (301) /backup (200) /css (301) /index.php (200) /js (301) /robots.txt (200)
: Specifies the target URL (e.g., http://10.10.10.123 or https://example.com ). gobuster dir usage -u -w
gobuster dir -u https://target.com -w wordlist.txt \ -x php,html \ # Check these extensions -t 50 \ # 50 concurrent threads -k \ # Skip SSL certificate verification -o results.txt \ # Output to file -s "200,204,301,302" # Only show these status codes
: "Blacklist" status codes you want to hide (e.g., -b 404,403 ). gobuster dir -u http://example
gobuster dir -u https://target.com -w /usr/share/wordlists/dirb/common.txt -t 50
: Use the -o flag to save your results for later analysis: -o results.txt . gobuster dir -u https://target
: Use -r if you want Gobuster to follow 301/302 redirects to see where they lead.
gobuster dir -u https://target.com -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt
In this example, Gobuster has discovered four directories: