We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 280e16c + 1bb6573 commit 65287e4Copy full SHA for 65287e4
lib/msf/core/payload/firefox.rb
@@ -169,12 +169,13 @@ def run_cmd_source
169
.get("TmpD", Components.interfaces.nsIFile);
170
stdout.append(stdoutFile);
171
172
+ var shell;
173
if (windows) {
- var shell = shPath+" "+cmd;
174
+ shell = shPath+" "+cmd.trim();
175
shell = shPath+" "+shell.replace(/\\W/g, shEsc)+" >"+stdout.path+" 2>&1";
176
var b64 = svcs.btoa(shell);
177
} else {
- var shell = shPath+" "+cmd.replace(/\\W/g, shEsc);
178
+ shell = shPath+" "+cmd.replace(/\\W/g, shEsc);
179
shell = shPath+" "+shell.replace(/\\W/g, shEsc) + " >"+stdout.path+" 2>&1";
180
}
181
var process = Components.classes["@mozilla.org/process/util;1"]
0 commit comments