主页

ubuntu 安装 sqlmap

2023-11-29 09:28AM

1. 先检查 python3 环境,确保你已经安装了 python3

$ python3 --version
Python 3.10.12

2. 更新

$ sudo apt update 

3. 安装 sqlmap 

$ sudo apt install sqlmap
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-magic
The following NEW packages will be installed:
  python3-magic sqlmap
0 upgraded, 2 newly installed, 0 to remove and 46 not upgraded.
Need to get 6,912 kB of archives.
After this operation, 11.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.aliyun.com/ubuntu jammy/main amd64 python3-magic all 2:0.4.24-2 [12.6 kB]
Get:2 http://mirrors.aliyun.com/ubuntu jammy/universe amd64 sqlmap all 1.6.4-2 [6,900 kB]
Fetched 6,912 kB in 2s (4,174 kB/s) 
Selecting previously unselected package python3-magic.
(Reading database ... 257872 files and directories currently installed.)
Preparing to unpack .../python3-magic_2%3a0.4.24-2_all.deb ...
Unpacking python3-magic (2:0.4.24-2) ...
Selecting previously unselected package sqlmap.
Preparing to unpack .../sqlmap_1.6.4-2_all.deb ...
Unpacking sqlmap (1.6.4-2) ...
Setting up python3-magic (2:0.4.24-2) ...
Setting up sqlmap (1.6.4-2) ...
Processing triggers for man-db (2.10.2-1) ...

4. 查看 sqlmap 的版本

 $ sqlmap --version
1.6.4#stable
[09:09:38] [WARNING] your sqlmap version is outdated

5. 输入 sqlmap

$ sqlmap
        ___
       __H__
 ___ ___[)]_____ ___ ___  {1.6.4#stable}
|_ -| . [.]     | .'| . |
|___|_  [)]_|_|_|__,|  _|
      |_|V...       |_|   https://sqlmap.org

Usage: python3 sqlmap [options]

sqlmap: error: missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wizard, --shell, --update, --purge, --list-tampers or --dependencies). Use -h for basic and -hh for advanced help

[09:36:31] [WARNING] your sqlmap version is outdated

就显示已经安装好了

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论