Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- */
- (function() {
- function m(b) {
- var c = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(b) {
- var c = 16 * Math.random() | 0;
- return ("x" == b ? c : c & 3 | 8).toString(16)
- });
- b.fp_eval_id = c
- }
- function l(b) {
- var c;
- c = '\x3cscript src\x3d"http://pixelzirkus.gameforge.com/static/js/E6gg7P33.js"\x3e\x3c/script\x3e\x3cform id\x3d"gf_pz_form" action\x3d"http://pixelzirkus.gameforge.com/do/multi" method\x3d"POST" accept-charset\x3d"UTF-8"\x3e';
- b = JSON.stringify(b).replace(/&/g, "\x26amp;").replace(/</g, "\x26lt;").replace(/>/g, "\x26gt;").replace(/"/g,
- "\x26quot;").replace(/'/g, "\x26#039;");
- c = c + ('\x3cinput type\x3d"hidden" name\x3d"pixels" value\x3d"' + b + '" /\x3e') + "\x3c/form\x3e";
- c += "\x3cscript\x3e";
- c += 'var input_fp \x3d document.createElement("input"); input_fp.type \x3d "hidden"; input_fp.name \x3d "fingerprint"; input_fp.value \x3d "unknown"; document.getElementById("gf_pz_form").appendChild(input_fp); ';
- c += "try {";
- c += " input_fp.value \x3d new Fingerprint().get();";
- c += "} catch (e) {} ";
- c += 'document.getElementById("gf_pz_form").submit();';
- return c += "\x3c/script\x3e"
- }
- var h;
- window.setPixel = function(b, c) {
- try {
- m(b);
- h = c && document.getElementById(c) ? document.getElementById(c) : document.createElement("div");
- document.body.appendChild(h);
- var e = document.createElement("iframe");
- e.style.width = "0";
- e.style.height = "0";
- e.style.display = "block";
- e.style.border = "none";
- e.setAttribute("frameborder", "0");
- h.appendChild(e);
- var d = void 0 !== b.pz_debug_url ? b.pz_debug_url : "http://pixelzirkus.gameforge.com",
- a = "",
- a = a + "\x3cscript\x3einDapIF \x3d true;\x3c/script\x3e",
- a = a + ('\x3cscript src\x3d"' +
- d + '/static/js/E6gg7P33.js"\x3e\x3c/script\x3e'),
- f = "";
- try {
- f = JSON.stringify(b)
- } catch (l) {}
- var a = a + ("\x3cscript\x3evar meta_json \x3d '" + f + "';\x3c/script\x3e"),
- a = a + "\x3cscript\x3evar meta \x3d {}; try { meta \x3d JSON.parse(meta_json); } catch (e) {}\x3c/script\x3e",
- a = a + ('\x3cform id\x3d"gf_pz_form" action\x3d"' + d + '/do/simple" method\x3d"POST" accept-charset\x3d"UTF-8"\x3e'),
- k, g;
- for (k in b) - 1 === k.indexOf("pz_debug") && (g = b[k], g += "", g = g.replace(/"/g, ""), a += '\x3cinput type\x3d"hidden" name\x3d"' + k + '" value\x3d"' +
- g + '" /\x3e');
- b.page || (a += '\x3cinput type\x3d"hidden" name\x3d"page" value\x3d"' + window.location + '" /\x3e');
- b.referrer || (a += '\x3cinput type\x3d"hidden" name\x3d"referrer" value\x3d"' + document.referrer + '" /\x3e');
- a += "\x3c/form\x3e";
- a += "\x3cscript\x3e";
- a += 'var input_fp \x3d document.createElement("input"); input_fp.type \x3d "hidden"; input_fp.name \x3d "fingerprint"; input_fp.value \x3d "unknown"; document.getElementById("gf_pz_form").appendChild(input_fp);';
- a += 'var input_fp_exec \x3d document.createElement("input"); input_fp_exec.type \x3d "hidden"; input_fp_exec.name \x3d "fp_exec_time"; input_fp_exec.value \x3d -1; document.getElementById("gf_pz_form").appendChild(input_fp_exec);';
- a += "try {";
- a += " var startTime \x3d window.performance.now();";
- a += " var fp \x3d new Fingerprint().get();";
- a += " var exec_time \x3d window.performance.now() - startTime;";
- a += " input_fp.value \x3d fp;";
- a += " input_fp_exec.value \x3d exec_time.toFixed(2);";
- a += " parent.window.setSecondPixel(meta, fp);";
- a += "} catch (e) {}";
- a += 'document.getElementById("gf_pz_form").submit();';
- d = "\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + (a + "\x3c/script\x3e") + "\x3c/body\x3e";
- e.contentWindow.document.open();
- e.contentWindow.document.write(d);
- e.contentWindow.document.close()
- } catch (n) {}
- };
- window.setSecondPixel = function(b, c) {
- b.fingerprint = c;
- b.location = "fp_eval";
- b.fp2_config_id = 1;
- var e = document.createElement("iframe");
- e.style.width = "0";
- e.style.height = "0";
- e.style.display = "block";
- e.style.border = "none";
- e.setAttribute("frameborder", "0");
- h.appendChild(e);
- var d = void 0 !== b.pz_debug_url ? b.pz_debug_url : "http://pixelzirkus.gameforge.com",
- a;
- a = "\x3cscript\x3einDapIF \x3d true;\x3c/script\x3e" + ('\x3cscript src\x3d"' + d + '/static/js/GT7h68ox.js"\x3e\x3c/script\x3e');
- a += '\x3cform id\x3d"gf_pz_form" action\x3d"' + d + '/do/simple" method\x3d"POST" accept-charset\x3d"UTF-8"\x3e';
- for (var f in b) - 1 === f.indexOf("pz_debug") && (d = b[f], d += "", d = d.replace(/"/g, ""), a += '\x3cinput type\x3d"hidden" name\x3d"' + f + '" value\x3d"' + d + '" /\x3e');
- b.page || (a += '\x3cinput type\x3d"hidden" name\x3d"page" value\x3d"' + window.location + '" /\x3e');
- b.referrer || (a += '\x3cinput type\x3d"hidden" name\x3d"referrer" value\x3d"' + document.referrer + '" /\x3e');
- a += "\x3c/form\x3e";
- a += "\x3cscript\x3e";
- a += 'var input_fp \x3d document.createElement("input"); input_fp.type \x3d "hidden"; input_fp.name \x3d "fp2_value"; document.getElementById("gf_pz_form").appendChild(input_fp);';
- a += 'var input_fp_exec \x3d document.createElement("input"); input_fp_exec.type \x3d "hidden"; input_fp_exec.name \x3d "fp2_exec_time"; document.getElementById("gf_pz_form").appendChild(input_fp_exec);';
- a += "try {";
- a += " var startTime \x3d window.performance.now();";
- a += " new Fingerprint2().get(function(fingerprint) {";
- a += " input_fp.value \x3d fingerprint;";
- a += " var exec_time \x3d window.performance.now() - startTime;";
- a += " input_fp_exec.value \x3d exec_time.toFixed(2);";
- a +=
- ' document.getElementById("gf_pz_form").submit();';
- a += " })";
- a += "} catch (e) {}";
- a += "\x3c/script\x3e";
- a = "\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + a + "\x3c/body\x3e";
- e.contentWindow.document.open();
- e.contentWindow.document.write(a);
- e.contentWindow.document.close()
- };
- window.capturePixel = function(b) {
- b.page || (b.page = window.location.href);
- b.referrer || (b.referrer = document.referrer);
- return b
- };
- window.firePixels = function(b, c) {
- try {
- var e = void 0 !== c && document.getElementById(c) ? document.getElementById(c) :
- document.createElement("div"),
- d = document.createElement("iframe");
- d.style.width = "0";
- d.style.height = "0";
- d.style.display = "block";
- d.style.border = "none";
- d.setAttribute("frameborder", "0");
- document.body.appendChild(e);
- e.appendChild(d);
- d.contentWindow.document.open();
- d.contentWindow.document.write("\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + l(b) + "\x3c/body\x3e");
- d.contentWindow.document.close(); - 1 !== window.location.search.indexOf("pz_debug") && (window.pz_debug = b)
- } catch (a) {}
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement