Skip to content

Instantly share code, notes, and snippets.

@tradertrue
Created May 18, 2022 21:38
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 tradertrue/45bbf8a5c59dacdff35b38beb30e96fd to your computer and use it in GitHub Desktop.
Save tradertrue/45bbf8a5c59dacdff35b38beb30e96fd to your computer and use it in GitHub Desktop.
function(e, h) {
var t, n = ["__webdriver_script_fn", "512", "Date", "initialize", "typeof process", "unescape", "eval", "WebKit built-in PDF", "Chromium PDF Viewer", "keyup", "mousemove", "mozInnerScreenY", "256", "addEventListener", "now", "location", "https:", "documentElement", "safari", "Shockwave Flash", "keydown", "$cdc_asdjflasutopfhvcZLmcfl_", "Java Applet Plug-in", "128", "sign", "name", "__esModule", "click", "webdriver", "touchmove", "typeof readFully", "424242", "Chrome PDF Viewer", "encodeURIComponent", "plugins", "join", "defineProperty", "screen", "call", "navigator", "undefined", "_Selenium_IDE_Recorder", "length", "TestUA", "typeof global", "1024", "4096", "__SIGNIN_SIGNATURE_VERSION__", "Widevine Content Decryption Module", "420", "document", "Edge PDF Viewer"];
t = n,
function(e) {
for (; --e; )
t.push(t.shift())
}(405);
function f(e, t) {
return n[e = +e]
}
Object[f("0x30")](h, f("0x26"), {
value: !0
}),
h[f("0x24")] = h[f("0xf")] = h[f("0x7")] = void 0,
h[f("0x7")] = "8";
var m = -1
, g = 0
, y = 0
, v = 0
, w = 0;
h[f("0xf")] = function() {
function e(e) {
try {
if (!1 === e.isTrusted)
return
} catch (e) {}
g += 1
}
m = window.Date[f("0x1a")](),
window.addEventListener(f("0x16"), e),
window.addEventListener(f("0x29"), e),
window[f("0x19")](f("0x20"), function() {
y += 1
}),
window[f("0x19")](f("0x15"), function() {
v += 1
}),
window[f("0x19")](f("0x27"), function() {
w += 1
})
}
,
h.sign = function(e, t, n, r) {
var o = window.navigator.userAgent
, a = 1;
window[f("0xa")][f("0x21")] && (a += 2),
window[f("0xa")][f("0x1d")].getAttribute(f("0x28")) && (a += 4),
window[f("0x33")][f("0x28")] && (a += 16),
window[f("0x1b")].protocol !== f("0x1c") && (a += 32),
"undefined" !== window[f("0x12")](f("0x10")) && (a += 64),
window.eval(f("0x4")) !== f("0x0") && (a += 128),
window[f("0x12")](f("0x2a")) !== f("0x0") && (a += +f("0x18")),
window[f("0x1")] && (a += +f("0xd")),
window.document[f("0xc")] && (a += +f("0x5"));
var i = 1;
window[f("0x17")] && (i += 2),
null === window.onoperacustomcontrol && (i += 4),
window.msLaunchUri && (i += 8),
window[f("0x1e")] && (i += 16),
window.chrome && (i += 32);
var s = window[f("0xe")].now() - m
, u = 0;
try {
u = window[f("0x31")].width * window[f("0x31")].height
} catch (e) {}
var l = +f("0x5");
try {
[].forEach[f("0x32")](window[f("0x33")][f("0x2e")], function(e) {
e = e[f("0x25")];
e === f("0x14") && (l += 1),
e === f("0x2c") && (l += 2),
"Native Client" === e && (l += 4),
e === f("0x8") && (l += 8),
"Chrome PDF Plugin" === e && (l += 16),
e === f("0x22") && (l += 32),
e === f("0x1f") && (l += 64),
e === f("0xb") && (l += +f("0x23")),
e === f("0x13") && (l += 256)
})
} catch (e) {}
r && (o = f("0x3")),
r && (a = +f("0x6")),
r && (i = +f("0x6")),
r && (g = 42),
r && (s = +f("0x2b")),
r && (u = +f("0x9") * +f("0x9")),
r && (l = +f("0x5")),
r && (w = 0);
for (var u = [i, a, s, g, u, l, y = r ? 7 : y, v = r ? 9 : v][f("0x2f")]("-"), r = w, n = n + h.__SIGNIN_SIGNATURE_VERSION__ + u + o + e + t + u + n, c = window[f("0x11")](window[f("0x2d")](n)), d = 8011470, p = 0; p < c[f("0x2")]; p += 1)
d = (d >> 1) + ((1 & d) << 23),
d += c.charCodeAt(p),
d &= 16777215;
return h.__SIGNIN_SIGNATURE_VERSION__ + ":" + u + ":" + d.toString(16) + ":" + r
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment