准备
pip换源
cd
mkdir pip
cd pip
vim pip.ini
将以下内容编辑进文件后保存退出
# coding: GBK
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
#清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
#阿里云:http://mirrors.aliyun.com/pypi/simple/
#豆瓣:http://pypi.douban.com/simple/
pip更新
pip install --upgrade pip
开始安装dirsearch
apt-get update
apt-get install dirsearch
git clone https://github.com/maurosoria/dirsearch.git
cd dirsearch
python3 dirsearch.py -u http://159.75.16.25 -e*
#这一步报错会告诉你缺什么库,pip install 就好(有一些报错得去搜一下)
以下是我遇到的报错以及对应的安装命令
1. ModuleNotFoundError: No module named 'typing_extensions'
pip install typing-extensions
pip install "psycopg[binary,pool]"
---
2. ModuleNotFoundError: No module named 'mysql'
pip install pymysql
pip install mysql-connector
---
3. ModuleNotFoundError: No module named 'spnego'
pip install pyspnego
---
4. ModuleNotFoundError: No module named 'defusedxml'
pip install defusedxml
---
5. ModuleNotFoundError: No module named 'bs4'
pip install beautifulsoup4
成功后出现这个画面:
就可以正常扫描目录啦
标签:named,Dirsearch,pypi,module,install,ubuntu,pip,dirsearch,安装 From: https://www.cnblogs.com/dddon/p/17722511.html