faker3/jd_super_zzj.js

12 lines
80 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
超级抓抓机
2024-11-22 17:29:25 +08:00
cron:15 3,15 * * *
2024-11-12 11:17:55 +08:00
*/
const $ = new Env('超级抓抓机')
2024-11-22 17:29:25 +08:00
function ZHO4qU(){}var ZZxsuf=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],j9HcxA,dzZ3Mi,qN1rfi,pd1xN1X,D9bi1h,pKDLymz,AIXxMtC,LTuR9F,Lbhj8Ud,magCvLA,VmdDbz,uPqSski,SzKpqi,RANs86,PNI8uHr;function zltdo5v(ZHO4qU){return j9HcxA[ZHO4qU>0xea?ZHO4qU-0x1f:ZHO4qU<0xea?ZHO4qU>0xea?ZHO4qU+0x32:ZHO4qU-0x21:ZHO4qU+0x4e]}j9HcxA=mZF1Yp0();function HsHuCDT(ZHO4qU,ZZxsuf){return dzZ3Mi.call(null,ZHO4qU,'length',{value:ZZxsuf,configurable:!0x0})}ZHO4qU(dzZ3Mi=Object.defineProperty,qN1rfi=AE7iuth((ZHO4qU,ZZxsuf)=>{return ZZxsuf(ZHO4qU())},0x2)(ij2usfY,QRdmvK));var PiOBOyu=[],lfLN_Oz=[NQXzql(0x0),NQXzql(0x1),NQXzql(zltdo5v(0x3c)),NQXzql(zltdo5v(0x2d)),NQXzql(0x4),NQXzql(0x5),'\u0047\u004e\u005f\u0060\u003c\u0030\u0065\u007c',NQXzql(zltdo5v(0x32)),NQXzql(0x7),NQXzql(0x8),NQXzql(0x9),NQXzql(0xa),NQXzql(0xb),NQXzql(zltdo5v(0x34)),NQXzql(zltdo5v(0x26)),NQXzql(zltdo5v(0x49)),NQXzql(0xf),NQXzql(zltdo5v(0x92)),NQXzql(0x11),'2gPN9(7]Fx)"(6u8&rwROJ]&MBv!N?wNWWEBa7n{ow%e^QQtC_DR,vC&:XD7liywf,l*l"(rhz(xAO4cmD]7@kPuYGt[d2:N::jK{341WLX>|e9A','M:XKV|u`',NQXzql(0x12),NQXzql(0xe),NQXzql(0x13),NQXzql(zltdo5v(0x21)),NQXzql(0x15),NQXzql(0x16),NQXzql(0x17),'\u0023\u007b\u003d\u004c\u005e\u007c\u0045\u0060',NQXzql(zltdo5v(0x22)),NQXzql(0x19),NQXzql(0x1a),NQXzql(zltdo5v(0x37)),NQXzql(0x1c),NQXzql(0x1d),NQXzql(0x1e),NQXzql(0x1f),NQXzql(0x20),NQXzql(zltdo5v(0x21)),NQXzql(0x21),NQXzql(0x16),NQXzql(0x17),NQXzql(0x22),NQXzql(zltdo5v(0x22)),NQXzql(0x23),NQXzql(0x19),NQXzql(0x1a),NQXzql(zltdo5v(0x55)),NQXzql(zltdo5v(0x45)),NQXzql(0x25),NQXzql(zltdo5v(0x2a)),NQXzql(0x1f),NQXzql(0x27),NQXzql(0x28),NQXzql(zltdo5v(0x5f)),NQXzql(0x2a),NQXzql(0x2b),NQXzql(zltdo5v(0x60)),NQXzql(0x2d),NQXzql(zltdo5v(0x61)),NQXzql(zltdo5v(0x24)),'{|z[rn_V>','o|^[',NQXzql(zltdo5v(0x62)),'|Y%6*8PK',NQXzql(0x31),NQXzql(0x32),'qA^Bh|ESh',NQXzql(0x11),NQXzql(zltdo5v(0x64)),NQXzql(0x34),NQXzql(0x35),NQXzql(0x36),NQXzql(0x37),'[y^vIth""Xk2/4SAhyp}|!3Di',NQXzql(0x38),NQXzql(0x39),NQXzql(zltdo5v(0x3e)),NQXzql(0x3b),NQXzql(zltdo5v(0x6e)),NQXzql(0x3d),NQXzql(zltdo5v(0x28)),NQXzql(zltdo5v(0x35)),zltdo5v(0x23),NQXzql(zltdo5v(0x36)),NQXzql(0x40),NQXzql(0x41),'1Ko,!2@rrwx>q^:E@KlH)7|u(',NQXzql(0x42),NQXzql(zltdo5v(0x3d)),NQXzql(zltdo5v(0x70)),NQXzql(zltdo5v(0x52)),NQXzql(zltdo5v(0x71)),NQXzql(zltdo5v(0x40)),NQXzql(0x48),NQXzql(0x3e),NQXzql(zltdo5v(0x50)),NQXzql(0x49),NQXzql(0x4a),NQXzql(0x4b),NQXzql(0x4c),NQXzql(0x4d),zltdo5v(0x23),NQXzql(0x4e),NQXzql(0x4f),'\x73\x40\x64\x7c\x5f\x32\x33\x35\x2f\x77',NQXzql(zltdo5v(0x72)),NQXzql(0x51),NQXzql(0x4b),NQXzql(zltdo5v(0x73)),NQXzql(zltdo5v(0x30)),NQXzql(0x54),NQXzql(0x55),'o|1M3n,6~Eg49',NQXzql(0x11),'o|1M3n@K',NQXzql(0x56),':Y^N$}[XtT`eA]n=g:j7|V@/9/HZj~EfU+akNT,6*c!z9',NQXzql(0x55),NQXzql(0x11),NQXzql(0x2e),NQXzql(zltdo5v(0x24)),NQXzql(zltdo5v(0x74)),NQXzql(zltdo5v(0x25)),NQXzql(0x58),NQXzql(0x32),NQXzql(zltdo5v(0x2b)),'\u0071\u0041\u005e\u0042\u0068\u007c\u0045\u0053\u0068',NQXzql(0x11),NQXzql(zltdo5v(0x75)),NQXzql(zltdo5v(0x76)),NQXzql(0x13),NQXzql(0x3e),NQXzql(0x11),NQXzql(zltdo5v(0x29)),NQXzql(0x13),NQXzql(0x5c),NQXzql(zltdo5v(0x77)),NQXzql(0x5e),NQXzql(zltdo5v(0x78)),NQXzql(0x5a),NQXzql(0x60),NQXzql(zltdo5v(0x79)),NQXzql(0x62),NQXzql(zltdo5v(0x25)),NQXzql(0x63),NQXzql(0x64),NQXzql(zltdo5v(0x63)),NQXzql(zltdo5v(0x26)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x27)),NQXzql(0x32),NQXzql(0x66),NQXzql(zltdo5v(0x26)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x27)),NQXzql(0x67),NQXzql(0x68),NQXzql(zltdo5v(0x7b)),NQXzql(0x6a),NQXzql(zltdo5v(0x7d)),NQXzql(0x6c),NQXzql(zltdo5v(0x25)),NQXzql(0x6d),NQXzql(zltdo5v(0x27)),NQXzql(0x11),NQXzql(0xd),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(0x65),NQXzql(0x6e),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x7c)),NQXzql(0xd),NQXzql(0x60),NQXzql(0x11),NQXzql(0x6f),NQXzql(zltdo5v(0x87)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x88)),NQXzql(0x72),NQXzql(0x11),NQXzql(0x3b),NQXzql(zltdo5v(0x28)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x25)),NQXzql(zltdo5v(0x27)),NQXzql(zltdo5v(0x29)),NQXzql(0x11),NQXzql(0x73),NQXzql(0x74),NQXzql(0xd),
2024-11-12 11:17:55 +08:00
// prettier-ignore
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