Advertisement
caffeinatedmike

PX851 Logic

Feb 16th, 2023
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Pt() {
  2.   function $t() {
  3.     return window.performance && "function" == typeof window.performance.now
  4.   }
  5.   // if we comment this out we automatically default to b()
  6.   if ($t()) return Math.round(window.performance.now())
  7. }
  8. function b() {
  9.   return +new Date
  10. }
  11. function pr(t, n) {
  12.   var qd = [],
  13.     tv = "PX99qynK72";
  14.   function gi() {
  15.     function ei() {
  16.       function ni() {
  17.         return "_" + tv.replace(/^PX|px/, "") + "handler"
  18.       }
  19.       var t = ni();
  20.       return window[t]
  21.     }
  22.     function ci() {
  23.       function di() {
  24.         var $s = null,
  25.           Ls = "pxhc",
  26.           Gs = "pxc",
  27.           Zd = "px-captcha";
  28.         function Qr() {
  29.           var Ld = "_pxAction";
  30.           return window[Ld]
  31.         }
  32.         function E(t) {
  33.           var Ul = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
  34.             return typeof t
  35.           } : function(t) {
  36.             return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  37.           }
  38.           return "object" === (void 0 === t ? "undefined" : Ul(t)) && null !== t
  39.         }
  40.         function ui() {
  41.           var t = "__" + tv + "__";
  42.           return "function" == typeof window[t] && !!document.getElementById(Zd)
  43.         }
  44.         function pi() {
  45.           return !!document.getElementById(Zd)
  46.         }
  47.         if (!Qr() || $s) return $s;
  48.         if (E(ei())) {
  49.           var n = Qr();
  50.           $s = n === Ls || n === Gs ? "PX560" : "PX557"
  51.         } else ui() ? $s = "PX560" : pi() ? $s = "PX557" : "Access to this page has been denied." !== document.title && "Access to This Page Has Been Blocked" !== document.title || ($s = "PX558");
  52.         return $s
  53.       }
  54.       var n = di();
  55.       return n === "PX557" || n === "PX560"
  56.     }
  57.     return !!ei() && ci()
  58.   }
  59.   function Ar(t1, n) {
  60.     var vv = ["PX297", "PX175", "PX4", "PX627", "PX611"];
  61.     function y(t2, n) {
  62.       if (t2 && "function" == typeof t2.indexOf) return t2.indexOf(n);
  63.       if (t2 && t2.length >= 0) {
  64.         for (var e = 0; e < t2.length; e++)
  65.           if (t2[e] === n) return e;
  66.         return -1
  67.       }
  68.     }
  69.     return !!n["PX610"] || (y(vv, t1) > -1 ? (n["PX610"] = !0, !0) : void 0)
  70.   }
  71.   return gi() && qd && Ar(t, n)
  72. }
  73.  
  74. function vr(t, n) {
  75.   var qd = [],
  76.     zd = [];
  77.   n["PX851"] = Pt() || b(), pr(t, n) ? (
  78.     qd.push({
  79.       t: t,
  80.       d: n,
  81.       ts: (new Date).getTime()
  82.     }),
  83.     t === "PX761" && (
  84.       Ki(),
  85.       iv.trigger("PX761")
  86.     )
  87.   ) : zd.push({
  88.     t: t,
  89.     d: n,
  90.     ts: (new Date).getTime()
  91.   })
  92. }
  93.  
  94. function el() {
  95.   var Jd = window.location && window.location.href || "",
  96.     UA = "PX1077";
  97.   function Qu(t2, n, e) {
  98.     return n in t2 ? Object.defineProperty(t2, n, {
  99.       value: e,
  100.       enumerable: !0,
  101.       configurable: !0,
  102.       writable: !0
  103.     }) : t2[n] = e, t2
  104.   }
  105.   function Zr() {
  106.     var Qd = "_pxAbr";
  107.     return window[Qd]
  108.   }
  109.   var t, i = (t = {},
  110.     Qu(t, "PX96", Jd),
  111.     Qu(t, "PX63", navigator && navigator.platform),
  112.     Qu(t, "PX191", window.self === window.top ? 0 : 1),
  113.     Qu(t, "PX1172", Zr()),
  114.   t);
  115.   window._pxRootUrl && (i["PX853"] = !0);
  116.   try {
  117.     "true" === window.sessionStorage.getItem(UA) && (window.sessionStorage.removeItem(UA), i[UA] = !0)
  118.   } catch (t) {}
  119.   // ignore Kp.sendActivities() for the sake of simply figuring out PX851
  120.   vr("PX2", i)//, Kp.sendActivities()
  121.   // returning i to get value of PX851
  122.   return i;
  123. }
  124. PXObject = el();
  125. PXObject.PX851;  // either Math.round(window.performance.now()) or +new Date
  126. // when requesting from a script you would think to default to creating the date,
  127. // but when using a browser "Math.round(window.performance.now())" will start out much lower; therefore, more likely to be flagged as bot behavior.
  128. // suggestion: track time right before you request the page, then do a timedelta between the two values, rounding the different to a whole number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement