Advertisement
Guest User

Untitled

a guest
Aug 26th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3. */
  4. (function() {
  5.     function m(b) {
  6.         var c = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(b) {
  7.             var c = 16 * Math.random() | 0;
  8.             return ("x" == b ? c : c & 3 | 8).toString(16)
  9.         });
  10.         b.fp_eval_id = c
  11.     }
  12.  
  13.     function l(b) {
  14.         var c;
  15.         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';
  16.         b = JSON.stringify(b).replace(/&/g, "\x26amp;").replace(/</g, "\x26lt;").replace(/>/g, "\x26gt;").replace(/"/g,
  17.             "\x26quot;").replace(/'/g, "\x26#039;");
  18.         c = c + ('\x3cinput type\x3d"hidden" name\x3d"pixels" value\x3d"' + b + '" /\x3e') + "\x3c/form\x3e";
  19.         c += "\x3cscript\x3e";
  20.         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); ';
  21.         c += "try {";
  22.         c += "    input_fp.value \x3d new Fingerprint().get();";
  23.         c += "} catch (e) {} ";
  24.         c += 'document.getElementById("gf_pz_form").submit();';
  25.         return c += "\x3c/script\x3e"
  26.     }
  27.     var h;
  28.     window.setPixel = function(b, c) {
  29.         try {
  30.             m(b);
  31.             h = c && document.getElementById(c) ? document.getElementById(c) : document.createElement("div");
  32.             document.body.appendChild(h);
  33.             var e = document.createElement("iframe");
  34.             e.style.width = "0";
  35.             e.style.height = "0";
  36.             e.style.display = "block";
  37.             e.style.border = "none";
  38.             e.setAttribute("frameborder", "0");
  39.             h.appendChild(e);
  40.             var d = void 0 !== b.pz_debug_url ? b.pz_debug_url : "http://pixelzirkus.gameforge.com",
  41.                 a = "",
  42.                 a = a + "\x3cscript\x3einDapIF \x3d true;\x3c/script\x3e",
  43.                 a = a + ('\x3cscript src\x3d"' +
  44.                     d + '/static/js/E6gg7P33.js"\x3e\x3c/script\x3e'),
  45.                 f = "";
  46.             try {
  47.                 f = JSON.stringify(b)
  48.             } catch (l) {}
  49.             var a = a + ("\x3cscript\x3evar meta_json \x3d '" + f + "';\x3c/script\x3e"),
  50.                 a = a + "\x3cscript\x3evar meta \x3d {}; try { meta \x3d JSON.parse(meta_json); } catch (e) {}\x3c/script\x3e",
  51.                 a = a + ('\x3cform id\x3d"gf_pz_form" action\x3d"' + d + '/do/simple" method\x3d"POST" accept-charset\x3d"UTF-8"\x3e'),
  52.                 k, g;
  53.             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"' +
  54.                 g + '" /\x3e');
  55.             b.page || (a += '\x3cinput type\x3d"hidden" name\x3d"page" value\x3d"' + window.location + '" /\x3e');
  56.             b.referrer || (a += '\x3cinput type\x3d"hidden" name\x3d"referrer" value\x3d"' + document.referrer + '" /\x3e');
  57.             a += "\x3c/form\x3e";
  58.             a += "\x3cscript\x3e";
  59.             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);';
  60.             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);';
  61.             a += "try {";
  62.             a += "    var startTime \x3d window.performance.now();";
  63.             a += "    var fp \x3d new Fingerprint().get();";
  64.             a += "    var exec_time \x3d window.performance.now() - startTime;";
  65.             a += "    input_fp.value \x3d fp;";
  66.             a += "    input_fp_exec.value \x3d exec_time.toFixed(2);";
  67.             a += "    parent.window.setSecondPixel(meta, fp);";
  68.             a += "} catch (e) {}";
  69.             a += 'document.getElementById("gf_pz_form").submit();';
  70.             d = "\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + (a + "\x3c/script\x3e") + "\x3c/body\x3e";
  71.             e.contentWindow.document.open();
  72.             e.contentWindow.document.write(d);
  73.             e.contentWindow.document.close()
  74.         } catch (n) {}
  75.     };
  76.     window.setSecondPixel = function(b, c) {
  77.         b.fingerprint = c;
  78.         b.location = "fp_eval";
  79.         b.fp2_config_id = 1;
  80.         var e = document.createElement("iframe");
  81.         e.style.width = "0";
  82.         e.style.height = "0";
  83.         e.style.display = "block";
  84.         e.style.border = "none";
  85.         e.setAttribute("frameborder", "0");
  86.         h.appendChild(e);
  87.         var d = void 0 !== b.pz_debug_url ? b.pz_debug_url : "http://pixelzirkus.gameforge.com",
  88.             a;
  89.         a = "\x3cscript\x3einDapIF \x3d true;\x3c/script\x3e" + ('\x3cscript src\x3d"' + d + '/static/js/GT7h68ox.js"\x3e\x3c/script\x3e');
  90.         a += '\x3cform id\x3d"gf_pz_form" action\x3d"' + d + '/do/simple" method\x3d"POST" accept-charset\x3d"UTF-8"\x3e';
  91.         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');
  92.         b.page || (a += '\x3cinput type\x3d"hidden" name\x3d"page" value\x3d"' + window.location + '" /\x3e');
  93.         b.referrer || (a += '\x3cinput type\x3d"hidden" name\x3d"referrer" value\x3d"' + document.referrer + '" /\x3e');
  94.         a += "\x3c/form\x3e";
  95.         a += "\x3cscript\x3e";
  96.         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);';
  97.         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);';
  98.         a += "try {";
  99.         a += "    var startTime \x3d window.performance.now();";
  100.         a += "    new Fingerprint2().get(function(fingerprint) {";
  101.         a += "        input_fp.value \x3d fingerprint;";
  102.         a += "        var exec_time \x3d window.performance.now() - startTime;";
  103.         a += "        input_fp_exec.value \x3d exec_time.toFixed(2);";
  104.         a +=
  105.             '        document.getElementById("gf_pz_form").submit();';
  106.         a += "    })";
  107.         a += "} catch (e) {}";
  108.         a += "\x3c/script\x3e";
  109.         a = "\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + a + "\x3c/body\x3e";
  110.         e.contentWindow.document.open();
  111.         e.contentWindow.document.write(a);
  112.         e.contentWindow.document.close()
  113.     };
  114.     window.capturePixel = function(b) {
  115.         b.page || (b.page = window.location.href);
  116.         b.referrer || (b.referrer = document.referrer);
  117.         return b
  118.     };
  119.     window.firePixels = function(b, c) {
  120.         try {
  121.             var e = void 0 !== c && document.getElementById(c) ? document.getElementById(c) :
  122.                 document.createElement("div"),
  123.                 d = document.createElement("iframe");
  124.             d.style.width = "0";
  125.             d.style.height = "0";
  126.             d.style.display = "block";
  127.             d.style.border = "none";
  128.             d.setAttribute("frameborder", "0");
  129.             document.body.appendChild(e);
  130.             e.appendChild(d);
  131.             d.contentWindow.document.open();
  132.             d.contentWindow.document.write("\x3chead\x3e\x3c/head\x3e\x3cbody\x3e" + l(b) + "\x3c/body\x3e");
  133.             d.contentWindow.document.close(); - 1 !== window.location.search.indexOf("pz_debug") && (window.pz_debug = b)
  134.         } catch (a) {}
  135.     }
  136. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement