Fix extra slashes that cause browser autopwn to fail.
parent
73b8eb0f83
commit
298f23c91c
|
@ -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) {
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class JavascriptCrypto
|
|||
}
|
||||
}
|
||||
|
||||
::Rex::Exploitation::ObfuscateJS.new(js, opts).to_s
|
||||
::Rex::Exploitation::ObfuscateJS.new(js, opts)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue