需要過濾的特殊字符及字符串有:
net user
xp_cmdshell
/add
exec master.dbo.xp_cmdshell
net localgroup administrators
select
count
Asc
char
mid
"
:
"
insert
delete from
drop table
update
truncate
from
%
"
'
<
>
%
&
(
)
;
+
-
[
]
{
}
http://www.venustech.com.cn/NewsInfo/364/4605.Html
參考資料: http://blog.csdn.net/justmuch/archive/2007/12/17/1943037.aspx
URL無法顯示某些特殊符號,這個時候就要使用編碼了。編碼的格式為:一個百分號,后面跟對應字符的ASCII(16進制)碼值。例如 空格的編碼值是"%20"。(ASCII參考)
URL中的特殊字符
特殊含義 十六進制值
1.+ 表示空格(在 URL 中不能使用空格) %20
2./ 分隔目錄和子目錄 %2F
3.? 分隔實際的 URL 和參數 %3F
4.% 指定特殊字符 %25
5.# 表示書簽 %23
6.& URL 中指定的參數間的分隔符 %26
7. = URL 中指定參數的值 %3D