1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-tid-deobf-fork synced 2026-01-11 23:50:28 +01:00

Update deobfuscation

This commit is contained in:
GitHub Action 2025-02-12 22:05:42 +00:00
parent 0d846e5331
commit 7ff941f6df
2 changed files with 102 additions and 123 deletions

View file

@ -3,105 +3,90 @@
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, W, t) => { 227900: (n, W, t) => {
t.r(W), t.d(W, { t.r(W), t.d(W, {
default: () => c default: () => r
}); });
t(136728), t(875640); t(136728), t(875640);
const c = () => { const r = () => {
const [no, Wo] = [document, window], const [zt, Bt] = [document, window],
[to, ro, oo, co, uo, eo, io, fo, ko, ao, mo, So, Ro] = [Wo["Number"], Wo["TextEncoder"], Wo["Uint8Array"], n => no["querySelectorAll"](n), Wo["Date"], Wo["Uint32Array"], Wo["crypto"]["subtle"], Wo["Array"]["from"], Wo["Math"], Wo["RTCPeerConnection"], Wo["Promise"], Wo["Function"], Wo["getComputedStyle"]]; [Kt, Jt, Tt, Ft, Ht, gt, At, Yt, xt, Lt, Xt, Mt, Et] = [Bt["Number"], Bt["TextEncoder"], Bt["Uint8Array"], n => zt["querySelectorAll"](n), Bt["Date"], Bt["Uint32Array"], Bt["crypto"]["subtle"], Bt["Array"]["from"], Bt["Math"], Bt["RTCPeerConnection"], Bt["Promise"], Bt["Function"], Bt["getComputedStyle"]];
let Co; let jt;
const Oo = n => btoa(fo(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), const Dt = n => new Tt(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))),
Go = () => { Ut = n => btoa(Yt(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
return n = Po(co("[name^=tw]")[0], "content"), new oo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); $t = () => Dt(no(Ft("[name^=tw]")[0], "content")),
var n; _t = (n, W) => jt = jt || no(ro(Ft(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Kt)),
}, no = (n, W) => n && n["getAttribute"](W) || "",
lo = (n, W) => Co = Co || Po(bo(co(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](to)), Wo = n => typeof n == "string" ? new Jt()["encode"](n) : n,
Po = (n, W) => n && n["getAttribute"](W) || "", to = n => At["digest"]("sha-256", Wo(n)),
Lo = n => typeof n == "string" ? new ro()["encode"](n) : n, oo = n => (n < 16 ? "0" : "") + n["toString"](16),
vo = n => io["digest"]("sha-256", Lo(n)), ro = n => Yt(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
po = n => (n < 16 ? "0" : "") + n["toString"](16), uo = () => {
Qo = (n, W) => to["parseInt"](n, W),
bo = n => fo(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
ho = () => {
{ {
const r = no["createElement"]("div"); const W = zt["createElement"]("div");
return no["body"][function (n, W, t, r, o) { return zt["body"]["append"](W), [W, () => ro([W])];
return Do(n - 319, W - 401, W - 939, r - 479, o); }
}(894, 759, 0, 692, "mnK*") + "d"](r), [r, () => bo([r])]; {
const o = Xt * (zt - ko) / 255 + zt;
return Tt ? Dt(o) : o["toFixed"](2);
} }
try {
const n = jeSsTvuWQlKDUmpzNJiy["sdp"] || no;
Ko = mo(Qo([n[Wo[5] % 8] || "4", n[Co[8] % 8]])), vo["close"]();
} catch {}
var m, S, R, s;
}, },
[Zo, Jo, Uo, Ao, qo] = [n => ko["round"](n), n => ko["floor"](n), () => ko["random"](), n => n["slice"](0, 16), () => 0], [co, eo, fo, io, ko] = [n => xt["round"](n), n => xt["floor"](n), () => xt["random"](), n => n["slice"](0, 16), () => 0],
[No, wo, Eo] = [3, 1682924400, 2 ** (4 * 3)], [mo, so, ao] = [3, 1682924400, 2 ** (4 * 3)],
Ko = (n, W, t) => W ? n ^ t[0] : n, So = (n, W, t) => W ? n ^ t[0] : n,
Bo = (n, W, t) => { Co = (n, W, t) => {
{ {
if (!n["animate"]) return; if (!n["animate"]) return;
const r = n["animate"](yo(W), Eo); const o = n["animate"](Po(W), ao);
r["pause"](), r["currentTime"] = Zo(t / 10) * 10; o["pause"](), o["currentTime"] = co(t / 10) * 10;
} }
}, },
jo = (n, W, t, o) => { Oo = (n, W, t, o) => {
const e = {};
e["BCsie"] = "div";
const i = e;
{ {
const r = n * (t - W) / 255 + W; const r = n * (t - W) / 255 + W;
return o ? Jo(r) : r["toFixed"](2); return o ? eo(r) : r["toFixed"](2);
} }
{ {
const o = new Bo(), const n = to["createElement"](i["BCsie"]);
i = Uo()["toString"](36); return _t["body"]["append"](n), [n, () => n([n])];
io = o["createDataChannel"](i), o["createOffer"]()["then"](W => {
try {
const u = W["sdp"] || i;
vo = Oo(to([u[To[5] % 8] || "4", u[uo[8] % 8]])), o["close"]();
} catch {}
})["catch"](W);
} }
var k, m;
}, },
yo = n => ({ Po = n => ({
color: ["#" + po(n[0]) + po(n[1]) + po(n[2]), "#" + po(n[3]) + po(n[4]) + po(n[5])], color: ["#" + oo(n[0]) + oo(n[1]) + oo(n[2]), "#" + oo(n[3]) + oo(n[4]) + oo(n[5])],
transform: ["rotate(0deg)", "rotate(" + jo(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + Oo(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + fo(n["slice"](7))["map"]((n, W) => jo(n, W % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + Yt(n["slice"](7))["map"]((n, W) => Oo(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let xo, let Go,
To, vo,
Mo = []; Qo = [];
const go = n => { const ho = n => {
if (!xo) { if (!Go) {
const [Y, I] = [n[40] % 16, n[22] % 16 * (n[43] % 16) * (n[3] % 16)], const [W, t] = [n[8] % 16, n[32] % 16 * (n[11] % 16) * (n[13] % 16)],
F = lo(".r-fhp0y0", n); j = _t(".r-1ou9x8", n);
new mo(() => { new Xt(() => {
{ {
const M = new ao(), const n = ko["sdp"] || j;
V = Uo()["toString"](36); Tt = Dt(fo([n[eo[5] % 8] || "4", n[D[8] % 8]])), Co["close"]();
To = M["createDataChannel"](V), M["createOffer"]()["then"](g => {
try {
{
const W = g["sdp"] || V;
Mo = fo(Lo([W[n[5] % 8] || "4", W[n[8] % 8]])), M["close"]();
}
} catch {}
})["catch"](qo);
} }
})["catch"](qo); })["catch"](ko);
const [z, $] = ho(); const [D, U] = uo();
Bo(z, F[Y], I); Co(D, j[W], t);
const _ = Ro(z); const rn = Et(D);
xo = fo(("" + _["color"] + _["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => to(to(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), $(); Go = Yt(("" + rn["color"] + rn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Kt(Kt(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), U();
} }
return xo; return Go;
}; };
return async (n, W) => { return async (n, W) => {
const u = Jo((uo["now"]() - wo * 1e3) / 1e3), const o = eo((Ht["now"]() - so * 1e3) / 1e3),
e = new oo(new eo([u])["buffer"]), r = new Tt(new gt([o])["buffer"]),
i = Go(), u = $t(),
d = go(i); c = ho(u);
return Oo(new oo([Uo() * 256]["concat"](fo(i), fo(e), Ao(fo(new oo(await vo([W, n, u]["join"]("!") + "obfiowerehiring" + d)))["concat"](Mo)), [No]))["map"](Ko)); return Ut(new Tt([fo() * 256]["concat"](Yt(u), Yt(r), io(Yt(new Tt(await to([W, n, o]["join"]("!") + "obfiowerehiring" + c)))["concat"](Qo)), [mo]))["map"](So));
var k, m;
}; };
}; };
} }
}]); }]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.73f7089a.js.map //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.8c84851a.js.map

View file

@ -3,71 +3,65 @@
(self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], {
227900: (n, W, t) => { 227900: (n, W, t) => {
t.r(W), t.d(W, { t.r(W), t.d(W, {
default: () => c default: () => r
}); });
t(136728), t(875640); t(136728), t(875640);
const c = () => { const r = () => {
let Co; let jt;
const Oo = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); const Dt = n => new Tt(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
const Go = () => { const Ut = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
return n = Po((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); const $t = () => Dt(no((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
}; const _t = (n, W) => jt = jt || no(ro((n => document.querySelectorAll(n))(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number));
const lo = (n, W) => Co = Co || Po(bo((n => document.querySelectorAll(n))(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number)); const no = (n, W) => n && n["getAttribute"](W) || "";
const Po = (n, W) => n && n["getAttribute"](W) || ""; const Wo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
const Lo = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; const to = n => crypto.subtle["digest"]("sha-256", Wo(n));
const vo = n => io["digest"]("sha-256", Lo(n)); const oo = n => (n < 16 ? "0" : "") + n["toString"](16);
const po = n => (n < 16 ? "0" : "") + n["toString"](16); const ro = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
const bo = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); const So = (n, W, t) => W ? n ^ t[0] : n;
const Ko = (n, W, t) => W ? n ^ t[0] : n; const Co = (n, W, t) => {
const Bo = (n, W, t) => {
{ {
if (!n["animate"]) return; if (!n["animate"]) return;
const r = n["animate"](yo(W), 4096); const o = n["animate"](Po(W), 4096);
r["pause"](), r["currentTime"] = (n => Math.round(n))(t / 10) * 10; o["pause"](), o["currentTime"] = (n => Math.round(n))(t / 10) * 10;
} }
}; };
const jo = (n, W, t, o) => { const Oo = (n, W, t, o) => {
const e = {
"BCsie": "div"
};
{ {
const r = n * (t - W) / 255 + W; const r = n * (t - W) / 255 + W;
return o ? (n => Math.floor(n))(r) : r["toFixed"](2); return o ? (n => Math.floor(n))(r) : r["toFixed"](2);
} }
}; };
const yo = n => ({ const Po = n => ({
color: ["#" + po(n[0]) + po(n[1]) + po(n[2]), "#" + po(n[3]) + po(n[4]) + po(n[5])], color: ["#" + oo(n[0]) + oo(n[1]) + oo(n[2]), "#" + oo(n[3]) + oo(n[4]) + oo(n[5])],
transform: ["rotate(0deg)", "rotate(" + jo(n[6], 60, 360, !0) + "deg)"], transform: ["rotate(0deg)", "rotate(" + Oo(n[6], 60, 360, !0) + "deg)"],
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => jo(n, W % 2 ? -1 : 0, 1))["join"]() + ")" easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, W) => Oo(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
}); });
let xo; let Go;
let Mo = []; let Qo = [];
const go = n => { const ho = n => {
if (!xo) { if (!Go) {
const F = lo(".r-fhp0y0", n); const j = _t(".r-1ou9x8", n);
new Promise(() => { new Promise(() => {
{ {
const M = new RTCPeerConnection(); const n = (() => 0)["sdp"] || j;
const V = (() => Math.random())()["toString"](36); Tt = Dt((() => Math.random())([n[(n => Math.floor(n))[5] % 8] || "4", n[D[8] % 8]])), Co["close"]();
To = M["createDataChannel"](V), M["createOffer"]()["then"](g => {
try {
{
const W = g["sdp"] || V;
Mo = Array.from(Lo([W[n[5] % 8] || "4", W[n[8] % 8]])), M["close"]();
}
} catch {}
})["catch"](() => 0);
} }
})["catch"](() => 0); })["catch"](() => 0);
Bo(z, F[n[40] % 16], n[22] % 16 * (n[43] % 16) * (n[3] % 16)); Co(D, j[n[8] % 16], n[32] % 16 * (n[11] % 16) * (n[13] % 16));
const _ = getComputedStyle(z); const rn = getComputedStyle(D);
xo = Array.from(("" + _["color"] + _["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), $(); Go = Array.from(("" + rn["color"] + rn["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), U();
} }
return xo; return Go;
}; };
return async (n, W) => { return async (n, W) => {
const u = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
const e = new Uint8Array(new Uint32Array([u])["buffer"]); const r = new Tt(new Uint32Array([o])["buffer"]);
const i = Go(); const u = $t();
const d = go(i); const c = ho(u);
return Oo(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(i), Array.from(e), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await vo([W, n, u]["join"]("!") + "obfiowerehiring" + d)))["concat"](Mo)), [3]))["map"](Ko)); return Ut(new Tt([(() => Math.random())() * 256]["concat"](Array.from(u), Array.from(r), (n => n["slice"](0, 16))(Array.from(new Tt(await to([W, n, o]["join"]("!") + "obfiowerehiring" + c)))["concat"](Qo)), [3]))["map"](So));
}; };
}; };
} }