今天做题的时候下载使用了这个工具,为了避免以后忘记怎么使用,写篇博客来备忘一下,同时也想分享一下这个工具(挺好用的)
GitHub网址:网址
-u 指定url
-e 指定网站语言
-w 可以加上自己的字典(带上路径)
-r 递归跑(查到一个目录后,在目录后在重复跑,很慢,不建议用)
–random-agents 使用代理(使用的代理目录在uesr-agents.txt中,可以自己添加)
例子
python3 dirsearch.py -e php,txt,zip -u https://target
python3 dirsearch.py -e php,txt,zip -u https://target -w db/dicc.txt
python3 dirsearch.py -e php,txt,zip -u https://target -w db/dicc.txt --recursive -R 2
目前我就用到过前3个参数,如果以后使用到了别的我会继续补充。