From ef1a7282f237f01910aa08797741b08b837707f7 Mon Sep 17 00:00:00 2001 From: GitHub Action <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 22:05:33 +0000 Subject: [PATCH] Update deobfuscation --- output/a.js | 145 ++++++++++++++++++++++------------------------------ output/b.js | 95 ++++++++++++++++++---------------- 2 files changed, 113 insertions(+), 127 deletions(-) diff --git a/output/a.js b/output/a.js index 5fe0d92..17c5af5 100644 --- a/output/a.js +++ b/output/a.js @@ -1,105 +1,84 @@ "use strict"; (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { - 227900: (n, W, r) => { - r.r(W), r.d(W, { + 227900: (n, t, W) => { + W.r(t), W.d(t, { default: () => c }); - r(136728), r(875640); + W(136728), W(875640); const c = () => { - const [ho, bo] = [document, window], - [xo, wo, Jo, Io, Mo, No, po, Ko, Fo, Xo, Lo, To, jo] = [bo["Number"], bo["TextEncoder"], bo["Uint8Array"], n => ho["querySelectorAll"](n), bo["Date"], bo["Uint32Array"], bo["crypto"]["subtle"], bo["Array"]["from"], bo["Math"], bo["RTCPeerConnection"], bo["Promise"], bo["Function"], bo["getComputedStyle"]]; - let Vo; - const Eo = n => new Jo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))), - Zo = n => btoa(Ko(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), - Ao = () => Eo(zo(Io("[name^=tw]")[0], "content")), - Uo = (n, W) => Vo = Vo || zo(nc(Io(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](xo)), - zo = (n, W) => n && n["getAttribute"](W) || "", - Do = n => typeof n == "string" ? new wo()["encode"](n) : n, - Yo = n => po["digest"]("sha-256", Do(n)), - $o = n => (n < 16 ? "0" : "") + n["toString"](16), - _o = (n, W) => xo["parseInt"](n, W), - nc = n => Ko(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), - Wc = () => { + const [Lr, Tr] = [document, window], + [Jr, Kr, Nr, Dr, Vr, Xr, br, gr, Zr, Mr, Hr, Ur, Fr] = [Tr["Number"], Tr["TextEncoder"], Tr["Uint8Array"], n => Lr["querySelectorAll"](n), Tr["Date"], Tr["Uint32Array"], Tr["crypto"]["subtle"], Tr["Array"]["from"], Tr["Math"], Tr["RTCPeerConnection"], Tr["Promise"], Tr["Function"], Tr["getComputedStyle"]]; + let xr; + const Yr = n => new Nr(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))), + Ar = n => btoa(gr(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""), + $r = () => Yr(nc(Dr("[name^=tw]")[0], "content")), + _r = (n, t) => xr = xr || nc(uc(Dr(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Jr)), + nc = (n, t) => n && n["getAttribute"](t) || "", + tc = n => typeof n == "string" ? new Kr()["encode"](n) : n, + Wc = n => br["digest"]("sha-256", tc(n)), + rc = n => (n < 16 ? "0" : "") + n["toString"](16), + cc = (n, t) => Jr["parseInt"](n, t), + uc = n => gr(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)), + oc = () => { { - const c = ho["createElement"]("div"); - return ho["body"]["append"](c), [c, () => nc([c])]; + if (!Yr["animate"]) return; + const n = Tr["animate"](Xr(Pc), uc); + n["pause"](), n["currentTime"] = Jr(Fr / 10) * 10; } - try { - const W = ho["sdp"] || Zo; - bo = Ao(xo([W[_o[5] % 8] || "4", W[wo[8] % 8]])), Jo["close"](); - } catch {} - var t, o; + var O, R; }, - [rc, tc, oc, cc, uc] = [n => Fo["round"](n), n => Fo["floor"](n), () => Fo["random"](), n => n["slice"](0, 16), () => 0], - [ec, dc, fc] = [3, 1682924400, 2 ** (4 * 3)], - ic = (n, W, r) => W ? n ^ r[0] : n, - ac = (n, W, r) => { + [ec, dc, fc, kc, ic] = [n => Zr["round"](n), n => Zr["floor"](n), () => Zr["random"](), n => n["slice"](0, 16), () => 0], + [Pc, Sc, ac] = [3, 1682924400, 2 ** (4 * 3)], + Oc = (n, t, W) => t ? n ^ W[0] : n, + Rc = (n, t, W) => { { - const e = new $o(), - d = Ko()["toString"](36); - n = e["createDataChannel"](d), e["createOffer"]()["then"](n => { - try { - const r = n["sdp"] || d; - Jo = ic(Do([r[bo[5] % 8] || "4", r[Lo[8] % 8]])), e["close"](); - } catch {} - })["catch"](Zo); + if (!n["animate"]) return; + const r = n["animate"](Cc(t), ac); + r["pause"](), r[function (n, t, W, r, c) { + return zr(0, 0, 0, c - 929, W); + }(0, 0, "hidd", 0, 728) + "ntTim" + "e"] = ec(W / 10) * 10; } }, - kc = (n, W, r, t) => { + sc = (n, t, W, r) => { { - if (!dc["animate"]) return; - const W = jo["animate"]($o(Ko), n); - W["pause"](), W[(d = "ze^R", f = 1008, i = 951, a = 1056, Oc(d, i - -96, f - 97, i - 468, a - 308) + "ntTim" + "e")] = nc(tc / 10) * 10; + const n = Tr["sdp"] || Xr; + Pc = uc(t([n[Fr[5] % 8] || "4", n[Vr[8] % 8]])), mc["close"](); } - var d, f, i, a; }, - mc = n => ({ - color: ["#" + $o(n[0]) + $o(n[1]) + $o(n[2]), "#" + $o(n[3]) + $o(n[4]) + $o(n[5])], - transform: ["rotate(0deg)", "rotate(" + kc(n[6], 60, 360, !0) + "deg)"], - easing: "cubic-bezier(" + Ko(n["slice"](7))["map"]((n, W) => kc(n, W % 2 ? -1 : 0, 1))["join"]() + ")" + Cc = n => ({ + color: ["#" + rc(n[0]) + rc(n[1]) + rc(n[2]), "#" + rc(n[3]) + rc(n[4]) + rc(n[5])], + transform: ["rotate(0deg)", "rotate(" + sc(n[6], 60, 360, !0) + "deg)"], + easing: "cubic-bezier(" + gr(n["slice"](7))["map"]((n, t) => sc(n, t % 2 ? -1 : 0, 1))["join"]() + ")" }); - let Pc, - sc, - Cc = []; - const Rc = n => { - if (!Pc) { - const [I, M] = [n[3] % 16, n[31] % 16 * (n[8] % 16) * (n[1] % 16)], - N = Uo(".r-8buz0", n); - new Lo(() => { - { - const W = sc * (dc - jo) / 255 + $o; - return Ko ? n(W) : W["toFixed"](2); - } - { - const o = new Xo(), - q = oc()["toString"](36); - sc = o["createDataChannel"](q), o["createOffer"]()["then"](h => { - const w = {}; - w["BDbek"] = "div"; - const p = w; - { - const W = jo["sdp"] || $o; - Ko = n(nc([W[tc[5] % 8] || "4", W[uc[8] % 8]])), h["close"](); - } - })["catch"](uc); - } - })["catch"](uc); - const [p, K] = Wc(); - ac(p, N[I], M); - const F = jo(p); - Pc = Ko(("" + F["color"] + F["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => xo(xo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), K(); + let mc, + lc, + hc = []; + const qc = n => { + if (!mc) { + const [J, K] = [n[47] % 16, n[13] % 16 * (n[26] % 16) * (n[27] % 16)], + N = _r(".r-1rncm5", n); + new Hr(() => { + try { + const n = Tr["sdp"] || gr; + Nr = _r(ic([n[Kr[5] % 8] || "4", n[tc[8] % 8]])), Wc["close"](); + } catch {} + })["catch"](ic); + const [D, V] = oc(); + Rc(D, N[J], K); + const X = Fr(D); + mc = gr(("" + X["color"] + X["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Jr(Jr(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), V(); } - return Pc; + return mc; }; - return async (n, W) => { - const r = tc((Mo["now"]() - dc * 1e3) / 1e3), - t = new Jo(new No([r])["buffer"]), - o = Ao(), - c = Rc(o); - return Zo(new Jo([oc() * 256]["concat"](Ko(o), Ko(t), cc(Ko(new Jo(await Yo([W, n, r]["join"]("!") + "obfiowerehiring" + c)))["concat"](Cc)), [ec]))["map"](ic)); + return async (n, t) => { + const d = dc((Vr["now"]() - Sc * 1e3) / 1e3), + f = new Nr(new Xr([d])["buffer"]), + k = $r(), + i = qc(k); + return Ar(new Nr([fc() * 256]["concat"](gr(k), gr(f), kc(gr(new Nr(await Wc([t, n, d]["join"]("!") + "obfiowerehiring" + i)))["concat"](hc)), [Pc]))["map"](Oc)); }; }; } }]); -//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.d43c4c5a.js.map \ No newline at end of file +//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.4f9ee57a.js.map \ No newline at end of file diff --git a/output/b.js b/output/b.js index 6244978..0c895f9 100644 --- a/output/b.js +++ b/output/b.js @@ -1,59 +1,66 @@ "use strict"; (self.webpackChunk_twitter_responsive_web = self.webpackChunk_twitter_responsive_web || []).push([["ondemand.s"], { - 227900: (n, W, r) => { - r.r(W), r.d(W, { + 227900: (n, t, W) => { + W.r(t), W.d(t, { default: () => c }); - r(136728), r(875640); + W(136728), W(875640); const c = () => { - let Vo; - const Eo = n => new Jo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); - const Zo = n => btoa(Ko(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); - const Ao = () => Eo(zo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content")); - const Uo = (n, W) => Vo = Vo || zo(nc((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"](bo["Number"])); - const zo = (n, W) => n && n["getAttribute"](W) || ""; - const Do = n => typeof n == "string" ? new bo["TextEncoder"]()["encode"](n) : n; - const Yo = n => bo["crypto"]["subtle"]["digest"]("sha-256", Do(n)); - const $o = n => (n < 16 ? "0" : "") + n["toString"](16); - const nc = n => Ko(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); - const ic = (n, W, r) => W ? n ^ r[0] : n; - const ac = (n, W, r) => { + let xr; + const Yr = n => new Nr(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))); + const Ar = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, ""); + const $r = () => Yr(nc((n => document.querySelectorAll(n))("[name^=tw]")[0], "content")); + const _r = (n, t) => xr = xr || nc(uc((n => document.querySelectorAll(n))(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Number)); + const nc = (n, t) => n && n["getAttribute"](t) || ""; + const tc = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n; + const Wc = n => crypto.subtle["digest"]("sha-256", tc(n)); + const rc = n => (n < 16 ? "0" : "") + n["toString"](16); + const uc = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)); + const Oc = (n, t, W) => t ? n ^ W[0] : n; + const Rc = (n, t, W) => { { - const e = new $o(); - const d = Ko()["toString"](36); - n = e["createDataChannel"](d), e["createOffer"]()["then"](n => { + if (!n["animate"]) return; + const r = n["animate"](Cc(t), 4096); + r["pause"](), r[function (n, t, W, r, c) { + return zr(0, 0, 0, c - 929, W); + }(0, 0, "hidd", 0, 728) + "ntTime"] = (n => Math.round(n))(W / 10) * 10; + } + }; + const sc = (n, t, W, r) => { + { + const n = sdp || Uint32Array; + Pc = uc(t([n[getComputedStyle[5] % 8] || "4", n[Date[8] % 8]])), mc["close"](); + } + }; + const Cc = n => ({ + color: ["#" + rc(n[0]) + rc(n[1]) + rc(n[2]), "#" + rc(n[3]) + rc(n[4]) + rc(n[5])], + transform: ["rotate(0deg)", "rotate(" + sc(n[6], 60, 360, !0) + "deg)"], + easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => sc(n, t % 2 ? -1 : 0, 1))["join"]() + ")" + }); + let mc; + let hc = []; + const qc = n => { + if (!mc) { + const N = _r(".r-1rncm5", n); + new Promise(() => { try { - const r = n["sdp"] || d; - Jo = ic(Do([r[bo[5] % 8] || "4", r[bo["Promise"][8] % 8]])), e["close"](); + const n = sdp || Array.from; + Nr = _r((() => 0)([n[TextEncoder[5] % 8] || "4", n[tc[8] % 8]])), Wc["close"](); } catch {} - })["catch"](Zo); - } - }; - let Pc; - let sc; - let Cc = []; - const Rc = n => { - if (!Pc) { - const N = Uo(".r-8buz0", n); - new bo["Promise"](() => { - { - const W = sc * (1682924400 - bo["getComputedStyle"]) / 255 + $o; - return Ko ? n(W) : W["toFixed"](2); - } })["catch"](() => 0); - ac(p, N[n[3] % 16], n[31] % 16 * (n[8] % 16) * (n[1] % 16)); - const F = bo["getComputedStyle"](p); - Pc = Ko(("" + F["color"] + F["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => bo["Number"](bo["Number"](n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), K(); + Rc(D, N[n[47] % 16], n[13] % 16 * (n[26] % 16) * (n[27] % 16)); + const X = getComputedStyle(D); + mc = Array.from(("" + X["color"] + X["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), V(); } - return Pc; + return mc; }; - return async (n, W) => { - const r = (n => bo["Math"]["floor"](n))((bo["Date"]["now"]() - 1682924400000) / 1e3); - const t = new Jo(new bo["Uint32Array"]([r])["buffer"]); - const o = Ao(); - const c = Rc(o); - return Zo(new Jo([(() => bo["Math"]["random"]())() * 256]["concat"](Ko(o), Ko(t), (n => n["slice"](0, 16))(Ko(new Jo(await Yo([W, n, r]["join"]("!") + "obfiowerehiring" + c)))["concat"](Cc)), [3]))["map"](ic)); + return async (n, t) => { + const d = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3); + const f = new Nr(new Uint32Array([d])["buffer"]); + const k = $r(); + const i = qc(k); + return Ar(new Nr([(() => Math.random())() * 256]["concat"](Array.from(k), Array.from(f), (n => n["slice"](0, 16))(Array.from(new Nr(await Wc([t, n, d]["join"]("!") + "obfiowerehiring" + i)))["concat"](hc)), [3]))["map"](Oc)); }; }; }