mirror of
https://github.com/XiaoliChan/wmiexec-Pro.git
synced 2026-10-18 22:50:54 +08:00
9378d074d8
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
25 lines
748 B
Plaintext
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
|