Fix extra slashes that cause browser autopwn to fail.

bug/bundler_fix
sinn3r 2013-10-18 20:43:39 -05:00
parent 73b8eb0f83
commit 298f23c91c
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ var Base64 = {
// private method
_utf8_encode : function ( input ){
input = input.replace(/\\r\\n/g,"\\n");
input = input.replace(/\r\n/g,"\\n");
var utftext = "";
var input_idx;
@ -64,7 +64,7 @@ var Base64 = {
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, "");
input = input.replace(/[^A-Za-z0-9\+\/\\=]/g, "");
while (i < input.length) {

View File

@ -23,7 +23,7 @@ class JavascriptCrypto
}
}
::Rex::Exploitation::ObfuscateJS.new(js, opts).to_s
::Rex::Exploitation::ObfuscateJS.new(js, opts)
end
end