二、安装和使用
安装
git clone https://github.com/maurosoria/dirsearch.git
cd dirsearch
pip3 install -r requirements.txt
可以使用kali,系统默认自带,没有的话通过命令行安装
sudo apt-get install dirsearch
使用
python3 dirsearch.py -u https://www.example.com/ -e php,json,txt
其中,-u 参数指定目标网站,-e 参数指定要扫描的后缀名。
三、参数设置
python3 dirsearch.py -u http://www.example.com -w /path/to/your/wordlist.txt
2、忽略扩展名和目录
python3 dirsearch.py -u http://www.example.com --ignore-ext php,jpg --ignore-dir admin,uploads
3、设置超时时间
python3 dirsearch.py -u http://www.example.com -t 30
4、递归扫描子目录
python3 dirsearch.py -u http://www.example.com -r
四、结果分析
下面是一个结果样例:
Target: [https://www.example.com/](https://www.example.com/)
Code: 200 Length: 78240 Response: OK
URL: [https://www.example.com/index.php](https://www.example.com/index.php)
Wordlist: /path/to/your/wordlist.txt
五、常见应用场景
六、总结
原文始发于微信公众号(马哥网络安全):信息收集之dirsearch,你会用吗?
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论