- 过滤关键字:
- 一般绕过方式:
- 大小写
- 双写
- /**/,<>分割关键字
- 编码绕过
- 过滤information_shcema:使用sys.x$schema_flattened_keys、sys.schema_table_statistics_with_buffer 、sys.schema_auto_increment_columns、mysql.innodb_table_stats、mysql.innodb_index_stats等代替
- 一般绕过方式:
- 过滤空格:
- /**/等注释符
- 使用括号包裹语句
- 过滤"#"和"--+":
- ;%00
- 过滤"=":
- 在union注入中where后面的=可以用like代替
- 过滤"<>"(大于小于号):
- greatest(n1,n2,n3,...)
- strcmp(str1,str2)
- in
- between..and...
- 过滤逗号:
- union可以使用join方法绕过 union select 1,2,3 变成 union select * from (select 1)a join (select 2)b join (select 3)
- substr和mid() 可以使用from for的方法解决 substr(str from start for len) //在str中从第start位截取len长的字符 mid(str from start for len)//在str中从第start位截取len长的字符
- limit可以用offset的方法绕过 ,limit 2 offset 1//从第一位(不包括)取出两条数据(第2,3位数据)
- 过滤order by:
-
可以使用 into 变量名进行代替select * from users where id=1 into @a,@b,@c,@d;
- 未完待续...