亚洲精品中文字幕无乱码_久久亚洲精品无码AV大片_最新国产免费Av网址_国产精品3级片

SQL

ASP的SQL防注入過濾涵數(shù)

時(shí)間:2024-09-19 16:40:03 SQL 我要投稿
  • 相關(guān)推薦

ASP的SQL防注入過濾涵數(shù)

  ASP最新SQL防注入過濾涵數(shù)

  Function Checkstr(Str)

  If Isnull(Str) Then

  CheckStr = ""

  Exit Function

  End If

  Str = Replace(Str,Chr(0),"", 1, -1, 1)

  Str = Replace(Str, """", """, 1, -1, 1)

  Str = Replace(Str,"<;","<; str="Replace(Str,"">;",">;", 1, -1, 1)

  Str = Replace(Str, "script", "script", 1, -1, 0)

  Str = Replace(Str, "SCRIPT", "SCRIPT", 1, -1, 0)

  Str = Replace(Str, "Script", "Script", 1, -1, 0)

  Str = Replace(Str, "script", "Script", 1, -1, 1)

  Str = Replace(Str, "object", "object", 1, -1, 0)

  Str = Replace(Str, "OBJECT", "OBJECT", 1, -1, 0)

  Str = Replace(Str, "Object", "Object", 1, -1, 0)

  Str = Replace(Str, "object", "Object", 1, -1, 1)

  Str = Replace(Str, "applet", "applet", 1, -1, 0)

  Str = Replace(Str, "APPLET", "APPLET", 1, -1, 0)

  Str = Replace(Str, "Applet", "Applet", 1, -1, 0)

  Str = Replace(Str, "applet", "Applet", 1, -1, 1)

  Str = Replace(Str, "[", "[")

  Str = Replace(Str, "]", "]")

  Str = Replace(Str, """", "", 1, -1, 1)

  Str = Replace(Str, "=", "=", 1, -1, 1)

  Str = Replace(Str, "’", "’’", 1, -1, 1)

  Str = Replace(Str, "select", "select", 1, -1, 1)

  Str = Replace(Str, "execute", "execute", 1, -1, 1)

  Str = Replace(Str, "exec", "exec", 1, -1, 1)

  Str = Replace(Str, "join", "join", 1, -1, 1)

  Str = Replace(Str, "union", "union", 1, -1, 1)

  Str = Replace(Str, "where", "where", 1, -1, 1)

  Str = Replace(Str, "", "", 1, -1, 1)

  Str = Replace(Str, "", "", 1, -1, 1)

  Str = Replace(Str, "update", "update", 1, -1, 1)

  Str = Replace(Str, "like", "like", 1, -1, 1)

  Str = Replace(Str, "drop", "drop", 1, -1, 1)

  Str = Replace(Str, "create", "create", 1, -1, 1)

  Str = Replace(Str, "rename", "rename", 1, -1, 1)

  Str = Replace(Str, "count", "count", 1, -1, 1)

  Str = Replace(Str, "chr", "chr", 1, -1, 1)

  Str = Replace(Str, "mid", "mid", 1, -1, 1)

  Str = Replace(Str, "truncate", "truncate", 1, -1, 1)

  Str = Replace(Str, "nchar", "nchar", 1, -1, 1)

  Str = Replace(Str, "char", "char", 1, -1, 1)

  Str = Replace(Str, "alter", "alter", 1, -1, 1)

  Str = Replace(Str, "cast", "cast", 1, -1, 1)

  Str = Replace(Str, "exists", "exists", 1, -1, 1)

  Str = Replace(Str,Chr(13),"<;br>;", 1, -1, 1)

  CheckStr = Replace(Str,"’","’’", 1, -1, 1)

  End Function

 

【ASP的SQL防注入過濾涵數(shù)】相關(guān)文章:

ASP的特點(diǎn)與功能04-20

sql語法大全03-23

Sql認(rèn)證考試內(nèi)容06-08

MySQL導(dǎo)出導(dǎo)入SQL文件命令方法06-29

關(guān)于JDBC連接SQL2000的詳細(xì)流程07-16

奧數(shù)知識總結(jié)11-01

國外的奧數(shù)培訓(xùn)教育01-31

小升初奧數(shù)準(zhǔn)備知識09-05

爵士舞怎么數(shù)拍子03-09

小學(xué)奧數(shù)公式整理大全02-09