手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp下的风讯用的SQL通用防注入模块提供了
asp下的风讯用的SQL通用防注入模块提供了
摘要:复制代码代码如下:

复制代码 代码如下:

<%

DimFS_NoSqlHack_AllStr,FS_NoSqlHack_Str,FS_NoSqlHack_ComeUrlGet,FS_NoSqlHack_ComeUrlPost,FS_NoSqlHack_Get,FS_NoSqlHack_Post,FS_NoSqlHack_i

'OnErrorResumeNext

FS_NoSqlHack_AllStr="'|;|and|chr(|exec|insert|select|deletefrom|update|mid(|master."

FS_NoSqlHack_ComeUrlGet=Request.QueryString

FS_NoSqlHack_ComeUrlPost=Request.Form

FS_NoSqlHack_Str=Split(FS_NoSqlHack_AllStr,"|")

'Post

IfFS_NoSqlHack_ComeUrlPost<>""then

ForEachFS_NoSqlHack_PostInRequest.Form

ForFS_NoSqlHack_i=0ToUbound(FS_NoSqlHack_Str)

IfInstr(LCase(Request.Form(FS_NoSqlHack_Post)),FS_NoSqlHack_Str(FS_NoSqlHack_i))<>0Then

Response.Write("Error!!")

Response.End

Endif

Next

Next

Endif

'Get

IfFS_NoSqlHack_ComeUrlGet<>""then

ForEachFS_NoSqlHack_GetInRequest.QueryString

ForFS_NoSqlHack_i=0ToUbound(FS_NoSqlHack_Str)

IfInstr(LCase(Request.QueryString(FS_NoSqlHack_Get)),FS_NoSqlHack_Str(FS_NoSqlHack_i))<>0Then

Response.Write("Error!!")

Response.End

Endif

Next

Next

Endif

%>

【asp下的风讯用的SQL通用防注入模块提供了】相关文章:

asp下载防盗链代码

ASP通用模板类

网站制作ASP语言的特点与功能

使用模板实现ASP代码与页面分离

ASP编程入门进阶(十五):组件Counters

asp制作的日历程序

asp中一段防SQL注入的通用脚本

asp 中英文字符长度检测判断函数

全面认识ASP注入技巧

先锋海盗类

精品推荐
分类导航