sql注入绕waf法

  1. 大小写混合
    union SelEct
  2. 多重关键字
    Ununionion selselectect
  3. 编码
    类型:十六进制、URL、Unicode
    形式:0x626264218e、%20、%u0020
  4. 注释

    #
  5. 等价函数或命令
    union:用于合并两个或多个 SELECT 语句的结果集,并消去表中任何重复行。
    union distinct:同union
    union all:用于合并两个或多个 SELECT 语句的结果集,保留表中重复行。

在这里插入图片描述

  1. 特殊符号
    科学记数法 and 1e0 =1e0
    空白字符 %0a %a0 %0b %20 %09
    在mysql中%0a是换行,可以代替空格
    反单引号 table_name
    括号()
  2. 组合绕过
    Id=1and/**/2`/unION/ select 1,2,3

猜你喜欢

转载自blog.csdn.net/weixin_43271438/article/details/82916690