Linux安裝Sqlmap等工具

簡單記錄一下安裝過程,都是小白教程,省的哪天又忘了要去百度。python

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'

5.像nc,nmap可直接使用yum install XXX進行安裝

相關文章
相關標籤/搜索