mirror of
https://github.com/thegeneralist01/twitter-tid-deobf-fork
synced 2026-01-11 15:40:28 +01:00
Update deobfuscation
This commit is contained in:
parent
69aba51183
commit
1aac2e0876
2 changed files with 141 additions and 116 deletions
158
output/a.js
158
output/a.js
|
|
@ -1,100 +1,104 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(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, c) => {
|
227900: (n, t, W) => {
|
||||||
c.r(W), c.d(W, {
|
W.r(t), W.d(t, {
|
||||||
default: () => o
|
default: () => u
|
||||||
});
|
});
|
||||||
c(136728), c(875640);
|
W(136728), W(875640);
|
||||||
const o = () => {
|
const u = () => {
|
||||||
const [Zr, jr] = [document, window],
|
const [yo, go] = [document, window],
|
||||||
[Ar, Kr, zr, Br, Jr, Ur, Yr, Er, Xr, Mr, $r, _r, nt] = [jr["Number"], jr["TextEncoder"], jr["Uint8Array"], n => Zr["querySelectorAll"](n), jr["Date"], jr["Uint32Array"], jr["crypto"]["subtle"], jr["Array"]["from"], jr["Math"], jr["RTCPeerConnection"], jr["Promise"], jr["Function"], jr["getComputedStyle"]];
|
[Oo, Qo, wo, Vo, Go, No, ho, lo, Po, Io, Ho, jo, Fo] = [go["Number"], go["TextEncoder"], go["Uint8Array"], n => yo["querySelectorAll"](n), go["Date"], go["Uint32Array"], go["crypto"]["subtle"], go["Array"]["from"], go["Math"], go["RTCPeerConnection"], go["Promise"], go["Function"], go["getComputedStyle"]];
|
||||||
let Wt;
|
let bo;
|
||||||
const ct = n => new zr(atob(n)["split"]("")["map"](n => n["charCodeAt"](0))),
|
const Bo = n => btoa(lo(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
|
||||||
rt = n => btoa(Er(n)["map"](n => String["fromCharCode"](n))["join"](""))["replace"](/=/g, ""),
|
Jo = () => {
|
||||||
tt = () => ct(ut(Br("[name^=tw]")[0], "content")),
|
return n = Zo(Vo("[name^=tw]")[0], "content"), new wo(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
|
||||||
ot = (n, W) => Wt = Wt || ut(it(Br(n))[W[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Ar)),
|
var n;
|
||||||
ut = (n, W) => n && n["getAttribute"](W) || "",
|
|
||||||
et = n => typeof n == "string" ? new Kr()["encode"](n) : n,
|
|
||||||
dt = n => Yr["digest"]("sha-256", et(n)),
|
|
||||||
ft = n => (n < 16 ? "0" : "") + n["toString"](16),
|
|
||||||
it = n => Er(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
|
|
||||||
kt = () => {
|
|
||||||
{
|
|
||||||
const n = Zr["createElement"]("div");
|
|
||||||
return Zr["body"]["append"](n), [n, () => it([n])];
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
const n = et["sdp"] || tt;
|
|
||||||
ht = Ar(_r([n[Kr[5] % 8] || "4", n[zr[8] % 8]])), it["close"]();
|
|
||||||
} catch {}
|
|
||||||
var O, s, S;
|
|
||||||
},
|
},
|
||||||
[Ct, at, Ot, st, St] = [n => Xr["round"](n), n => Xr["floor"](n), () => Xr["random"](), n => n["slice"](0, 16), () => 0],
|
Ao = (n, t) => bo = bo || Zo(Uo(Vo(n))[t[5] % 4]["childNodes"][0]["childNodes"][1], "d")["substring"](9)["split"]("C")["map"](n => n["replace"](/[^\d]+/g, " ")["trim"]()["split"](" ")["map"](Oo)),
|
||||||
[vt, Pt, mt] = [3, 1682924400, 2 ** (4 * 3)],
|
Zo = (n, t) => n && n["getAttribute"](t) || "",
|
||||||
Rt = (n, W, c) => W ? n ^ c[0] : n,
|
Ko = n => typeof n == "string" ? new Qo()["encode"](n) : n,
|
||||||
pt = (n, W, c) => {
|
Yo = n => ho["digest"]("sha-256", Ko(n)),
|
||||||
|
Do = n => (n < 16 ? "0" : "") + n["toString"](16),
|
||||||
|
Lo = (n, t) => Oo["parseInt"](n, t),
|
||||||
|
Uo = n => lo(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n)),
|
||||||
|
To = () => {
|
||||||
{
|
{
|
||||||
const n = St * (mt - Mr) / 255 + Ur;
|
const k = new yo(),
|
||||||
return c ? Ot(n) : n[(O = -107, s = "^OTP", gr(0, O - -1417, 0, s) + "ed")](2);
|
s = No()["toString"](36);
|
||||||
|
Eo = k["createDataChannel"](s), k["createOffer"]()["then"](m => {
|
||||||
|
try {
|
||||||
|
const o = m["sdp"] || s;
|
||||||
|
rr = To(er([o[Ao[5] % 8] || "4", o[Oo[8] % 8]])), k["close"]();
|
||||||
|
} catch {}
|
||||||
|
})["catch"](lo);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
[xo, Eo, zo, Xo, $o] = [n => Po["round"](n), n => Po["floor"](n), () => Po["random"](), n => n["slice"](0, 16), () => 0],
|
||||||
|
[_o, nr, tr] = [3, 1682924400, 2 ** (4 * 3)],
|
||||||
|
Wr = (n, t, W) => t ? n ^ W[0] : n,
|
||||||
|
or = (n, t, W) => {
|
||||||
{
|
{
|
||||||
if (!n["animate"]) return;
|
if (!n["animate"]) return;
|
||||||
const r = n["animate"](Gt(W), mt);
|
const o = n["animate"](ur(t), tr);
|
||||||
r["pause"](), r["currentTime"] = Ct(c / 10) * 10;
|
o["pause"](), o["currentTime"] = xo(W / 10) * 10;
|
||||||
}
|
}
|
||||||
var O, s;
|
|
||||||
},
|
},
|
||||||
Qt = (n, W, c, r) => {
|
rr = (n, t, W, o) => {
|
||||||
const k = {};
|
|
||||||
k["gRdKM"] = "div";
|
|
||||||
const C = k;
|
|
||||||
{
|
{
|
||||||
const t = n * (c - W) / 255 + W;
|
const n = cr * ($o - Oo) / 255 + yo;
|
||||||
return r ? at(t) : t["toFixed"](2);
|
return No ? Eo(n) : n["toFixed"](2);
|
||||||
}
|
}
|
||||||
var a, O;
|
{
|
||||||
|
const r = n * (W - t) / 255 + t;
|
||||||
|
return o ? Eo(r) : r["toFixed"](2);
|
||||||
|
}
|
||||||
|
var s, m;
|
||||||
},
|
},
|
||||||
Gt = n => ({
|
ur = n => ({
|
||||||
color: ["#" + ft(n[0]) + ft(n[1]) + ft(n[2]), "#" + ft(n[3]) + ft(n[4]) + ft(n[5])],
|
color: ["#" + Do(n[0]) + Do(n[1]) + Do(n[2]), "#" + Do(n[3]) + Do(n[4]) + Do(n[5])],
|
||||||
transform: ["rotate(0deg)", "rotate(" + Qt(n[6], 60, 360, !0) + "deg)"],
|
transform: ["rotate(0deg)", "rotate(" + rr(n[6], 60, 360, !0) + "deg)"],
|
||||||
easing: "cubic-bezier(" + Er(n["slice"](7))["map"]((n, W) => Qt(n, W % 2 ? -1 : 0, 1))["join"]() + ")"
|
easing: "cubic-bezier(" + lo(n["slice"](7))["map"]((n, t) => rr(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
|
||||||
});
|
});
|
||||||
let lt,
|
let cr,
|
||||||
Lt,
|
er,
|
||||||
qt = [];
|
fr = [];
|
||||||
const ht = n => {
|
const dr = n => {
|
||||||
if (!lt) {
|
const Z = {};
|
||||||
const [W, Xn] = [n[15] % 16, n[42] % 16 * (n[45] % 16) * (n[43] % 16)],
|
Z["COheP"] = "div";
|
||||||
Mn = ot(".r-1xc71g", n);
|
const T = Z;
|
||||||
new $r(() => {
|
if (!cr) {
|
||||||
|
const [B, J] = [n[24] % 16, n[2] % 16 * (n[47] % 16) * (n[39] % 16)],
|
||||||
|
A = Ao(".r-74wno", n);
|
||||||
|
new Ho(() => {
|
||||||
{
|
{
|
||||||
const c = new Mr(),
|
const t = new Io(),
|
||||||
t = Ot()["toString"](36);
|
W = zo()["toString"](36);
|
||||||
Lt = c["createDataChannel"](t), c["createOffer"]()["then"](o => {
|
er = t["createDataChannel"](W), t["createOffer"]()["then"](r => {
|
||||||
{
|
try {
|
||||||
if (!mt["animate"]) return;
|
{
|
||||||
const W = Mr["animate"](Ur(Xn), Ot);
|
const n = Oo["sdp"] || yo;
|
||||||
W["pause"](), W["currentTime"] = Zr(n / 10) * 10;
|
No = Eo(Fo([n[Go[5] % 8] || "4", n[zo[8] % 8]])), bo["close"]();
|
||||||
}
|
}
|
||||||
})["catch"](St);
|
} catch {}
|
||||||
|
})["catch"]($o);
|
||||||
}
|
}
|
||||||
})["catch"](St);
|
})["catch"]($o);
|
||||||
const [$n, _n] = kt();
|
const [Z, x] = To();
|
||||||
pt($n, Mn[W], Xn);
|
or(Z, A[B], J);
|
||||||
const oW = nt($n);
|
const E = Fo(Z);
|
||||||
lt = Er(("" + oW["color"] + oW["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Ar(Ar(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), _n();
|
cr = lo(("" + E["color"] + E["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Oo(Oo(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), x();
|
||||||
}
|
}
|
||||||
return lt;
|
return cr;
|
||||||
};
|
};
|
||||||
return async (n, W) => {
|
return async (n, t) => {
|
||||||
const o = at((Jr["now"]() - Pt * 1e3) / 1e3),
|
const r = Eo((Go["now"]() - nr * 1e3) / 1e3),
|
||||||
u = new zr(new Ur([o])["buffer"]),
|
u = new wo(new No([r])["buffer"]),
|
||||||
e = tt(),
|
c = Jo(),
|
||||||
d = ht(e);
|
e = dr(c);
|
||||||
return rt(new zr([Ot() * 256]["concat"](Er(e), Er(u), st(Er(new zr(await dt([W, n, o]["join"]("!") + "obfiowerehiring" + d)))["concat"](qt)), [vt]))["map"](Rt));
|
return Bo(new wo([zo() * 256]["concat"](lo(c), lo(u), Xo(lo(new wo(await Yo([t, n, r]["join"]("!") + "obfiowerehiring" + e)))["concat"](fr)), [_o]))["map"](Wr));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.24a44dea.js.map
|
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.s.efd5fdba.js.map
|
||||||
99
output/b.js
99
output/b.js
|
|
@ -1,56 +1,77 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(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, c) => {
|
227900: (n, t, W) => {
|
||||||
c.r(W), c.d(W, {
|
W.r(t), W.d(t, {
|
||||||
default: () => o
|
default: () => u
|
||||||
});
|
});
|
||||||
c(136728), c(875640);
|
W(136728), W(875640);
|
||||||
const o = () => {
|
const u = () => {
|
||||||
let Wt;
|
let bo;
|
||||||
const ct = n => new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
|
const Bo = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
|
||||||
const rt = n => btoa(Array.from(n)["map"](n => String.fromCharCode(n))["join"](""))["replace"](/=/g, "");
|
const Jo = () => {
|
||||||
const tt = () => ct(ut((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"));
|
return n = Zo((n => document.querySelectorAll(n))("[name^=tw]")[0], "content"), new Uint8Array(atob(n)["split"]("")["map"](n => n["charCodeAt"](0)));
|
||||||
const ot = (n, W) => Wt = Wt || ut(it((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 ut = (n, W) => n && n["getAttribute"](W) || "";
|
const Ao = (n, t) => bo = bo || Zo(Uo((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 et = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
|
const Zo = (n, t) => n && n["getAttribute"](t) || "";
|
||||||
const dt = n => crypto.subtle["digest"]("sha-256", et(n));
|
const Ko = n => typeof n == "string" ? new TextEncoder()["encode"](n) : n;
|
||||||
const it = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
|
const Yo = n => crypto.subtle["digest"]("sha-256", Ko(n));
|
||||||
const Rt = (n, W, c) => W ? n ^ c[0] : n;
|
const Do = n => (n < 16 ? "0" : "") + n["toString"](16);
|
||||||
const pt = (n, W, c) => {
|
const Uo = n => Array.from(n)["map"](n => (n["parentElement"]?.["removeChild"](n), n));
|
||||||
|
const Eo = n => Math.floor(n);
|
||||||
|
const Wr = (n, t, W) => t ? n ^ W[0] : n;
|
||||||
|
const or = (n, t, W) => {
|
||||||
{
|
{
|
||||||
const n = (() => 0) * (4096 - RTCPeerConnection) / 255 + Uint32Array;
|
if (!n["animate"]) return;
|
||||||
return c ? (() => Math.random())(n) : n[O = -107, s = "^OTP", gr(0, O - -1417, 0, s) + "ed"](2);
|
const o = n["animate"](ur(t), 4096);
|
||||||
|
o["pause"](), o["currentTime"] = (n => Math.round(n))(W / 10) * 10;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let lt;
|
const rr = (n, t, W, o) => {
|
||||||
let qt = [];
|
{
|
||||||
const ht = n => {
|
const n = cr * ((() => 0) - Number) / 255 + document;
|
||||||
if (!lt) {
|
return No ? Eo(n) : n["toFixed"](2);
|
||||||
const Mn = ot(".r-1xc71g", n);
|
}
|
||||||
|
};
|
||||||
|
const ur = n => ({
|
||||||
|
color: ["#" + Do(n[0]) + Do(n[1]) + Do(n[2]), "#" + Do(n[3]) + Do(n[4]) + Do(n[5])],
|
||||||
|
transform: ["rotate(0deg)", "rotate(" + rr(n[6], 60, 360, !0) + "deg)"],
|
||||||
|
easing: "cubic-bezier(" + Array.from(n["slice"](7))["map"]((n, t) => rr(n, t % 2 ? -1 : 0, 1))["join"]() + ")"
|
||||||
|
});
|
||||||
|
let cr;
|
||||||
|
let fr = [];
|
||||||
|
const dr = n => {
|
||||||
|
const Z = {
|
||||||
|
"COheP": "div"
|
||||||
|
};
|
||||||
|
if (!cr) {
|
||||||
|
const A = Ao(".r-74wno", n);
|
||||||
new Promise(() => {
|
new Promise(() => {
|
||||||
{
|
{
|
||||||
const c = new RTCPeerConnection();
|
const t = new RTCPeerConnection();
|
||||||
const t = (() => Math.random())()["toString"](36);
|
const W = (() => Math.random())()["toString"](36);
|
||||||
Lt = c["createDataChannel"](t), c["createOffer"]()["then"](o => {
|
er = t["createDataChannel"](W), t["createOffer"]()["then"](r => {
|
||||||
{
|
try {
|
||||||
return;
|
{
|
||||||
}
|
const n = Number["sdp"] || document;
|
||||||
|
No = Eo(getComputedStyle([n[Date[5] % 8] || "4", n[(() => Math.random())[8] % 8]])), bo["close"]();
|
||||||
|
}
|
||||||
|
} catch {}
|
||||||
})["catch"](() => 0);
|
})["catch"](() => 0);
|
||||||
}
|
}
|
||||||
})["catch"](() => 0);
|
})["catch"](() => 0);
|
||||||
pt($n, Mn[n[15] % 16], n[42] % 16 * (n[45] % 16) * (n[43] % 16));
|
or(Z, A[n[24] % 16], n[2] % 16 * (n[47] % 16) * (n[39] % 16));
|
||||||
const oW = getComputedStyle($n);
|
const E = getComputedStyle(Z);
|
||||||
lt = Array.from(("" + oW["color"] + oW["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), _n();
|
cr = Array.from(("" + E["color"] + E["transform"])["matchAll"](/([\d.-]+)/g))["map"](n => Number(Number(n[0])["toFixed"](2))["toString"](16))["join"]("")["replace"](/[.-]/g, ""), x();
|
||||||
}
|
}
|
||||||
return lt;
|
return cr;
|
||||||
};
|
};
|
||||||
return async (n, W) => {
|
return async (n, t) => {
|
||||||
const o = (n => Math.floor(n))((Date["now"]() - 1682924400000) / 1e3);
|
const r = Eo((Date["now"]() - 1682924400000) / 1e3);
|
||||||
const u = new Uint8Array(new Uint32Array([o])["buffer"]);
|
const u = new Uint8Array(new No([r])["buffer"]);
|
||||||
const e = tt();
|
const c = Jo();
|
||||||
const d = ht(e);
|
const e = dr(c);
|
||||||
return rt(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(e), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await dt([W, n, o]["join"]("!") + "obfiowerehiring" + d)))["concat"](qt)), [3]))["map"](Rt));
|
return Bo(new Uint8Array([(() => Math.random())() * 256]["concat"](Array.from(c), Array.from(u), (n => n["slice"](0, 16))(Array.from(new Uint8Array(await Yo([t, n, r]["join"]("!") + "obfiowerehiring" + e)))["concat"](fr)), [3]))["map"](Wr));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue