查看特定模式 (dir) 的帮助
在此步骤中,你将学习如何获取特定 gobuster 模式的详细帮助,以 dir 模式为例。dir 模式用于对 Web 服务器上的目录和文件进行暴力破解。
要查看 dir 模式的帮助菜单,请在你的终端中执行以下命令:
gobuster dir --help
你将看到针对 dir 模式的更详细输出,包括其独特的标志和用法示例。输出将类似于:
Usage:
gobuster dir [flags]
Flags:
-u, --url string 目标 URL (例如 http://example.com)
-w, --wordlist string 单词列表的路径
-a, --useragent string 设置 User-Agent 字符串 (默认 "gobuster/3.X.X")
-c, --cookies string 用于请求的 Cookies
-e, --expanded 显示展开的 URL
-f, --follow-redirect 跟随重定向
-H, --headers stringArray 添加自定义头信息
-k, --no-tls-validation 跳过 TLS 证书验证
-l, --no-length 不打印响应体长度
-m, --method string 要使用的 HTTP 方法 (默认 "GET")
-n, --no-status 不打印状态码
-p, --proxy string 要用于请求的代理 [scheme://host:port]
-r, --random-useragent 使用随机的 User-Agent 字符串
-s, --status-codes string 要包含的状态码 (例如 "200,204,301") (默认 "200,204,301,302,307,401,403,500")
-t, --threads int 并发线程数 (默认 10)
-v, --verbose 详细输出 (错误)
-x, --extensions string 要搜索的文件扩展名 (例如 "php,html")
-z, --no-color 禁用彩色输出
--exclude-length string 按内容长度排除响应 (例如 "123,456")
--exclude-wildcard string 按通配符排除响应 (例如 "200,404")
--timeout duration HTTP 超时时间 (默认 10s)
Global Flags:
-h, --help gobuster 的帮助
-q, --quiet 不打印横幅和其他无关输出
此详细帮助对于理解特定枚举任务的所有可用选项至关重要。