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

对URL地址进行编码 优化2

写了段批量抓取某个列表页的东东

asp do while 循环语法与do while实例教程

asp 常用函数用法

ASP通用模板类

编写通用的asp防注入程序

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

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

pjblog中清空引用的小程序

ASP常用的几个功能模块

精品推荐
分类导航