' 在functions.asp开头添加安全检查 Sub CheckSecurity() Dim key, value, dangerousPatterns, pattern dangerousPatterns = Array("--", ";", "/*", "*/", "xp_", "char(", _ "exec(", "union%20", "select%20", "insert%20", _ "update%20", "delete%20", "drop%20", "" Response.End End If Next Next ' 检查Form For Each key In Request.Form value = Request.Form(key) For Each pattern In dangerousPatterns If InStr(LCase(value), LCase(pattern)) > 0 Then Response.Write "" Response.End End If Next Next End Sub ' 在initial.asp中调用 Call CheckSecurity()
|
|
app下载
登录
注册
首页 分享 客服 刷新 |
| 首页 >> 大千老师讲产后风 |
澄涓
2020/6/16
106
|
|
|
下载 查看得明学习引导>>
|
|