安装
github地址
https://codeload.github.com/maurosoria/dirsearch/zip/refs/heads/master
升级python到3.7
必须要求3.7以上
vps centos 7.6升级方法
或者自行百度
安装依赖库
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install paramiko
pip install markupsafe
使用
查看详细使用方法
python3 dirsearch.py -h
常用的参数有
-u 指定网址
-e 指定网站语言
-w 指定字典
-r 递归目录(跑出目录后,继续跑目录下面的目录)
–random-agents 使用随机UA
默认字典位置
db文件夹内 dicc.txt 是目录字典 有9791个
user-agents.txt 是user-agent 字典 有153个
可以放入其他字典替换
python3 dirsearch.py -u https://www.qq.com -e jsp,php
详细用法
https://blog.csdn.net/qq_43936524/article/details/115271837