手机
当前位置:查字典教程网 >编程开发 >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通用防注入模块提供了】相关文章:

vbs(asp)下的Function 语句

先锋海盗类

编写通用的asp防注入程序

asp中cookie欺骗/注入原理与防范

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

高手推荐的比较有用的ASP函数集合

ASP常用的几个功能模块

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

asp下载防盗链代码

asp制作的日历程序

精品推荐
分类导航