diff --git a/routes/service/static/fp/fp-crypt.js b/routes/service/static/fp/fp-crypt.js index 19d977b..faf5816 100644 --- a/routes/service/static/fp/fp-crypt.js +++ b/routes/service/static/fp/fp-crypt.js @@ -8,11 +8,11 @@ class FpCrypt { publicKey: "", tokenKey: "" }; - constructor(cookies) { + constructor(cookies, publicKey) { this.cookie = cookies - // if (publicKey) { - // this.publicKey = publicKey - // } + if (publicKey) { + this.publicKey = publicKey + } } /** @@ -30,7 +30,7 @@ class FpCrypt { s = t; l = this.Re(); // f = l['publicKey']; - // d = l['tokenKey']; + d = l['tokenKey']; // h = l['urlType']; p = l['urlYzm']; s = this.He(s, d, 0, e) @@ -40,52 +40,6 @@ class FpCrypt { } logger(`处理url后缀${t} 完成返回${s}`) return s; - // while (1) { - // switch (a[c++]) { - // case "0": - // // if (h && ("" !== h) && "1" !== h && (1 !== h)) - // // ("2" === h) && (s = function (t, e, r) { - // // var a = t; - // // if (t['indexOf']('urlyzm=') > -1) return t; - // // if (t = this.He(t), r) { - // // var c = t["indexOf"]("?"), u = t['substring']((c + 1)), s = u['indexOf']('ruuid='), - // // l = u['substring'](s + 6); - // // l = l['substring'](0, l['indexOf']("&")); - // // var f = t['substring'](0, c), - // // d = t["indexOf"]("?") > -1 ? t['substring'](0, t['indexOf']("?")) : t; - // // t = Ye(u, d); - // // t = ""["concat"](f, '?urlyzm=')['concat'](encodeURIComponent(t), '&ruuid=')['concat'](l) - // // } - // // return t - // // }(s, 0, f)); - // // else - // s = this.He(s, d, 0, e) - // if (p) { - // var u = (new Date)['valueOf'](); - // s += '&urls='['concat'](u) - // } - // logger(`处理url后缀${t} 完成返回${s}`) - // return s; - // case "1": - // if (!t) return t; - // continue; - // case "2": - // s = t; - // l = this.Re(); - // f = l['publicKey']; - // d = l['tokenKey']; - // h = l['urlType']; - // p = l['urlYzm']; - // continue; - // case "3": - // logger(`处理url后缀${t} 完成返回${s}`) - // return s; - // case "4": - // if (t['indexOf']('cssSecurity/v1/getPublicKey') > -1) return t; - // continue - // } - // break - // } } /** @@ -111,41 +65,31 @@ class FpCrypt { s = this.Ke(s); var l, f = (new Date)['valueOf'](), d = (this.qe()["num"] % 2) === 0 ? (50 * Math['random'](1)) : (49 * Math['random']()) + 51; + d = ((this.qe()['num'] % 2) === 0) ? (50 * Math['random'](1)) : (49 * Math['random']()) + 51; if ((d >= 0) && (d <= 50)) { l = this.Qs(f) + } else if ((d >= 51) && d <= 100) { + l = this.Qt(f, e) } - // (d >= 0) && (d <= 50) ? l = this.Qs(f) : (d >= 51) && d <= 100 && (l = function (t, e) { - // // TODO: 偷懒 - // return null; - // // var n = c; - // // if ('PwUOp' === 'PwUOp') { - // // for (var r = this.qe(), o = r[n(3123)], s = r[n(2049)], l = i[n(5528)](i[n(2694)](a, ""["concat"](t)[n(619)](""))["join"](""), a(""["concat"](s)[n(619)](""))[n(739)]("")), f = "", d = 0; i[n(3114)](d, l[n(6147)]); d += o) { - // // var h = l[n(6370)](d, d + o); - // // f += i[n(2694)](a, h[n(619)](""))[n(739)]("") - // // } - // // var p = "", v = e; - // // if (e) for (var b = 0; i[n(3114)](b, v[n(6147)]); b += o) { - // // var g = v["substring"](b, i[n(5528)](b, o)); - // // p += a(g["split"](""))["join"]("") - // // } else p = i[n(5434)]; - // // return p = i[n(2694)](a, ""['concat'](p)[n(619)](""))[n(739)](""), i[n(5528)](i[n(5528)](i[n(5528)](f[n(6370)](0, 5), p[n(6370)](5, 10)), f[n(6370)](15, 20)), p["substring"](20, 25)) - // // } - // // for (var m = _0x34c263[_0x383cd9], y = u[n(5694)](_0x30e1f9, 1); y < _0x181e94["length"] && u[n(4847)](m, _0x4913da);) m *= _0x12c36b[y++]; - // // for (m = _0x469f9b[n(1024)](m); u["tKkZS"](_0x4bdcfe, y);) if (u[n(5152)](u["wSsxC"](m, _0x4de108[_0x8b459++]), 0)) return !1 - // }(f, e)); var h = s['indexOf']("?") === (s["length"] - 1) ? "" : s['indexOf']("?") > -1 ? "&" : "?", p = s += ""['concat'](h, "ruuid=")['concat'](f); - // if (o) { - // var v = p['split']("?")['splice'](1); - // for (var b in v['map']((function (t) { - // return t["split"]("=")[0] - // })), o) if (!v["includes"](""["concat"](b))) if (i[c(2228)](i[c(315)], c(6715))) _0x2cc2bd("crypto"); else { - // var g = b["charAt"](0)['toUpperCase'](); - // b['length'] > 1 && (g += b['slice'](1)); - // var m = o[b]; - // i[c(2228)](void 0, m) && (p += "&"["concat"](g, "=")["concat"](m)) - // } - // } + if (o) { + var v = p['split']("?")['splice'](1); + for (var b in v['map'](function (t) { + return t["split"]("=")[0] + }), o) { + if (!v["includes"](""["concat"](b))) { + if (('NenAk' !== 'NenAk')) { + // _0x2cc2bd("crypto"); + } else { + var g = b["charAt"](0)['toUpperCase'](); + b['length'] > 1 && (g += b['slice'](1)); + var m = o[b]; + (void 0 !== m) && (p += "&"["concat"](g, "=")["concat"](m)) + } + } + } + } var y = ""["concat"](l, "+")["concat"](p), x = this.he(y); return s + ""["concat"](s["indexOf"]("?") ? "&" : "?", "urlyzm=")["concat"](encodeURIComponent(x)) } @@ -165,6 +109,30 @@ class FpCrypt { return (((l["substring"](0, 5) + l['substring'](15, 20)) + l['substring'](5, 10)) + l['substring'](20, 25)) }; + Qt(t, e) { + var r = this.qe(), + o = r['num'], + s = r['tokenVal'], + l = (this.a(""["concat"](t)['split'](""))["join"]("") + this.a(""["concat"](s)['split'](""))["join"]("")), + f = ""; + for (var d = 0; d < l['length']; d += o) { + var h = l['substring'](d, d + o); + f += this.a(h['split'](""))['join']("") + } + var p = "", + v = e; + if (e) { + for (var b = 0; (b < v['length']); b += o) { + var g = v["substring"](b, b + o); + p += this.a(g["split"](""))["join"]("") + } + } else { + p = 'wk123med876dfesd57m72hnb3yfm98fs'; + } + p = this.a(""['concat'](p)['split'](""))['join'](""); + return (((f['substring'](0, 5) + p['substring'](5, 10)) + f['substring'](15, 20)) + p["substring"](20, 25)) + } + Ye(t, e) { var o = this.ke(32), a = "".concat(o).concat(t), c = this.Ue("", e); return this.de(a, c) diff --git a/test/fp/chunk-npjg4qgmmrfrjl3r.js b/test/fp/chunk-npjg4qgmmrfrjl3r.js index a244386..7c3ff07 100644 --- a/test/fp/chunk-npjg4qgmmrfrjl3r.js +++ b/test/fp/chunk-npjg4qgmmrfrjl3r.js @@ -1,5 +1,5 @@ // fp底层js -logger = console.info; +logger = console.log; //去除解密函数 // function _0xf207() { @@ -5160,19 +5160,12 @@ logger = console.info; }) return _0x534587; } - this["$_y_ds"] = ""; this["$byno"] = () => { - let _y_ds = ""; - let _0x475ce7 = document["querySelector"]("head meta[name='_y_ds']"); - if(window.$_y_ds != null && window.$_y_ds !== ""){ - _y_ds = window.$_y_ds; - logger('1.获取传入数据 _y_ds', _y_ds) - } else if (_0x475ce7) { - _y_ds = _0x475ce7["content"]; - logger('1.获取meta标签 _y_ds', _y_ds) - } - if (_y_ds){ - var _0x4a87cf = _0x2c29b1(_y_ds, window); + const _0x475ce7 = document["querySelector"]("head meta[name='_y_ds']"); + if (_0x475ce7) { + var _0x13f88b = _0x475ce7["content"]; + // logger('1.获取meta标签 _y_ds', _0x13f88b) + var _0x4a87cf = _0x2c29b1(_0x13f88b, window); // logger('2.获取密钥', _0x4a87cf) if (_0x4a87cf == null) { return; @@ -5180,14 +5173,14 @@ logger = console.info; _0x4a87cf["run"](); _0x475ce7["content"] = ''; _0x475ce7["parentNode"]["removeChild"](_0x475ce7); - // const _0x1031c9 = document["querySelector"]("head script[id='_y_ds_s']"); - // _0x1031c9 && _0x1031c9["parentNode"]["removeChild"](_0x1031c9); + const _0x1031c9 = document["querySelector"]("head script[id='_y_ds_s']"); + _0x1031c9 && _0x1031c9["parentNode"]["removeChild"](_0x1031c9); } const _0x1c8f5a = document["querySelector"]("head meta[name='_x_ds']"); if (_0x1c8f5a) { - var _x_ds = _0x1c8f5a["content"]; - logger('4.获取meta标签 _x_ds', _x_ds) - var _0x4252bc = _0x15817b["decode"](_x_ds); + var _0x4252bc = _0x1c8f5a["content"]; + logger('4.获取meta标签 _x_ds', _0x4252bc) + var _0x4252bc = _0x15817b["decode"](_0x4252bc); logger('5.解密_x_ds', _0x4252bc) _0x4252bc["length"] > 0 && (window["zextdata"] = _0x4252bc["split"](",")); } diff --git a/test/fp/chunk-vendors.5dea4a66.js b/test/fp/chunk-vendors.5dea4a66.js index fa69bf9..c8d247a 100644 --- a/test/fp/chunk-vendors.5dea4a66.js +++ b/test/fp/chunk-vendors.5dea4a66.js @@ -84323,7 +84323,8 @@ logger = console.info; var xe = [_0x27c221[r(1772)]], _e = r(3236), we = _0x27c221["AJhNq"], Oe = "4889e050", je = _0x27c221[r(6919)], Ce = "efdcb0cc", Se = _0x27c221["eeJzi"], Pe = _0x27c221["qxWSp"], - De = "", Ee = 12, ke = function (t, e) { + De = "", Ee = 12, + ke = function (t, e) { var n, i, o = r, a = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"["split"](""), c = []; if (e = e || a["length"], t) for (n = 0; n < t; n++) c[n] = a[0 | (Math["random"]() * e)]; else for (c[8] = c[13] = c[18] = c[23] = "-", c[14] = "4", n = 0; (n < 36); n++) c[n] || (i = 0 | (16 * Math["random"]()), c[n] = a[19 === n ? 8 | (3 & i) : i]); diff --git a/test/fp/invoice-business.html b/test/fp/invoice-business.html index 143ac17..7657c30 100644 --- a/test/fp/invoice-business.html +++ b/test/fp/invoice-business.html @@ -1,45 +1,45 @@ -