简单记录一下安装过程,都是小白教程,省的哪天又忘了要去百度。
1.下载sqlmap 源码进行安装
wget https://github.com/sqlmapproject/sqlmap/tarball/master
2.解压运行
[root@VM_0_13_centos src]# tar -zxvf sqlmapproject-sqlmap-1.2.7-29-g1f9bf58.tar.gz
sqlmapproject-sqlmap-1f9bf58/
sqlmapproject-sqlmap-1f9bf58/.gitattributes
sqlmapproject-sqlmap-1f9bf58/.github/
sqlmapproject-sqlmap-1f9bf58/.github/CODE_OF_CONDUCT.md
。。。
。。。
。。。
sqlmapproject-sqlmap-1f9bf58/xml/payloads/time_blind.xml
sqlmapproject-sqlmap-1f9bf58/xml/payloads/union_query.xml
sqlmapproject-sqlmap-1f9bf58/xml/queries.xml
3.进入安装目录,运行sqlmap脚本即可
[root@VM_0_13_centos src]# cd sqlmapproject-sqlmap-1f9bf58/
[root@VM_0_13_centos sqlmapproject-sqlmap-1f9bf58]# python sqlmap.py
___
__H__
___ ___[.]_____ ___ ___ {1.2.7.28#dev}
|_ -| . [)] | .'| . |
|___|_ [(]_|_|_|__,| _|
|_|V |_| http://sqlmap.org
Usage: python sqlmap.py [options]
sqlmap.py: error: missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, -x, --list-tampers, --wizard, --update, --purge or --dependencies). Use -h for basic and -hh for advanced help
4.方便每次直接调用,使用alias命令用来设置
[root@VM_0_13_centos ~]# alias sqlmap='python /usr/src/sqlmapproject-sqlmap-1f9bf58/sqlmap.py'