fix: PowerShell #3 Mode cannot use in raw function

This commit is contained in:
dextermallo 2024-12-23 09:44:07 +08:00
parent c93941322c
commit 09df3bced5

View File

@ -6,9 +6,9 @@ const insertParameters = function (command, params) {
const encoder = (value) => value;
if (command === "PowerShell #3 (Base64)") {
return rsgData.specialCommands['PowerShell payload']
return "powershell -e " + btoa(rsgData.specialCommands['PowerShell payload']
.replace(encoder('{ip}'), encoder(params.ip))
.replace(encoder('{port}'), encoder(String(params.port)))
.replace(encoder('{port}'), encoder(String(params.port))))
}
return command