Skip to content

Instantly share code, notes, and snippets.

@Kreijstal
Created September 30, 2013 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kreijstal/6757808 to your computer and use it in GitHub Desktop.
Save Kreijstal/6757808 to your computer and use it in GitHub Desktop.
Some obfuscated bullshit
function UNPACKER(U5C) {//Unpacks string packed arguments
//backtick and 3 arguments
//first argument, is length +5
//second and third argument is distance from current index..
//these arguments are in character form..
for (var b5C = "", z5C = 0, o5C = function(U5C, H5C) {
for (var x5C = 0, J5C = 0; J5C < H5C; J5C++) {
x5C *= 96;
var Z5C = U5C.charCodeAt(J5C);
if (Z5C >= 32 && Z5C <= 127) { //from 32 to 127
x5C += Z5C - 32;
}
}
return x5C;
}; z5C < U5C.length; ) {
if (U5C.charAt(z5C) != "`")
b5C += U5C.charAt(z5C++);
else {
if (U5C.charAt(z5C + 1) != "`") {
var r5C = o5C(U5C.charAt(z5C + 3), 1) + 5;
b5C += b5C.substr(b5C.length - o5C(U5C.substr(z5C + 1, 2), 2) - r5C, r5C);
z5C += 4;
} else {
b5C += "`";
z5C += 2;
}
}
}
return b5C;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment