View Help for a Specific Mode (dir)
In this step, you will learn how to get detailed help for a specific gobuster mode, using the dir mode as an example. The dir mode is used for brute-forcing directories and files on web servers.
To view the help menu for the dir mode, execute the following command in your terminal:
gobuster dir --help
You will see a more detailed output specific to the dir mode, including its unique flags and usage examples. The output will be similar to this:
Usage:
gobuster dir [flags]
Flags:
-u, --url string The target URL (e.g. http://example.com)
-w, --wordlist string Path to the wordlist
-a, --useragent string Set the User-Agent string (default "gobuster/3.X.X")
-c, --cookies string Cookies to use for the request
-e, --expanded Show expanded URL
-f, --follow-redirect Follow redirects
-H, --headers stringArray Add custom header(s)
-k, --no-tls-validation Skip TLS certificate verification
-l, --no-length Don't print the length of the body
-m, --method string HTTP method to use (default "GET")
-n, --no-status Don't print status codes
-p, --proxy string Proxy to use for requests [scheme://host:port]
-r, --random-useragent Use a random User-Agent string
-s, --status-codes string Status codes to include (e.g. "200,204,301") (default "200,204,301,302,307,401,403,500")
-t, --threads int Number of concurrent threads (default 10)
-v, --verbose Verbose output (errors)
-x, --extensions string File extensions to search for (e.g. "php,html")
-z, --no-color Disable color output
--exclude-length string Exclude responses by content length (e.g. "123,456")
--exclude-wildcard string Exclude responses by wildcard (e.g. "200,404")
--timeout duration HTTP timeout (default 10s)
Global Flags:
-h, --help help for gobuster
-q, --quiet Don't print banner and other noise
This detailed help is essential for understanding all the options available for a specific enumeration task.