asp下的风讯用的SQL通用防注入模块提供了_ASP教程-查字典教程网
asp下的风讯用的SQL通用防注入模块提供了
asp下的风讯用的SQL通用防注入模块提供了
发布时间:2016-12-29 来源:查字典编辑
摘要:复制代码代码如下:

复制代码 代码如下:

<%

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教程学习
    热门ASP教程学习
    编程开发子分类