Files
wmiexec-Pro/lib/vbscripts/Exec-Command-Silent.vbs
2026-04-26 17:27:55 +08:00

25 lines
748 B
Plaintext

Dim command
command = Base64StringDecode("REPLACE_WITH_COMMAND")
Dim sh
Set sh = CreateObject("WScript.Shell")
sh.Run "cmd.exe /Q /c " & command, 0, True
Function Base64StringDecode(ByVal vCode)
Set oXML = CreateObject("Msxml2.DOMDocument")
Set oNode = oXML.CreateElement("base64")
oNode.dataType = "bin.base64"
oNode.text = vCode
Set BinaryStream = CreateObject("ADODB.Stream")
BinaryStream.Type = 1
BinaryStream.Open
BinaryStream.Write oNode.nodeTypedValue
BinaryStream.Position = 0
BinaryStream.Type = 2
' All Format => utf-16le - utf-8 - utf-16le
BinaryStream.CharSet = "utf-8"
Base64StringDecode = BinaryStream.ReadText
Set BinaryStream = Nothing
Set oNode = Nothing
End Function