目录/文件/DNS/VHost暴力破解工具:Gobuster
Gobuster是用于暴力破解的工具,基于Go编写,使用CLI交互式,具有良好的性能优化和连接处理,提供自定义HTTP标头的选项等。
Gobuster安装
提供两种方式
- 直接下载编辑好的二进制文件 releases ,推荐
- 自行编译
自行编译
go get github.com/OJ/gobustergo get && go buildgo install
如果已经具有所有依赖项,则可以使用构建脚本:
- make - 为当前的Go配置构建 (运行 go build)
- make windows - 为Windows构建32位和64位二进制文件,并将其写入build子文件夹
- make linux - 为Linux构建32位和64位二进制文件,并将其写入build子文件夹
- make darwin - 为darwin构建32位和64位二进制文件,并将它们写入build子文件夹
- make all - 为所有平台和体系结构构建,并将生成的二进制文件写入build子文件夹
- make clean - 清除build子文件夹
- make test - 运行测试
Gobuster使用
可用模式
- dir - 经典目录暴力破解模式
- dns - DNS子域暴力破解模式
- vhost - 虚拟主机强制模式(与DNS不同!)
内置帮助
- gobuster help - 输出顶级帮助。
- gobuster help <mode> - 输出特定于该模式的帮助。
使用字典
可以通过向-w选项应用字典传递到gobuster中:
hashcat -a 3 --stdout ?l | gobuster dir -u https://mysite.com -w -
dir 模式
gobuster dir -u https://mysite.com/path/to/folder -c 'session=123456' -t 50 -w common-files.txt -x .php,.html
详细输出如下所示:
gobuster dir -u https://buffered.io -w ~/wordlists/shortlist.txt -v ===============================================================Gobuster v3.0.1by OJ Reeves (@TheColonial) & Christian Mehlmauer (@_FireFart_)===============================================================[ ] Mode : dir[//buffered.io/ ] Url/Domain : https:[10 ] Threads : [ ] Wordlist : /home/oj/wordlists/shortlist.txt[200,204,301,302,307,401,403 ] Status codes : [3.0.1 ] User Agent : gobuster/[true ] Verbose : [10s ] Timeout : ===============================================================2019/06/21 11:50:51 Starting gobuster===============================================================Missed: /alsodoesnotexist (Status: 404)Found: /index (Status: 200)Missed: /doesnotexist (Status: 404)Found: /categories (Status: 301)Found: /posts (Status: 301)Found: /contact (Status: 301)===============================================================2019/06/21 11:50:51 Finished===============================================================
dns 模式
gobuster dns -d mysite.com -t 50 -w common-names.txt
标准输出:
gobuster dns -d google.com -w ~/wordlists/subdomains.txt ===============================================================Gobuster v3.0.1by OJ Reeves (@TheColonial) & Christian Mehlmauer (@_FireFart_)===============================================================[+] Mode : dns[+] Url/Domain : google.com[+] Threads : 10[+] Wordlist : /home/oj/wordlists/subdomains.txt===============================================================2019/06/21 11:54:20 Starting gobuster===============================================================Found: chrome.google.comFound: ns1.google.comFound: admin.google.comFound: www.google.comFound: m.google.comFound: support.google.comFound: translate.google.comFound: cse.google.comFound: news.google.comFound: music.google.comFound: mail.google.comFound: store.google.comFound: mobile.google.comFound: search.google.comFound: wap.google.comFound: directory.google.comFound: local.google.comFound: blog.google.com===============================================================2019/06/21 11:54:20 Finished===============================================================
项目地址:https://github.com/OJ/gobuster
文章来源:菜鸟学安全
黑白之道发布、转载的文章中所涉及的技术、思路和工具仅供以安全为目的的学习交流使用,任何人不得将其用于非法用途及盈利等目的,否则后果自行承担!
如侵权请私聊我们删文
END