mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-03-14 14:44:44 +08:00
7 lines
176 KiB
JavaScript
7 lines
176 KiB
JavaScript
|
/*
|
||
|
0 6,20 * * * jd_cjzzj.js
|
||
|
*/
|
||
|
|
||
|
const $ = new Env('超级抓抓机');
|
||
|
var YtIMXp,MaPb7C,Vgb1dfR,GNdLKB,LowHSm,M1G2BKj,GagqD6,G5nMOhf,EewLFSx,YOK7ge,OSPOmw6;function RlShLa2(YtIMXp,MaPb7C,Vgb1dfR){for(Vgb1dfR=0x0;Vgb1dfR<MaPb7C;Vgb1dfR++)YtIMXp.push(YtIMXp.shift());return YtIMXp}const qquaS8=[0x0,0x1,0x8,0xff,"length","undefined","c",0x3f,0x6,"fromCodePoint",0x7,0xc,"push","a",0x1e,0xf9,"i","g",0x5b,"e","f",0x1fff,0x58,0xd,0xe,0x4,0x56,!0x1,0x61,0x2,0xf,0x25,0x9,0xe1,"d",0x65,0x67,0x94,0x5a,"h",0xb5,0x28,0x77,0xec,0x7c,0x7d,0x1f,"b",0xcd,0xd4,0x50,0x7f,0x80,0xbd,0xb,0x9e,0xd7,0x5,0x27,0xfa,0x64,0x3,0x33,0x29,0x9c,0xc5,0x8d,0x8e,!0x0,0x71,0x13,0x97,0xbf,0x4f,0xa9,0x9b,0x9d,0x1f4,0x258,0xa,0x6a,0x69,0x68,0xe5,0x79,0xc4,0xcb,0xb3,0xb4,0xb2,"UA",0x75,0x19,0xc2,0xc9,0xd3,0xcc,0xd2,0x36,0x10,0x200,0xdf,0xb7,0x91,0x96,0xdc,0x3ff,0xc0,0x12,0x30,0x20,0x18,0x40,0xb1,0xffff,0xef,0xe0,0xa7,0x90,0xbc,0x92,0x5c,0x45,0xeb,0xf0,0xda,0x98,0x72,0xa3,0x100,0x66,0x107,0x3e8,0x10a,0x10c,0x10d,0x7d0,0x21,0x59,0x4e,0xb6,0xc8,0x16,0x2a,0x6f,0x124,0x125,0x22,0x138,0x132,0x135,0x12d,0x137,0x13e,0x139,0x12b,0x140,0x143,null,0xa1,0x95,0xca,0x15e,0x166,0x161,0x93,0x174,0xf1,0x3c,";",0x17f,0x181,0x183,0x178,0x189,0x188,0x177,0x179,0x9a,0xd9,"\uD83E\uDD54",0xc7,0x19b,"\uD83D\uDCC0",0x4d,0xd800,0xdbff,0xdc00,0x10000,0xd1,void 0x0,0x78,0xdfff,0x1ad,0x1ae,0x6e,0x46,0xf8,0x198,0x1b5,0x1b6,0x1b3,0x1b4,0x36363636,0x5c5c5c5c,0xcf,0xaf,0x7ff,0x1fffff,0x51,0x11,0x1c,0x3d,0x428a2f98,0x71374491,0x4a3f0431,0x164a245b,0x3956c25b,0x59f111f1,0x6dc07d5c,0x54e3a12b,0x27f85568,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x7f214e02,0x6423f959,0x3e640e8c,0x1b64963f,0x1041b87a,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x67c1aeae,0x57ce3993,0x4ffcd838,0x40a68039,0x391ff40d,0x2a586eb9,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x7e3d36d2,0x6d8dd37b,0x5d40175f,0x57e599b5,0x3db47490,0x3893ae5d,0x2e6d17e7,0x2966f9dc,0xbf1ca7b,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x7b3787ec,0x7338fdf8,0x6f410006,0x5baf9315,0x41065c09,0x398e870e,0x6a09e667,0x4498517b,0x3c6ef372,0x5ab00ac6,0x510e527f,0x64fa9774,0x1f83d9ab,0x5be0cd19," \u274C",0x1cc,"\u706B\u7206",0xaa,0x52,0x31,0x3a,0xea,0xa2,0x1ed,0x57,0x14,0x1f3,0x1f5,0x5e,0x201,"\u3011",0xad,0x83,0x16b,0x1f0];h6QDsL(L6Kw_T(GVCSql),L6Kw_T(EH0gNea),L6Kw_T(cJYdb77));function L6Kw_T(YtIMXp,MaPb7C=qquaS8[0x1]){Object.defineProperty(YtIMXp,qquaS8[0x4],{value:MaPb7C,configurable:qquaS8[0x1b]});return YtIMXp}function TUjbT_0(YtIMXp){var MaPb7C="52+DP`9dT{^nl,|#.1:}r&Vjp?6~(Q$UgKLJZA;@SX0osImaMH>N/*qBE=ihbcz%_RtyC7\"xO3[FG!fw4v8Ye]k)<uW",Vgb1dfR,GNdLKB,LowHSm,M1G2BKj,GagqD6,G5nMOhf,EewLFSx;h6QDsL(Vgb1dfR=""+(YtIMXp||""),GNdLKB=Vgb1dfR.length,LowHSm=[],M1G2BKj=qquaS8[0x0],GagqD6=qquaS8[0x0],G5nMOhf=-qquaS8[0x1]);for(EewLFSx=qquaS8[0x0];EewLFSx<GNdLKB;EewLFSx++){var YOK7ge=MaPb7C.indexOf(Vgb1dfR[EewLFSx]);if(YOK7ge===-qquaS8[0x1])continue;if(G5nMOhf<qquaS8[0x0]){G5nMOhf=YOK7ge}else{h6QDsL(G5nMOhf+=YOK7ge*qquaS8[0x12],M1G2BKj|=G5nMOhf<<GagqD6,GagqD6+=(G5nMOhf&qquaS8[0x15])>qquaS8[0x16]?qquaS8[0x17]:qquaS8[0x18]);do{h6QDsL(LowHSm.push(M1G2BKj&qquaS8[0x3]),M1G2BKj>>=qquaS8[0x2],GagqD6-=qquaS8[0x2])}while(GagqD6>qquaS8[0xa]);G5nMOhf=-qquaS8[0x1]}}if(G5nMOhf>-qquaS8[0x1]){LowHSm.push((M1G2BKj|G5nMOhf<<GagqD6)&qquaS8[0x3])}return EH0gNea(LowHSm)}function cJYdb77(...Vgb1dfR){Vgb1dfR[qquaS8[0x4]]=qquaS8[0x1];if(typeof YtIMXp[Vgb1dfR[qquaS8[0x0]]]===qquaS8[0x5]){return YtIMXp[Vgb1dfR[qquaS8[0x0]]]=TUjbT_0(MaPb7C[Vgb1dfR[qquaS8[0x0]]])}return YtIMXp[Vgb1dfR[qquaS8[0x0]]]}h6QDsL(YtIMXp={},MaPb7C=RlShLa2(["f9_9.vZ+","4T8~aFZC1V+NPbF,m1hMkodJ4qe>Y+G69AO{N8m$$Tv\"|c,","J[sUz!zp>%(R+,(o^P`^(CUFT1gk&?:|Ql5HrSOzI:FE0m6.}!HD;]q$*}/I\"6*&sDFT/Lu1j/U","Q#ygI4;+uhtH\"AlgBjo6rSvNJc9M?pk.8?%$0)sZ9c//?p:|@zp~k(]%XzpOXP*Q_0>Fp_9_ozlNDi61)\"n6I$}ak/=!H,7g5j&G#7m9b*u=gbn|P![T7URN9B2XV,`}4?n6I$p${d3E#a`}\"?1TwKP[7^3Ec7A}b)3T7U)1s*3vWm:|QM*Pu(5","\"j?qfv5","CN/!o45","yDb!OVwdM:i/Y6d","(b,^6","AxWUy?L}HSX<#","M=Ngh!p+","mBVCS","*+M\"UJ1#i^Q#A;49Ir)[L;_d|}8zCwd~]t!V(+#WP$tvPEN9i^}jVbef*Yy~F7^:^Q}IMdv^C35I
|
||
|
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d
|