master
刘东琪 8 months ago
parent a7dc9e132c
commit 8123233e5e
  1. 22
      routes/service/static/fp/fp-crypt.js
  2. 27
      test/fp/chunk-npjg4qgmmrfrjl3r.js
  3. 14
      test/fp/test_ueryFpjcxx.js

@ -8,11 +8,11 @@ class FpCrypt {
publicKey: "", tokenKey: "" publicKey: "", tokenKey: ""
}; };
constructor(cookies, publicKey) { constructor(cookies) {
this.cookie = cookies this.cookie = cookies
if (publicKey) { // if (publicKey) {
this.publicKey = publicKey // this.publicKey = publicKey
} // }
} }
/** /**
@ -21,16 +21,16 @@ class FpCrypt {
* @param e * @param e
* @returns {*} * @returns {*}
*/ */
handleSuffix = function (t, e) { handleSuffix(t, e) {
var a = '1|4|2|0|3'['split']("|"), var a = '1|4|2|0|3'['split']("|"),
c = 0, s, l, f, d, p, h; c = 0, s, l, f, d, p, h;
if (!t) return t; if (!t) return t;
if (t['indexOf']('cssSecurity/v1/getPublicKey') > -1) return t; if (t['indexOf']('cssSecurity/v1/getPublicKey') > -1) return t;
s = t; s = t;
l = this.Re(); l = this.Re();
f = l['publicKey']; // f = l['publicKey'];
d = l['tokenKey']; // d = l['tokenKey'];
h = l['urlType']; // h = l['urlType'];
p = l['urlYzm']; p = l['urlYzm'];
s = this.He(s, d, 0, e) s = this.He(s, d, 0, e)
if (p) { if (p) {
@ -104,13 +104,13 @@ class FpCrypt {
return l return l
} }
He (t, e, n, o) { He(t, e, n, o) {
var s = t; var s = t;
if (s["indexOf"]("urlyzm=") > -1) return s; if (s["indexOf"]("urlyzm=") > -1) return s;
s = this.Ke(s); s = this.Ke(s);
var l, f = (new Date)['valueOf'](), var l, f = (new Date)['valueOf'](),
d = (this.qe()["num"] % 2) === 0 ? (50 * Math['random'](1)) : (49 * Math[c(2638)]()) + 51; d = (this.qe()["num"] % 2) === 0 ? (50 * Math['random'](1)) : (49 * Math[c(2638)]()) + 51;
if((d >= 0) && (d <= 50)){ if ((d >= 0) && (d <= 50)) {
l = this.Qs(f) l = this.Qs(f)
} }
// (d >= 0) && (d <= 50) ? l = this.Qs(f) : (d >= 51) && d <= 100 && (l = function (t, e) { // (d >= 0) && (d <= 50) ? l = this.Qs(f) : (d >= 51) && d <= 100 && (l = function (t, e) {
@ -276,7 +276,7 @@ class FpCrypt {
}; };
Ae(t) { Ae(t) {
var n = "4|2|1|3|0"["split"]("|"), i = 0,o,l,s; var n = "4|2|1|3|0"["split"]("|"), i = 0, o, l, s;
while (1) { while (1) {
switch (n[i++]) { switch (n[i++]) {
case "0": case "0":

@ -5160,12 +5160,19 @@ logger = console.info;
}) })
return _0x534587; return _0x534587;
} }
this["$_y_ds"] = "";
this["$byno"] = () => { this["$byno"] = () => {
const _0x475ce7 = document["querySelector"]("head meta[name='_y_ds']"); let _y_ds = "";
if (_0x475ce7) { let _0x475ce7 = document["querySelector"]("head meta[name='_y_ds']");
var _0x13f88b = _0x475ce7["content"]; if(window.$_y_ds != null && window.$_y_ds !== ""){
// logger('1.获取meta标签 _y_ds', _0x13f88b) _y_ds = window.$_y_ds;
var _0x4a87cf = _0x2c29b1(_0x13f88b, window); 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);
// logger('2.获取密钥', _0x4a87cf) // logger('2.获取密钥', _0x4a87cf)
if (_0x4a87cf == null) { if (_0x4a87cf == null) {
return; return;
@ -5173,14 +5180,14 @@ logger = console.info;
_0x4a87cf["run"](); _0x4a87cf["run"]();
_0x475ce7["content"] = ''; _0x475ce7["content"] = '';
_0x475ce7["parentNode"]["removeChild"](_0x475ce7); _0x475ce7["parentNode"]["removeChild"](_0x475ce7);
const _0x1031c9 = document["querySelector"]("head script[id='_y_ds_s']"); // const _0x1031c9 = document["querySelector"]("head script[id='_y_ds_s']");
_0x1031c9 && _0x1031c9["parentNode"]["removeChild"](_0x1031c9); // _0x1031c9 && _0x1031c9["parentNode"]["removeChild"](_0x1031c9);
} }
const _0x1c8f5a = document["querySelector"]("head meta[name='_x_ds']"); const _0x1c8f5a = document["querySelector"]("head meta[name='_x_ds']");
if (_0x1c8f5a) { if (_0x1c8f5a) {
var _0x4252bc = _0x1c8f5a["content"]; var _x_ds = _0x1c8f5a["content"];
logger('4.获取meta标签 _x_ds', _0x4252bc) logger('4.获取meta标签 _x_ds', _x_ds)
var _0x4252bc = _0x15817b["decode"](_0x4252bc); var _0x4252bc = _0x15817b["decode"](_x_ds);
logger('5.解密_x_ds', _0x4252bc) logger('5.解密_x_ds', _0x4252bc)
_0x4252bc["length"] > 0 && (window["zextdata"] = _0x4252bc["split"](",")); _0x4252bc["length"] > 0 && (window["zextdata"] = _0x4252bc["split"](","));
} }

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save