840 lines
256 KiB
JavaScript
840 lines
256 KiB
JavaScript
|
(function(self){
|
||
|
|
||
|
var USE_CHAR_CODE = "USE_CHAR_CODE";
|
||
|
|
||
|
var MIN = 32, MAX = 126;
|
||
|
|
||
|
var SIMPLE = {
|
||
|
'false': '![]',
|
||
|
'true': '!![]',
|
||
|
'undefined': '[][[]]',
|
||
|
'NaN': '+[![]]',
|
||
|
'Infinity': '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])' // +"1e1000"
|
||
|
};
|
||
|
|
||
|
var CONSTRUCTORS = {
|
||
|
'Array': '[]',
|
||
|
'Number': '(+[])',
|
||
|
'String': '([]+[])',
|
||
|
'Boolean': '(![])',
|
||
|
'Function': '[]["filter"]',
|
||
|
'RegExp': 'Function("return/0/")()'
|
||
|
};
|
||
|
|
||
|
var MAPPING = {
|
||
|
'a': '(false+"")[1]',
|
||
|
'b': '(+(11))["toString"](20)',
|
||
|
'c': '([]["filter"]+"")[3]',
|
||
|
'd': '(undefined+"")[2]',
|
||
|
'e': '(true+"")[3]',
|
||
|
'f': '(false+"")[0]',
|
||
|
'g': '(+false+[false]+String)[20]',
|
||
|
'h': '(+(101))["toString"](21)[1]',
|
||
|
'i': '([false]+undefined)[10]',
|
||
|
'j': '(+(40))["toString"](21)[1]',
|
||
|
'k': '(+(20))["toString"](21)',
|
||
|
'l': '(false+"")[2]',
|
||
|
'm': '(Number+"")[11]',
|
||
|
'n': '(undefined+"")[1]',
|
||
|
'o': '(true+[]["filter"])[10]',
|
||
|
'p': '(+(211))["toString"](31)[1]',
|
||
|
'q': '(+(212))["toString"](31)[1]',
|
||
|
'r': '(true+"")[1]',
|
||
|
's': '(false+"")[3]',
|
||
|
't': '(true+"")[0]',
|
||
|
'u': '(undefined+"")[0]',
|
||
|
'v': '(+(31))["toString"](32)',
|
||
|
'w': '(+(32))["toString"](33)',
|
||
|
'x': '(+(101))["toString"](34)[1]',
|
||
|
'y': '(NaN+[Infinity])[10]',
|
||
|
'z': '(+(35))["toString"](36)',
|
||
|
|
||
|
'A': '(+false+Array)[10]',
|
||
|
'B': '(+false+Boolean)[10]',
|
||
|
'C': 'Function("return escape")()("<")[2]',
|
||
|
'D': 'Function("return escape")()("=")[2]',
|
||
|
'E': '(RegExp+"")[12]',
|
||
|
'F': '(+false+Function)[10]',
|
||
|
'G': '(false+Function("return Date")()())[30]',
|
||
|
'H': USE_CHAR_CODE,
|
||
|
'I': '(Infinity+"")[0]',
|
||
|
//'J': USE_CHAR_CODE,
|
||
|
'K': USE_CHAR_CODE,
|
||
|
'L': USE_CHAR_CODE,
|
||
|
'M': '(true+Function("return Date")()())[30]',
|
||
|
'N': '(NaN+"")[0]',
|
||
|
//'O': USE_CHAR_CODE,
|
||
|
'P': USE_CHAR_CODE,
|
||
|
'Q': USE_CHAR_CODE,
|
||
|
'R': '(+false+RegExp)[10]',
|
||
|
'S': '(+false+String)[10]',
|
||
|
'T': '(NaN+Function("return Date")()())[30]',
|
||
|
'U': USE_CHAR_CODE,
|
||
|
'V': USE_CHAR_CODE,
|
||
|
'W': USE_CHAR_CODE,
|
||
|
'X': USE_CHAR_CODE,
|
||
|
'Y': USE_CHAR_CODE,
|
||
|
'Z': USE_CHAR_CODE,
|
||
|
|
||
|
' ': '(NaN+[]["filter"])[11]',
|
||
|
'!': USE_CHAR_CODE,
|
||
|
'"': '("")["fontcolor"]()[12]',
|
||
|
'#': USE_CHAR_CODE,
|
||
|
'$': USE_CHAR_CODE,
|
||
|
'%': 'Function("return escape")()("<")[0]',
|
||
|
'&': USE_CHAR_CODE,
|
||
|
'\'': USE_CHAR_CODE,
|
||
|
'(': '(false+[]["filter"])[20]',
|
||
|
')': '(true+[]["filter"])[20]',
|
||
|
'*': USE_CHAR_CODE,
|
||
|
'+': '(+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[2]',
|
||
|
',': '[[]]["concat"]([[]])+""',
|
||
|
'-': '(+(.+[0000000001])+"")[2]',
|
||
|
'.': '(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]',
|
||
|
'/': '(false+[+false])["italics"]()[10]',
|
||
|
':': '(RegExp()+"")[3]',
|
||
|
';': USE_CHAR_CODE,
|
||
|
'<': '("")["italics"]()[0]',
|
||
|
'=': '("")["fontcolor"]()[11]',
|
||
|
'>': '("")["italics"]()[2]',
|
||
|
'?': '(RegExp()+"")[2]',
|
||
|
'@': USE_CHAR_CODE,
|
||
|
'[': '(GLOBAL+"")[0]',
|
||
|
'\\': USE_CHAR_CODE,
|
||
|
']': USE_CHAR_CODE,
|
||
|
'^': USE_CHAR_CODE,
|
||
|
'_': USE_CHAR_CODE,
|
||
|
'`': USE_CHAR_CODE,
|
||
|
'{': '(NaN+[]["filter"])[21]',
|
||
|
'|': USE_CHAR_CODE,
|
||
|
'}': USE_CHAR_CODE,
|
||
|
'~': USE_CHAR_CODE
|
||
|
};
|
||
|
|
||
|
var GLOBAL = 'Function("return this")()';
|
||
|
|
||
|
function fillMissingChars(){
|
||
|
for (var key in MAPPING){
|
||
|
if (MAPPING[key] === USE_CHAR_CODE){
|
||
|
MAPPING[key] = 'Function("return unescape")()("%"'+ key.charCodeAt(0).toString(16).replace(/(\d+)/g, "+($1)+\"") + '")';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function fillMissingDigits(){
|
||
|
var output, number, i;
|
||
|
|
||
|
for (number = 0; number < 10; number++){
|
||
|
|
||
|
output = "+[]";
|
||
|
|
||
|
if (number > 0){ output = "+!" + output; }
|
||
|
for (i = 1; i < number; i++){ output = "+!+[]" + output; }
|
||
|
if (number > 1){ output = output.substr(1); }
|
||
|
|
||
|
MAPPING[number] = "[" + output + "]";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function replaceMap(){
|
||
|
var character = "", value, original, i, key;
|
||
|
|
||
|
function replace(pattern, replacement){
|
||
|
value = value.replace(
|
||
|
new RegExp(pattern, "gi"),
|
||
|
replacement
|
||
|
);
|
||
|
}
|
||
|
|
||
|
function digitReplacer(_,x) { return MAPPING[x]; }
|
||
|
|
||
|
function numberReplacer(_,y) {
|
||
|
var values = y.split("");
|
||
|
var head = +(values.shift());
|
||
|
var output = "+[]";
|
||
|
|
||
|
if (head > 0){ output = "+!" + output; }
|
||
|
for (i = 1; i < head; i++){ output = "+!+[]" + output; }
|
||
|
if (head > 1){ output = output.substr(1); }
|
||
|
|
||
|
return [output].concat(values).join("+").replace(/(\d)/g, digitReplacer);
|
||
|
}
|
||
|
|
||
|
for (i = MIN; i <= MAX; i++){
|
||
|
character = String.fromCharCode(i);
|
||
|
value = MAPPING[character];
|
||
|
if(!value) {continue;}
|
||
|
original = value;
|
||
|
|
||
|
for (key in CONSTRUCTORS){
|
||
|
replace("\\b" + key, CONSTRUCTORS[key] + '["constructor"]');
|
||
|
}
|
||
|
|
||
|
for (key in SIMPLE){
|
||
|
replace(key, SIMPLE[key]);
|
||
|
}
|
||
|
|
||
|
replace('(\\d\\d+)', numberReplacer);
|
||
|
replace('\\((\\d)\\)', digitReplacer);
|
||
|
replace('\\[(\\d)\\]', digitReplacer);
|
||
|
|
||
|
replace("GLOBAL", GLOBAL);
|
||
|
replace('\\+""', "+[]");
|
||
|
replace('""', "[]+[]");
|
||
|
|
||
|
MAPPING[character] = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function replaceStrings(){
|
||
|
var regEx = /[^\[\]\(\)\!\+]{1}/g,
|
||
|
all, value, missing,
|
||
|
count = MAX - MIN;
|
||
|
|
||
|
function findMissing(){
|
||
|
var all, value, done = false;
|
||
|
|
||
|
missing = {};
|
||
|
|
||
|
for (all in MAPPING){
|
||
|
|
||
|
value = MAPPING[all];
|
||
|
|
||
|
if (value.match(regEx)){
|
||
|
missing[all] = value;
|
||
|
done = true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return done;
|
||
|
}
|
||
|
|
||
|
function mappingReplacer(a, b) {
|
||
|
return b.split("").join("+");
|
||
|
}
|
||
|
|
||
|
function valueReplacer(c) {
|
||
|
return missing[c] ? c : MAPPING[c];
|
||
|
}
|
||
|
|
||
|
for (all in MAPPING){
|
||
|
MAPPING[all] = MAPPING[all].replace(/\"([^\"]+)\"/gi, mappingReplacer);
|
||
|
}
|
||
|
|
||
|
while (findMissing()){
|
||
|
for (all in missing){
|
||
|
value = MAPPING[all];
|
||
|
value = value.replace(regEx, valueReplacer);
|
||
|
|
||
|
MAPPING[all] = value;
|
||
|
missing[all] = value;
|
||
|
}
|
||
|
|
||
|
if (count-- === 0){
|
||
|
console.error("Could not compile the following chars:", missing);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function encode(input, wrapWithEval){
|
||
|
var output = [];
|
||
|
|
||
|
if (!input){
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
var r = "";
|
||
|
for (var i in SIMPLE) {
|
||
|
r += i + "|";
|
||
|
}
|
||
|
r+=".";
|
||
|
|
||
|
input.replace(new RegExp(r, 'g'), function(c) {
|
||
|
var replacement = SIMPLE[c];
|
||
|
if (replacement) {
|
||
|
output.push("[" + replacement + "]+[]");
|
||
|
} else {
|
||
|
replacement = MAPPING[c];
|
||
|
if (replacement){
|
||
|
output.push(replacement);
|
||
|
} else {
|
||
|
if (c === "J") {
|
||
|
replacement =
|
||
|
"([][" + encode("filter") + "]" +
|
||
|
"[" + encode("constructor") + "]" +
|
||
|
"(" + encode("return new Date(200000000)") + ")()+[])[!+[]+!+[]+!+[]+!+[]]";
|
||
|
|
||
|
output.push(replacement);
|
||
|
MAPPING[c] = replacement;
|
||
|
} else if (c === "O") {
|
||
|
replacement =
|
||
|
"([][" + encode("filter") + "]" +
|
||
|
"[" + encode("constructor") + "]" +
|
||
|
"(" + encode("return new Date(24000000000)") + ")()+[])[!+[]+!+[]+!+[]+!+[]]";
|
||
|
|
||
|
output.push(replacement);
|
||
|
MAPPING[c] = replacement;
|
||
|
} else {
|
||
|
replacement =
|
||
|
"([]+[])[" + encode("constructor") + "]" +
|
||
|
"[" + encode("fromCharCode") + "]" +
|
||
|
"(" + encode(c.charCodeAt(0) + "") + ")";
|
||
|
|
||
|
output.push(replacement);
|
||
|
MAPPING[c] = replacement;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
output = output.join("+");
|
||
|
|
||
|
if (/^\d$/.test(input)){
|
||
|
output += "+[]";
|
||
|
}
|
||
|
|
||
|
if (wrapWithEval){
|
||
|
output = "[][" + encode("filter") + "]" +
|
||
|
"[" + encode("constructor") + "]" +
|
||
|
"(" + output + ")()";
|
||
|
}
|
||
|
|
||
|
return output;
|
||
|
}
|
||
|
|
||
|
fillMissingDigits();
|
||
|
fillMissingChars();
|
||
|
replaceMap();
|
||
|
replaceStrings();
|
||
|
|
||
|
self.JSFuck = {
|
||
|
encode: encode
|
||
|
};
|
||
|
})(typeof(exports) === "undefined" ? window : exports);
|
||
|
|
||
|
function packify( input ) {
|
||
|
var script = input,
|
||
|
len,
|
||
|
i,
|
||
|
chunk,
|
||
|
chunk_size,
|
||
|
re,
|
||
|
matches,
|
||
|
savings,
|
||
|
|
||
|
potential,
|
||
|
potentials = {},
|
||
|
potentials_arr = [],
|
||
|
|
||
|
map = '',
|
||
|
char_code,
|
||
|
char,
|
||
|
output;
|
||
|
|
||
|
// Single quotes need to be escaped, so use double-quotes in your input
|
||
|
// source whenever possible.
|
||
|
script = script.replace( /'/g, "\\'" );
|
||
|
|
||
|
// Replace any non-space whitespace with spaces (shouldn't be necessary).
|
||
|
script = script.replace( /\s+/g, ' ' );
|
||
|
|
||
|
// Return number of chars saved by replacing `count` occurences of `string`.
|
||
|
function get_savings( string, count ) {
|
||
|
return ( string.length - 1 ) * ( count - 1 ) - 2;
|
||
|
};
|
||
|
|
||
|
// Just trying to keep things DRY here... Let's match some patterns!
|
||
|
function get_re_match( pattern, text ) {
|
||
|
var re = RegExp( pattern.replace( /(\W)/g, '\\$1' ), 'g' );
|
||
|
return [
|
||
|
text.match( re ) || [],
|
||
|
re
|
||
|
];
|
||
|
};
|
||
|
|
||
|
// Look for recurring patterns between 2 and 20 characters in length (could
|
||
|
// have been between 2 and len / 2, but that gets REALLY slow).
|
||
|
for ( chunk_size = 2, len = script.length; chunk_size <= 20; chunk_size++ ) {
|
||
|
|
||
|
// Start at the beginning of the input string, go to the end.
|
||
|
for ( i = 0; i < len - chunk_size; i++ ) {
|
||
|
|
||
|
// Grab the "chunk" at the current position.
|
||
|
chunk = script.substr( i, chunk_size );
|
||
|
|
||
|
if ( !potentials[ chunk ] ) {
|
||
|
// Find the number of chunk matches in the input script.
|
||
|
matches = get_re_match( chunk, script )[0];
|
||
|
|
||
|
// If any matches, save this chunk as a potential pattern. By using an
|
||
|
// object instead of an array, we don't have to worry about uniquing
|
||
|
// the array as new potentials will just overwrite previous potentials.
|
||
|
if ( get_savings( chunk, matches.length ) >= 0 ) {
|
||
|
potentials[ chunk ] = matches.length;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Since we'll need to sort the potentials, create an array from the object.
|
||
|
for ( i in potentials ) {
|
||
|
potentials.hasOwnProperty( i )
|
||
|
&& potentials_arr.push({ pattern: i, count: potentials[ i ] });
|
||
|
}
|
||
|
|
||
|
// Potentials get sorted first by byte savings, then by # of occurrences
|
||
|
// (favoring smaller count, longer patterns), then lexicographically.
|
||
|
function sort_potentials( a, b ) {
|
||
|
return get_savings( b.pattern, b.count ) - get_savings( a.pattern, a.count )
|
||
|
|| a.count - b.count
|
||
|
|| ( a.pattern < b.pattern ? -1 : a.pattern > b.pattern ? 1 : 0 );
|
||
|
};
|
||
|
|
||
|
// Loop over all the potential patterns, unless we run out of replacement
|
||
|
// chars first. Dealing with 7-bit ASCII, valid replacement chars are 1-31
|
||
|
// & 127 (excluding ASCII 10 & 13).
|
||
|
for ( char_code = 0; potentials_arr.length && char_code < 127; ) {
|
||
|
|
||
|
// Re-calculate match counts.
|
||
|
for ( i = 0, len = potentials_arr.length; i < len; i++ ) {
|
||
|
potential = potentials_arr[i];
|
||
|
matches = get_re_match( potential.pattern, script )[0];
|
||
|
potential.count = matches.length;
|
||
|
}
|
||
|
|
||
|
// Sort the array of potentials such that replacements that will yield the
|
||
|
// highest byte savings come first.
|
||
|
potentials_arr.sort( sort_potentials );
|
||
|
|
||
|
// Get the current best potential replacement.
|
||
|
potential = potentials_arr.shift();
|
||
|
|
||
|
// Find all chunk matches in the input string.
|
||
|
chunk = potential.pattern;
|
||
|
matches = get_re_match( chunk, script );
|
||
|
re = matches[1];
|
||
|
matches = matches[0];
|
||
|
|
||
|
// Ensure that replacing this potential pattern still actually saves bytes.
|
||
|
savings = get_savings( chunk, matches.length );
|
||
|
if ( savings >= 0 ) {
|
||
|
|
||
|
// Increment the current replacement character.
|
||
|
char_code = ++char_code == 10 ? 11
|
||
|
: char_code == 13 ? 14
|
||
|
: char_code == 32 ? 127
|
||
|
: char_code;
|
||
|
|
||
|
// Get the replacement char.
|
||
|
char = String.fromCharCode( char_code );
|
||
|
|
||
|
//console.log( char_code, char, matches.length, chunk, savings );
|
||
|
|
||
|
// Replace the pattern with the replacement character.
|
||
|
script = script.replace( re, char );
|
||
|
|
||
|
// Add the char + pattern combo into the map of replacements.
|
||
|
map += char + chunk;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// For each group of 1 low ASCII char / 1+ regular ASCII chars combo in the
|
||
|
// map string, replace the low ASCII char in the script string with the
|
||
|
// remaining regular ASCII chars, then eval the script string. Using with in
|
||
|
// this manner ensures that the temporary _ var won't be leaked.
|
||
|
output = ""
|
||
|
+ "with({_:'" + script + "'})"
|
||
|
+ "'" + map + "'.replace(/.([ -~]+)/g,function(x,y){"
|
||
|
+ "_=_.replace(RegExp(x[0],'g'),y)"
|
||
|
+ "}),"
|
||
|
+ "eval(_)";
|
||
|
|
||
|
if ( eval( output.replace( 'eval(_)', '_' ) ) === input ) {
|
||
|
// If the output *actually* evals to the input string, packing was
|
||
|
// successful. Log some useful stats and return the output.
|
||
|
|
||
|
return output;
|
||
|
|
||
|
} else {
|
||
|
// Otherwise, exit with an error.
|
||
|
console.log( 'Error!' );
|
||
|
return input;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
function xor_str(string, key) {
|
||
|
var answer = "";
|
||
|
for(i=0;i<string.length;i++) {
|
||
|
answer += String.fromCharCode(key^string.charCodeAt(i));
|
||
|
}
|
||
|
return answer;
|
||
|
}
|
||
|
|
||
|
function xor_xStr(code,key) {
|
||
|
crypt = "";
|
||
|
for(i=0;i<code.length;i++) {
|
||
|
crypt+=String.fromCharCode(key.charCodeAt(i%key.length)^code.charCodeAt(i));
|
||
|
}
|
||
|
return crypt;
|
||
|
}
|
||
|
|
||
|
function hash(string) {
|
||
|
v = string;
|
||
|
h=0;for (b = 0; b < v.length; b++) {ch=v.charCodeAt(b);h=((h<<5)-h)+ch;h=h&h;} console.log(h);
|
||
|
return h;
|
||
|
}
|
||
|
|
||
|
debug = true;
|
||
|
function d(text) {
|
||
|
if (debug) {
|
||
|
console.log(text);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function run() {
|
||
|
d("starting...");
|
||
|
key = Math.floor(Math.random() * 10000000 + 9999999);
|
||
|
d("Key: " + key);
|
||
|
unreadable = document.getElementById("unreadable").checked;
|
||
|
d("CryptonIon: " + unreadable);
|
||
|
buffer = document.getElementById("buffer").checked;
|
||
|
d("Front-End Buffer: " + buffer);
|
||
|
emulatePrev = document.getElementById("emulatePrev").checked;
|
||
|
d("Emulation Prevention: " + emulatePrev);
|
||
|
hackerMsg = false;
|
||
|
if(document.getElementById("hackerMsg").checked) {
|
||
|
hackerMsg = document.getElementById("hackerMsgTxt").value;
|
||
|
}
|
||
|
d("hackerMsg: " + hackerMsg);
|
||
|
document.getElementById("divOut").innerHTML = "<h3><i class='fa fa-code' aria-hidden='true'></i> | Put this code into the HTML-Code of your Page (You also can put stuff inside this div-tag, but dont change attributes!):</h3> <div class='jumbotron'><pre><div id='key' class='"+key+"'></div></pre></div>";
|
||
|
code = document.getElementById("code").value;
|
||
|
code = DodoxCrypt(code, key, unreadable, buffer, emulatePrev, hackerMsg);
|
||
|
document.getElementById("code").value = code;
|
||
|
document.getElementById("title").innerHTML = "<h3><i class='fa fa-code' aria-hidden='true'></i> | Copy into your .js-File or put in script-tag:</h3>";
|
||
|
finished = true;
|
||
|
$(".progress").fadeIn(2000);
|
||
|
$("#controlls").hide();
|
||
|
$("#settings").hide();
|
||
|
$("#calcSize").hide();
|
||
|
$("#info").hide();
|
||
|
$(".nav").hide();
|
||
|
//$("h4").hide();
|
||
|
}
|
||
|
|
||
|
function DodoxCrypt(code, key, unreadable, buffer, emulatePrev, hackerMsg) {
|
||
|
var dateCheckU = "[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]](!+[]+!+[]+!+[]+[
|
||
|
var dateCheck = "if(Date.now()-1000>t){eval(atob('"+btoa("b=0;c=0;h=0;j=0;v=0;a=0;t=0;")+"'));} t=Date.now();"
|
||
|
|
||
|
if (hackerMsg) {
|
||
|
falseCode = "tf = '679672154853'; n=console; var console={log: function(u){clear();n.error('"+hackerMsg+"')}}; "
|
||
|
} else {
|
||
|
falseCode = "tf = '679672154853'; var console={log: function(u){clear();}}; "
|
||
|
}
|
||
|
if (emulatePrev) { falseCode = falseCode + "if (window.location.protocol=='file:'||window.location.hostname=='') {c=0;t=0;} "; }
|
||
|
|
||
|
sizeA = code.length;
|
||
|
d("adding var nullifier...");
|
||
|
code = code + falseCode + "b=0;c=0;h=0;n=0;m=0;j=0;v=0;y=0;a=0;t=0;delete v; delete t; delete c;";
|
||
|
d("packing code...");
|
||
|
code = packify(code);
|
||
|
d("hidding eval...");
|
||
|
code = code.replace("eval", "y");
|
||
|
d("adding BufferOverflow-Vuln-String");
|
||
|
code = code + "/*b=(c*g)/n-y+'BufferOverflow'+t*t+'AAAAA'+h*v*t/b*/";
|
||
|
d("base64 encrypting...");
|
||
|
code = "eval(atob('"+btoa(code)+"'));";
|
||
|
console.log(code);
|
||
|
hash = hash(btoa(code));
|
||
|
d("hash: "+hash);
|
||
|
staticHash = -1202054703;
|
||
|
d("staticHash: "+staticHash);
|
||
|
falseCodeB = "h=0;y=v;g=v;for (b = 0; b < g.length; b++) {ch=g.charCodeAt(b);y=eval;h=((h<<5)-h)+ch;h=h&h;}"+dateCheck+" if (h != '"+hash+"') {c='0'; alert("+hash+"+'!='+h); eval=''; v='89235967154757386737453274518730547385872050364752025385708503310452370542056342';c=0;x=0;h=0;} ";
|
||
|
d("base64 encrypting with double dateCheck, falseCode and hash-check...");
|
||
|
if (unreadable) {
|
||
|
code = dateCheckU+"o=0;for (p = 0; p < f.length; p++) {co=f.charCodeAt(p);o=((o<<5)-h)+co;o=o&o;} if(h!='"+staticHash+"') {v=0;c=0;x=0;alert('static hash error: '+h); } v='" + btoa(code) + "'; "+"eval(atob('"+btoa(dateCheck)+"')); "+falseCodeB+"eval(atob(v)); "
|
||
|
} else {
|
||
|
code = dateCheck+"o=0;for (p = 0; p < f.length; p++) {co=f.charCodeAt(p);o=((o<<5)-h)+co;o=o&o;} if(h!='"+staticHash+"') {v=0;c=0;x=0;alert('static hash error: '+h); } v='" + btoa(code) + "'; "+"eval(atob('"+btoa(dateCheck)+"')); "+falseCodeB+"eval(atob(v)); "
|
||
|
}
|
||
|
d("xoring...");
|
||
|
code = xor_str(code, key);
|
||
|
d("adding xor-decrypter with div-key-extractor...");
|
||
|
//setting f
|
||
|
code = "c='" + code + "';b=c;var a='';for(i=0;i<" + code.length + ";++i) {a+=String.fromCharCode(document.getElementById('key').className^c.charCodeAt(i));}" + falseCode + "document.getElementById('key').className ='div';f='eval(decodeX(3767267346766324356724967));'; eval(a); f='for(i=0;i<c.length;i++) {a+=String.fromCharCode(314159Yc.charCodeAt(i)); eval(a)'";
|
||
|
key = Math.floor(Math.random() * 9000000 + 999999);
|
||
|
if (!unreadable) {
|
||
|
d("xoring");
|
||
|
code = xor_str(code, key);
|
||
|
d("adding xor-decrypter with dateCheck");
|
||
|
code = "c='" + code + "';"+dateCheck+"var a='';for(i=0;i<" + code.length + ";i++) {a+=String.fromCharCode("+key+"^c.charCodeAt(i));} eval(a);"
|
||
|
}
|
||
|
d("pi-xoring");
|
||
|
tracking = "td={ip_address:'${keen.ip}',user_agent:'${keen.user_agent}',href:window.location.href};td=btoa(JSON.stringify(td));xhr=new XMLHttpRequest();xhr.open('GET', 'https://api.keen.io/3.0/projects/572defc807271937a30dfa34/events/jsRun?api_key=519d6a7e6b8a069a4103b318bfa8635cb0ec6cef0f0726ba1b44856d8d6ebabe93d99b825c319e53e24f18c4f3f1f78ba5e0d5bf74400ad4713a3c686da80848b78c1ff53d1080c5ddb6d9225ccd211228adbf9e82c6b8ab9a2dc3c1557e776f&data='+td,true);xhr.send(null);";
|
||
|
|
||
|
code = tracking + code;
|
||
|
code = xor_str(code, 314159);
|
||
|
d("Shifting to HTML-legal chars-values...");
|
||
|
if (unreadable) {
|
||
|
d("running CryptoIon-Engine...");
|
||
|
code = "c=decodeURI('" + encodeURI(code) + "'); [][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[+!+[]]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]
|
||
|
} else {
|
||
|
d("adding xor-decryptor with datecheck [no CryptoIon]");
|
||
|
code = "c=decodeURI('" + encodeURI(code) + "');[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[+!+[]]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]
|
||
|
}
|
||
|
if (buffer) {
|
||
|
code = "[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+([][[]]+[])[+[]]+([][[]]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]](!+[]+!+[]+!+[]+[+!+[]])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]])()([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!
|
||
|
}
|
||
|
console.log("done!");
|
||
|
sizeB = code.length;
|
||
|
d("input size: "+sizeA+"\noutput size: "+sizeB+"\nthe file is now ca\n"+Math.floor((sizeB/sizeA)*100)/100+"-times as big");
|
||
|
|
||
|
return code;
|
||
|
}
|
||
|
|
||
|
function runPassCrypt() {
|
||
|
code = document.getElementById("code").value;
|
||
|
length = code.length;
|
||
|
//alert("This uses buffered key-repeating XOR: Dont encode big chunks of same char (space), dont use same key for different scripts, use don't use shot Passwords and don't publish (parts) of the code in unencrypted to make shure, the encryption keeps 100% save!");
|
||
|
key = prompt("Please enter Password for script:");
|
||
|
//document.getElementById("code").value = passCryptS(code,key);
|
||
|
document.getElementById("code").value = passCryptUltron(code,key);
|
||
|
alert("File is now " + Math.floor(document.getElementById("code").value.length / length) + "-times as big...");
|
||
|
}
|
||
|
|
||
|
function runPassCryptHTML() {
|
||
|
r = document.getElementById("code").value;
|
||
|
arr = r.split("\n");
|
||
|
l = "";
|
||
|
for (i = 0; i < arr.length; i++) {
|
||
|
l += "document.write(\"";
|
||
|
l += arr[i].replace(/\"/g, "\\\"")
|
||
|
.replace(/\//g, "\\/");
|
||
|
l += "\");";
|
||
|
l += "\n";
|
||
|
}
|
||
|
key = prompt("Please enter Password for script:");
|
||
|
document.getElementById("code").value = passCryptUltron(l,key);
|
||
|
}
|
||
|
|
||
|
function passCrypt(code,key) {
|
||
|
code = "delete c; delete key;alert('Correct Password! Access granted!');"+code;
|
||
|
code = "crypt=decodeURI(atob('"+btoa(encodeURI(xor_str(packify(code),key)))+"'));c='';for(i=0;i<crypt.length;i++){c+=String.fromCharCode(key^crypt.charCodeAt(i));} eval(c);";
|
||
|
code = "key=prompt('Please enter the password to decrypt and run the script!');"+code;
|
||
|
code+="delete c; delete key;";
|
||
|
return code;
|
||
|
}
|
||
|
|
||
|
function breakPass(code) {
|
||
|
code=code.split("decodeURI(atob('")[1];
|
||
|
code=code.split("'));c='';f")[0];
|
||
|
code=decodeURI(atob(code));
|
||
|
console.log(code);
|
||
|
key = [];
|
||
|
krypton = "with({_:";
|
||
|
for (i=0;i<krypton.length;i++){
|
||
|
key[i] = code.charCodeAt(i)^krypton.charCodeAt(i);
|
||
|
}
|
||
|
found=true;
|
||
|
code=xor_str(code,key[0]);
|
||
|
code = code.replace("eval","out=");
|
||
|
eval(code);
|
||
|
d("returning code...");
|
||
|
return [out,key[0]];
|
||
|
}
|
||
|
|
||
|
function passCryptS(code,key,pro) {
|
||
|
console.warn("Uses XOR: If Someone gets your original Source code, he can calculate the Key! (Very easy)");
|
||
|
if (pro) console.error("PRO-Mode activated: Use this for stronger encryption. With activated PRO-Mode please delete the vars 'key' and 'c' in your code and buffer it.");
|
||
|
//buffer calculating
|
||
|
bVar = "";
|
||
|
minBufferVarSize = 3;
|
||
|
maxBufferVarSize = 80;
|
||
|
buffSize = Math.floor(Math.random()*(maxBufferVarSize-minBufferVarSize)+minBufferVarSize);
|
||
|
for (i=0;i<buffSize;i++) {
|
||
|
bVar += btoa(Math.floor(Math.random()*64+64))[Math.floor(Math.random()*2)+1];
|
||
|
}
|
||
|
//main
|
||
|
key = encodeURI(key);
|
||
|
code = "delete c; delete key;alert('Correct Password! Access granted!');"+code;
|
||
|
code=bVar+"=0;"+packify(code)+";"+bVar+"=0;";
|
||
|
console.log(code);
|
||
|
//code = packify(code);
|
||
|
|
||
|
crypt="";
|
||
|
|
||
|
for(i=0;i<code.length;i++) {
|
||
|
crypt+=String.fromCharCode(key.charCodeAt(i%key.length)^code.charCodeAt(i));
|
||
|
}
|
||
|
|
||
|
code = "crypt=decodeURI(atob('"+btoa(encodeURI(crypt))+"'));c='';for(i=0;i<crypt.length;i++){c+=String.fromCharCode(key.charCodeAt(i%key.length)^crypt.charCodeAt(i));} eval(c);";
|
||
|
code = "key=encodeURI(prompt('Please enter the password to decrypt and run the script!'));"+code;
|
||
|
return code;
|
||
|
}
|
||
|
|
||
|
function breakPassS(code) {
|
||
|
d("Starting breakPass 2.0");
|
||
|
maxBufferLength = 100;
|
||
|
maxBufferLength+=3;
|
||
|
code=code.split("decodeURI(atob('")[1];
|
||
|
code=code.split("'));c='';f")[0];
|
||
|
code=decodeURI(atob(code));
|
||
|
keyX=[];
|
||
|
keyOut="";
|
||
|
for (r=0;r<maxBufferLength;r++){
|
||
|
key = [];
|
||
|
krypton = ".replace(/.([ -~]+)/g,function(x,y){_=_.replace(RegExp(x[0],'g'),y)}),eval(_);";
|
||
|
for (i=0;i<krypton.length;i++){
|
||
|
key[i] = code.charCodeAt(code.length-krypton.length-maxBufferLength+r+i)^krypton.charCodeAt(i);
|
||
|
}
|
||
|
out = "";
|
||
|
for (i=0;i<key.length;i++){
|
||
|
out += String.fromCharCode(key[i]);
|
||
|
if (keyX[r]) {
|
||
|
keyX[r]+=String.fromCharCode(key[i]);
|
||
|
} else {
|
||
|
keyX[r]=String.fromCharCode(key[i]);
|
||
|
}
|
||
|
}
|
||
|
keyOut+=" | "+r+"> "+keyX[r];
|
||
|
}
|
||
|
console.log(keyX)
|
||
|
for (l = 2; l < code.length; l++) {
|
||
|
console.log(l);
|
||
|
for (k in keyX) {
|
||
|
prep = keyX[k].slice(l-1,2*l-1);
|
||
|
dies = keyX[k].slice(2*l-1,3*l-1);
|
||
|
if (prep == dies) {
|
||
|
trie = keyX[k].slice(3*l-1,4*l-1);
|
||
|
if (prep == trie) {
|
||
|
//xor_xStr
|
||
|
for (p = 0; p < l; p++) {
|
||
|
convKey = prep.slice(p) + prep.slice(0,-(prep.length-p));
|
||
|
sol = xor_xStr(code,convKey);
|
||
|
if (sol.search("Correct Password!")!=-1) {
|
||
|
//console.log(sol)
|
||
|
sol = sol.split(sol.split("=0;")[0])[1].slice(3);
|
||
|
console.log(sol)
|
||
|
sol = sol.replace(")}),eval(_);",")}),out=(_);")
|
||
|
eval(sol);
|
||
|
return [out.slice(64),convKey];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function passCryptUltron(code,key) {
|
||
|
//buffer calculating
|
||
|
bVar = "";
|
||
|
minBufferVarSize = 3;
|
||
|
maxBufferVarSize = 8;
|
||
|
buffSize = Math.floor(Math.random()*(maxBufferVarSize-minBufferVarSize)+minBufferVarSize);
|
||
|
for (i=0;i<buffSize;i++) {
|
||
|
bVar += btoa(Math.floor(Math.random()*64+64))[Math.floor(Math.random()*2)+1];
|
||
|
}
|
||
|
//main
|
||
|
key = encodeURI(key);
|
||
|
code = "delete c; delete key;alert('Correct Password! Access granted!');"+code;
|
||
|
code=bVar+"=0;"+packify(code)+";"+bVar+"=0;";
|
||
|
|
||
|
crypt="";
|
||
|
|
||
|
for(i=0;i<code.length;i++) {
|
||
|
crypt+=String.fromCharCode(key.charCodeAt(i%key.length)^code.charCodeAt(i));
|
||
|
}
|
||
|
|
||
|
//decryption
|
||
|
code = "prot='';crypt=decodeURI(atob('"+btoa(encodeURI(crypt))+"'));c='';for(i=0;i<crypt.length;i++){c+=String.fromCharCode(key.charCodeAt(i%key.length)^crypt.charCodeAt(i));} eval(c);";
|
||
|
|
||
|
code = 'function prot(a,b){for(var e,c=[],d=0,f="",g=0;g<256;g++)c[g]=g;for(g=0;g<256;g++)d=(d+c[g]+a.charCodeAt(g%a.length))%256,e=c[g],c[g]=c[d],c[d]=e;g=0,d=0;for(var h=0;h<b.length;h++)g=(g+1)%256,d=(d+c[g])%256,e=c[g],c[g]=c[d],c[d]=e,f+=String.fromCharCode(b.charCodeAt(h)^c[(c[g]+c[d])%256]);return f}' + "crypt=decodeURI(atob('" + btoa(encodeURI(rc4(key, code))) + "'));eval(prot(key,crypt));"
|
||
|
|
||
|
//key input
|
||
|
code = "key=encodeURI(prompt('Please enter the password to decrypt and run the script!'));"+code;
|
||
|
return packify(code);
|
||
|
}
|
||
|
|
||
|
function rc4(key, str) {
|
||
|
var s = [], j = 0, x, res = '';
|
||
|
for (var i = 0; i < 256; i++) {
|
||
|
s[i] = i;
|
||
|
}
|
||
|
for (i = 0; i < 256; i++) {
|
||
|
j = (j + s[i] + key.charCodeAt(i % key.length)) % 256;
|
||
|
x = s[i];
|
||
|
s[i] = s[j];
|
||
|
s[j] = x;
|
||
|
}
|
||
|
i = 0;
|
||
|
j = 0;
|
||
|
for (var y = 0; y < str.length; y++) {
|
||
|
i = (i + 1) % 256;
|
||
|
j = (j + s[i]) % 256;
|
||
|
x = s[i];
|
||
|
s[i] = s[j];
|
||
|
s[j] = x;
|
||
|
res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);
|
||
|
}
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
function jsUnCrypt() {
|
||
|
d("starting jsUnCrypt...");
|
||
|
code = document.getElementById("code").value;
|
||
|
d("code: "+code);
|
||
|
while(code.search("eval")!=-1||code.search("document.write")!=-1) {
|
||
|
while(code.search("eval")!=-1||code.search("document.write")!=-1) {
|
||
|
if (code.search("eval")!=-1) {
|
||
|
d("found eval: "+code);
|
||
|
code = code.replace("eval","out=out+");
|
||
|
} else if (code.search("document.write")!=-1) {
|
||
|
d("found document.write"+code);
|
||
|
code = code.replace("document.write","out=out+");
|
||
|
}
|
||
|
}
|
||
|
d("evaling code: "+code);
|
||
|
out = "";
|
||
|
code = eval(code);
|
||
|
code = out;
|
||
|
d("evaluated to: "+code);
|
||
|
}
|
||
|
d("beautifying code..."+code);
|
||
|
code.replace(";",";\n");
|
||
|
d("done: "+code);
|
||
|
document.getElementById("code").value = code;
|
||
|
}
|
||
|
|
||
|
$(".progress").hide();
|
||
|
document.getElementById("unreadable").checked = true;
|
||
|
document.getElementById("buffer").checked = true;
|
||
|
var finished = false;
|
||
|
|
||
|
$('#calcSize').hide();
|
||
|
$('#settings').hide();
|
||
|
|
||
|
function calc(){
|
||
|
x=packify(document.getElementById("code").value).length;
|
||
|
x=x*311.544;
|
||
|
//36328
|
||
|
x=Math.floor(x);
|
||
|
if (document.getElementById("unreadable").checked) x+=1189048;
|
||
|
if (document.getElementById("buffer").checked) x+=56354;
|
||
|
if (document.getElementById("emulatePrev").checked) x+=1746;
|
||
|
if (document.getElementById("hackerMsg").checked) x+=parseInt(parseInt(45)+parseInt(document.getElementById("hackerMsgTxt").value.length));
|
||
|
packL = packify(document.getElementById("code").value).length;
|
||
|
befL = document.getElementById("code").value.length;
|
||
|
document.getElementById("cCharsBefore").innerHTML = befL;
|
||
|
document.getElementById("cCharsPackify").innerHTML = packL;
|
||
|
document.getElementById("cCharsCurSettings").innerHTML = x;
|
||
|
|
||
|
document.getElementById("xCharsBefore").innerHTML = "Size*1";
|
||
|
document.getElementById("xCharsPackify").innerHTML = "Size*"+Math.floor((packL/befL)*100)/100;
|
||
|
document.getElementById("xCharsCurSettings").innerHTML = "Size*"+Math.floor((x/befL)*100)/100;
|
||
|
}
|
||
|
setInterval(function(){
|
||
|
if (!finished) {
|
||
|
document.getElementById("hackerMsgChars").innerHTML = "Size: +"+parseInt(parseInt(45)+parseInt(document.getElementById("hackerMsgTxt").value.length))+" chars";
|
||
|
}
|
||
|
//1368658
|
||
|
}, 500);
|