软件教程

防止asp被杀毒软件误删的代码

来源: 本站    类别: 软件教程    日期: 2013/3/2

 

某些杀毒软件会把正常的asp文件误认为是asp木马文件,而自动删除,影响正常使用。

  下面方法可能会有效避免被杀毒软件删除

  把

  以下是引用片段:   dim tStream
  set tStream = Server.CreateObject("adodb.stream")
  改成

  以下是引用片段:   dim tStream
  set tStream = Server.CreateObject("ado" & "db.stre" & "am")
  如果杀毒软件认为是病毒的关键字符串是一个对象的方法或属性

  如

  以下是引用片段:   tStream2.CopyTo tStream,200
  可以改成

  以下是引用片段:   execute("tStream2.Cop" & "yTo tStream,200")
  把


  以下是引用片段:

   dim tStream
  set tStream = Server.CreateObject("adodb.stream")
  改成

  以下是引用片段:  


dim tStream
  execute("set tStream = Ser" & "ver.Crea" & "teObject(""ado" & "db.stre" & "am"")")


  另一种方法就是用加密软件对代码进行加密。


相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com