目录文件DNSVHost暴力破解工具:Gobuster

目录/文件/DNS/VHost暴力破解工具:Gobu

┌──(root㉿kali)-[~]
└─# gobuster help
Usage:
  gobuster [command]

Available Commands:
  dir         Uses directory/file enumeration mode
  dns         Uses DNS subdomain enumeration mode
  fuzz        Uses fuzzing mode
  help        Help about any command
  s3          Uses aws bucket enumeration mode
  version     shows the current version
  vhost       Uses VHOST enumeration mode

Flags:
      --delay duration    Time each thread waits between requests (e.g. 1500ms)
  -h, --help              help for gobuster
      --no-error          Don't display errors
  -z, --no-progress       Don't display progress
  -o, --output string     Output file to write results to (defaults to stdout)
  -p, --pattern string    File containing replacement patterns
  -q, --quiet             Don't print the banner and other noise
  -t, --threads int       Number of concurrent threads (default 10)
  -v, --verbose           Verbose output (errors)
  -w, --wordlist string   Path to the wordlist

Use "gobuster [command] --help" for more information about a command.

可用模式

  • dir - 经典目录暴力破解模式

  • dns - DNS子域暴力破解模式

  • vhost - 虚拟主机强制模式(与DNS不同!)

内置帮助

  • gobuster help - 输出顶级帮助。

  • gobuster help - 输出特定于该模式的帮助 。

使用字典

可以通过向-w选项应用字典传递到gobuster中:

hashcat -a 3 --stdout ?l | gobuster dir -u https://mysite.com -w -

dir模式

┌──(root㉿kali)-[~]
└─# gobuster dir -u http://114.67.175.224:17682/  -w /usr/share/wordlists/dirb/common.txt
===============================================================
Gobuster v3.1.0
by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)
===============================================================
[+] Url:                     http://114.67.175.224:17682/
[+] Method:                  GET
[+] Threads:                 10
[+] Wordlist:                /usr/share/wordlists/dirb/common.txt
[+] Negative Status codes:   404
[+] User Agent:              gobuster/3.1.0
[+] Timeout:                 10s
===============================================================
2022/05/03 20:32:41 Starting gobuster in directory enumeration mode
===============================================================
/.git/HEAD            (Status: 200) [Size: 23]
/.hta                 (Status: 403) [Size: 282]
/.htpasswd            (Status: 403) [Size: 282]
/.htaccess            (Status: 403) [Size: 282]
/index.html           (Status: 200) [Size: 139]
/server-status        (Status: 403) [Size: 282]
                                               
===============================================================
2022/05/03 20:33:01 Finished
===============================================================
         

dns 模式

gobuster dns -d mysite.com -t 50 -w common-names.txt

vhost 模式

gobuster vhost -u https://mysite.com -w common-vhosts.txt
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Gobuster 是一个命令行工具,用于在 Web 服务器上查找隐藏的网站目录和子域名。它使用一个字典文件来生成可能的路径和子域名,并发送 HTTP 请求来检查它们是否存在。通过使用 Gobuster,渗透测试人员可以发现攻击面上的隐藏目录和子域名,从而找到潜在的漏洞和攻击点。 Gobuster 支持多种协议(如 HTTP、HTTPS 和 FTP)和多种字典文件格式。它还支持使用自定义 HTTP 头和代理服务器,以及对请求的超时时间和重试次数进行配置。 使用 Gobuster 时,需要先准备好一个字典文件,包含可能的路径和子域名。然后可以使用以下命令格式运行 Gobuster: ``` gobuster [options] url ``` 其中,`options` 是各种选项和参数,`url` 是要测试的目标 URL。 以下是一些常用的 Gobuster 选项: - `-w`:指定字典文件路径 - `-u`:指定目标 URL - `-t`:指定线程数 - `-e`:URL 编码类型(如 URL 编码、Unicode 编码等) - `-k`:忽略 SSL 证书错误 - `-x`:指定扩展名(如 `.php`、`.html` 等) - `-s`:指定 HTTP 响应状态码(如 `200,301,404` 等) - `-r`:指定要递归扫描的子目录深度 - `-b`:指定要排除的 HTTP 响应状态码(如 `403,500` 等) 例如,以下命令将使用 `common.txt` 字典文件,在 `http://example.com` 上测试常见的网站目录文件: ``` gobuster dir -u http://example.com -w common.txt ``` 使用 Gobuster 时需要谨慎,因为它可以在短时间内发送大量的请求,可能会导致目标服务器崩溃或被封禁。因此,建议在使用 Gobuster 时遵循道德准则和合法法律规定。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

crabin_lpb

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值