国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

asp實現防止從外部提交數據的三種方法第1/3頁

2020-07-27 13:03:16
字體:
來源:轉載
供稿:網友
防止從外部提交數據的方法

第一種做法,屏蔽特殊字符和關鍵字

fqys=request.servervariables("query_string") 

dim nothis(18) 

nothis(0)="net user" 

nothis(1)="xp_cmdshell" 

nothis(2)="/add" 

nothis(3)="exec%20master.dbo.xp_cmdshell" 

nothis(4)="net localgroup administrators" 

nothis(5)="select" 

nothis(6)="count" 

nothis(7)="asc" 

nothis(8)="char" 

nothis(9)="mid" 

nothis(10)="'" 

nothis(11)=":" 

nothis(12)="""" 

nothis(13)="insert" 

nothis(14)="delete" 

nothis(15)="drop" 

nothis(16)="truncate" 

nothis(17)="from" 

nothis(18)="%" 

errc=false 

for i= 0 to ubound(nothis) 

if instr(FQYs,nothis(i))<>0 then 

errc=true 

end if 

next 

if errc then 

response.write "<script language=""javascript"">" 

response.write "parent.alert('很抱歉!你正在試圖攻擊本服務器或者想取得本服務器最高管理權!將直接轉向首頁..');" 

response.write "self.location.href='default.asp';" 

response.write "</script>" 

response.end 

end if 
123下一頁閱讀全文
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 锡林浩特市| 利津县| 洛川县| 普格县| 屏东市| 高雄县| 朝阳县| 黄龙县| 鸡泽县| 太湖县| 镇远县| 新竹县| 林西县| 临西县| 务川| 河北区| 永康市| 缙云县| 灵宝市| 卓资县| 浑源县| 乌拉特前旗| 河池市| 中方县| 灵宝市| 花垣县| 南通市| 枝江市| 塔城市| 苍梧县| 邯郸县| 新绛县| 无为县| 南溪县| 汉沽区| 安多县| 渑池县| 永善县| 宜兰市| 定远县| 庆元县|