Check for ; and = characters when setting cookies

This commit is contained in:
antisnatchor
2015-06-29 12:00:03 +02:00
parent de13116182
commit d9012d0f15

View File

@@ -80,13 +80,19 @@ beef.browser.cookie = {
var grunt = function(){
var moo = Math.floor(Math.random() * 62);
// this covers alpha chars only, both uppercase and lowercase
var char = '';
if(moo < 36){
return String.fromCharCode(moo + 55);
char = String.fromCharCode(moo + 55);
}else{
return String.fromCharCode(moo + 61);
char = String.fromCharCode(moo + 61);
}
if(char != ';' && char != '='){
return char;
}else{
return 'x';
}
};
while(to_hell.length < lol_length){
to_hell += grunt();
}