1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#首先先安装pip 不懂得翻我以前的文章

#安装
pip install sqlmap

#显示包的位置
pip show sqlmap


WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Name: sqlmap
Version: 1.4.3
Summary: Automatic SQL injection and database takeover tool
Home-page: http://sqlmap.org
Author: Bernardo Damele Assumpcao Guimaraes, Miroslav Stampar
Author-email: bernardo@sqlmap.org, miroslav@sqlmap.org
License: GNU General Public License v2 (GPLv2)
Location: /home/jamie793/.local/lib/python3.5/site-packages
Requires:
Required-by:


#Location就是安装的位置复制下来
cd /home/jamie793/.local/lib/python3.5/site-packages/sqlmap
#里面有个sqlmap.py文件直接python sqlmap.py就行了
但是每次使用都很麻烦所以我们把它添加到环境变量中下次直接使用

vim ~/.bashrc
#添加下面这个到文件中
alias sqlmap='python ~/.local/lib/python3.5/site-packages/sqlmap/sqlmap.py'
#然后保存退出,更新
source ~/.bashrc