Skip to content

Instantly share code, notes, and snippets.

@1trackprojects1
Forked from obfio/px_release_time.js
Created September 3, 2024 04:29
Show Gist options
  • Save 1trackprojects1/10211fd9322e6bc1733239ee0eec5c79 to your computer and use it in GitHub Desktop.
Save 1trackprojects1/10211fd9322e6bc1733239ee0eec5c79 to your computer and use it in GitHub Desktop.
PX captcha release time
// ! this function passes in instruction ci and eventually will call init in captcha.js
// init = return Cf({}, "init", function(v, u, t, f, i) {
function ba(e, t, n, r, o) {
/*
e = 1
t = e5b2cf90-9393-11ed-8276-13d92380b88e
n = 8684
r = f5aca1cc592c6f8ca44d3edfad98f3aa080e3553f6903d9c62f570be612c4d2ef60e2fcbfe306f8390e9e22e9cbd53862fb01ba3ef4a7a4602b26cee59bc209e󠄸󠄼󠄾󠄺
o = 0
i = NA || "" */
var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : "";
e === "1" && (
// now n = how long you need to hold the captcha
n = it(Ri(r), 10),
r = r.substring(0, r.length - 2 * n.length),
// converts n from a string to an int
n = +n,
mr(t, n, r, "1" === o, i));
}
function Ri(e) {
return escape(e).split("%uDB40%uDD").slice(1).reduce(function (e, t) {
return e += String.fromCodePoint(parseInt(t.substr(0, 2), 16));
}, "");
}
function it(e, t) {
for (var n = "", r = 0; r < e.length; r++) n += String.fromCharCode(t ^ e.charCodeAt(r));
return n;
}
function mr(e, t, n, r, o) {
/*
e = e5b2cf90-9393-11ed-8276-13d92380b88e
t = 2640
n = f5aca1cc592c6f8ca44d3edfad98f3aa080e3553f6903d9c62f570be612c4d2ef60e2fcbfe306f8390e9e22e9cbd53862fb01ba3ef4a7a4602b26cee59bc209e󠄸󠄼󠄾󠄺
r = true/false (should always be true?)
o = "NA"/"" (should always be "NA"?)
*/
TZ = e
if ((void 0 === t ? "undefined" : lZ(t)) === "number" && t > 0 && t < 1e4) {
t = t
} else {
t = Math.round(1e3 * (2 * Math.random() + 1))
}
if ((void 0 === n ? "undefined" : lZ(n)) === "string") {
n = n || rt(32)
// Qr = calls init function
Qr(t, n, r, o)
}
}
function Qr(e, t, r, o) {
/*
e = 2640
t = f5aca1cc592c6f8ca44d3edfad98f3aa080e3553f6903d9c62f570be612c4d2ef60e2fcbfe306f8390e9e22e9cbd53862fb01ba3ef4a7a4602b26cee59bc209e󠄸󠄼󠄾󠄺
r = true/false (should always be true?)
o = "NA"/"" (should always be "NA"?)
*/
// Gr gets the handler methods between init.js (current file) and captcha.js
var a = Gr(),
// PX762 is the init function
c = a && a["PX762"];
// set a few handler functions
c && (a["PX763"] = Fr, a["PX1078"] = Ir, a["PX1200"] = Pr, a["PX1145"] = kr,
// call init
// Dr is a fucntion, not sure why
c(Dr, e, t, r, o));
}
// ! init function as seen in captcha.js
return Cf({}, "init", function (v, u, t, f, i) {
/*
v = 2640
u = {
"token": "f5aca1cc592c6f8ca44d3edfad98f3aa080e3553f6903d9c62f570be612c4d2ef60e2fcbfe306f8390e9e22e9cbd53862fb01ba3ef4a7a4602b26cee59bc209e󠄸󠄼󠄾󠄺"
}
t = o (function below)
f = true/false
i = "NA"/""
*/
// how long to hold for
Br["challengeTime"] = v,
// token
Br["fakeToken"] = u["token"],
// that function o
Br["onSolvedCallback"] = t,
// new timestamp
Br["challengeStartTime"] = mc(),
// true/false, normally true
Br["isShowAccessibilityButton"] = f,
// "NA"/"", probably other options as well but "NA" is most likely
Br["accessibilityFlowEmailSender"] = i,
// challengeTime = how long to hold, fakeToken = token r = function seen below
// Wt makes the iframe
Wt(Br["challengeTime"], Br["fakeToken"], r),
// Sv registers event listeners
Sv(true, document["body"]),
// set the handler.PX12488 to that n function
window[Mc()]["PX12488"] = n;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment