• 网站中的 URI(目录和文件)。
  • DNS 子域(支持通配符)。
  • 目标 Web 服务器上的虚拟主机名。
  • 打开 Amazon S3 存储桶

1. 入门

  1. # 获取帮助
  2. gobuster [dir|dns|fuzz|s3|vhost] -h
  3. 可用命令:
  4. dir 使用目录/文件枚举模式
  5. dns 使用 DNS 子域枚举方式
  6. fuzz 使用模糊模式
  7. s3 使用 aws 桶枚举模式
  8. vhost VHOST 枚举模式
  9. Flags:
  10. --delay duration 线程之间等待时间
  11. --no-error 不显示错误
  12. -z, --no-progress 不显示进度
  13. -o, --output string 将结果输出到文件中
  14. -p, --pattern string 包含替换模式的文件
  15. -q, --quiet 不打印横幅和其他噪音
  16. -t, --threads int 并发线程数
  17. -v, --verbose 详细输出
  18. -w, --wordlist string 字典路径

2. 基本使用

  1. # DNS 模式
  2. gobuster dns -d google.com -t 50 -w common-names.txt
  3. # 显示 IP
  4. gobuster dns -d google.com -w ~/wordlists/subdomains.txt -i
  5. # dir 模式
  6. gobuster dir -u https://mysite.com/path/to/folder -c 'session=123456' -t 50 -w common-files.txt -x .php,.html
  7. # VHOST 模式
  8. gobuster vhost -u https://mysite.com -w common-vhosts.txt
  9. # FUZZ 模式
  10. gobuster fuzz -u https://example.com?FUZZ=test -w parameter-names.txt
  11. # s3 模式
  12. gobuster s3 -w bucket-names.txt