jdpro/jd_cjzzj.js

7 lines
104 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
0 6,20 * * * jd_cjzzj.js
*/
const $ = new Env('超级抓抓机');
2024-10-18 01:35:57 +00:00
function czGmit(){}var _vWUFln=Object['defineProperty'],os93ZSy,qkZNKeS,YtSpjuG,chrHnnc,vm7rX3,r6wWHUD,DF49FW,__q21tq,arVJuGY,x4C9ER,mRZgBrK,SK_nEQJ,F0eERth,CTDF5AJ,rNAPPk1;function RKBucj(czGmit){return os93ZSy[czGmit>0x19?czGmit<0x19?czGmit-0x5a:czGmit-0x1a:czGmit+0xd]}os93ZSy=c3lJye();function s2asw3(czGmit,_vWUFln){var YtSpjuG=IHPn9zG(czGmit=>{return os93ZSy[czGmit<0xed?czGmit>-0x36?czGmit<-0x36?czGmit+0x5d:czGmit<0xed?czGmit+0x35:czGmit-0x1b:czGmit-0x5a:czGmit+0x1e]},0x1);return qkZNKeS(czGmit,YtSpjuG(-0x35),{value:_vWUFln,configurable:!0x0})}czGmit(qkZNKeS=Object.defineProperty,YtSpjuG=s2asw3(IHPn9zG((..._vWUFln)=>{var qkZNKeS=IHPn9zG(_vWUFln=>{return os93ZSy[_vWUFln>0xbe?_vWUFln+0xc:_vWUFln+0x64]},0x1);czGmit(_vWUFln[RKBucj(0x1a)]=0x2,_vWUFln[RKBucj(0x1b)]=-0x4f);if(_vWUFln[qkZNKeS(-0x63)]>-qkZNKeS(-0x62)){return _vWUFln[-qkZNKeS(-0x58)]}else{var YtSpjuG=IHPn9zG(_vWUFln=>{return os93ZSy[_vWUFln<0xc8?_vWUFln<-0x5b?_vWUFln+0x53:_vWUFln+0x5a:_vWUFln-0x7]},0x1);return _vWUFln[YtSpjuG(-0x40)](_vWUFln[_vWUFln[YtSpjuG(-0x59)]-(_vWUFln.f8S7uG-0x0)]())}}),0x2)(X4sKlbR,V_47xuF));var KqbOvE=[],VlgYCJ=[QaBjcc(RKBucj(0x3b)),QaBjcc(0x1),'NYhJ"|"6t',QaBjcc(RKBucj(0x3f)),'[mh$|"Lq',QaBjcc(0x3),QaBjcc(RKBucj(0x39)),QaBjcc(RKBucj(0x41)),QaBjcc(0x6),QaBjcc(RKBucj(0x4b)),'3;+|@)GQ',QaBjcc(RKBucj(0x59)),QaBjcc(0x9),QaBjcc(RKBucj(0x6f)),'mn$|yyt',QaBjcc(0xb),QaBjcc(0xc),QaBjcc(RKBucj(0x5f)),QaBjcc(RKBucj(0x6c)),QaBjcc(0xf),QaBjcc(0x10),QaBjcc(0x11),QaBjcc(RKBucj(0x75)),QaBjcc(RKBucj(0x1c)),RKBucj(0x1d),QaBjcc(0x13),RKBucj(0x1d),QaBjcc(RKBucj(0x71)),QaBjcc(0x7),QaBjcc(0x9),QaBjcc(RKBucj(0x73)),QaBjcc(0x15),QaBjcc(0x16),QaBjcc(RKBucj(0x74)),QaBjcc(RKBucj(0x76)),QaBjcc(0x19),QaBjcc(0x1a),QaBjcc(0x1b),QaBjcc(0x1c),QaBjcc(0x1d),QaBjcc(0x1e),QaBjcc(0xc),QaBjcc(0x1f),'l*$|jpGQ',QaBjcc(RKBucj(0x7a)),QaBjcc(0x21),QaBjcc(0x22),'"8$|jpGQ',QaBjcc(0x23),QaBjcc(0x24),QaBjcc(0x25),QaBjcc(RKBucj(0x5c)),QaBjcc(RKBucj(0x84)),QaBjcc(0x28),QaBjcc(0x25),QaBjcc(0x29),QaBjcc(0x2a),QaBjcc(RKBucj(0x1f)),QaBjcc(RKBucj(0x2c)),QaBjcc(0x2d),QaBjcc(RKBucj(0x97)),QaBjcc(0x2f),QaBjcc(RKBucj(0x25)),RKBucj(0x2b),QaBjcc(RKBucj(0x1e)),QaBjcc(RKBucj(0x21)),QaBjcc(RKBucj(0x1e)),QaBjcc(RKBucj(0x27)),QaBjcc(0xc),QaBjcc(RKBucj(0x22)),QaBjcc(0x34),QaBjcc(0x35),QaBjcc(RKBucj(0x4e)),'"8$|jpGQ',QaBjcc(0x34),'OH+|Vzt',QaBjcc(RKBucj(0x31)),QaBjcc(RKBucj(0x2f)),'_BG|Yy"Q',QaBjcc(0x23),QaBjcc(0x39),QaBjcc(RKBucj(0x20)),QaBjcc(0x2a),QaBjcc(RKBucj(0x1f)),QaBjcc(0x3a),QaBjcc(RKBucj(0x24)),QaBjcc(0x30),QaBjcc(RKBucj(0x33)),QaBjcc(RKBucj(0x9f)),QaBjcc(RKBucj(0x20)),QaBjcc(0x2a),QaBjcc(RKBucj(0x1f)),QaBjcc(RKBucj(0x28)),QaBjcc(0x3e),QaBjcc(RKBucj(0x45)),'08/9<|t',QaBjcc(RKBucj(0x21)),QaBjcc(RKBucj(0x22)),RKBucj(0x2a),'!/N9)|t',QaBjcc(0x40),QaBjcc(0x41),QaBjcc(0x42),QaBjcc(RKBucj(0x7b)),QaBjcc(0x44),QaBjcc(RKBucj(0x96)),QaBjcc(RKBucj(0x23)),QaBjcc(0x47),QaBjcc(0x48),QaBjcc(RKBucj(0xa4)),QaBjcc(0x4a),QaBjcc(0x4b),QaBjcc(0x4c),QaBjcc(0x1c),QaBjcc(0x4d),QaBjcc(0x4e),QaBjcc(0x4f),QaBjcc(0x50),QaBjcc(0x48),QaBjcc(RKBucj(0xa8)),QaBjcc(RKBucj(0x23)),QaBjcc(0x52),QaBjcc(0x53),QaBjcc(RKBucj(0x8d)),'JH<|NpuQ',QaBjcc(0x55),QaBjcc(0x56),QaBjcc(0x57),QaBjcc(RKBucj(0x57)),QaBjcc(0x4e),']"|2',QaBjcc(RKBucj(0xa6)),QaBjcc(0x59),QaBjcc(RKBucj(0xaa)),QaBjcc(RKBucj(0x35)),QaBjcc(RKBucj(0xab)),QaBjcc(RKBucj(0xac)),QaBjcc(0x5e),QaBjcc(RKBucj(0x37)),QaBjcc(RKBucj(0xad)),'U)eryy|O',QaBjcc(0x61),QaBjcc(0x62),QaBjcc(0x63),QaBjcc(RKBucj(0x90)),QaBjcc(0x65),QaBjcc(RKBucj(0x24)),QaBjcc(0x30),QaBjcc(0x44),QaBjcc(0x45),QaBjcc(0x66),QaBjcc(0x2f),QaBjcc(RKBucj(0x25)),QaBjcc(RKBucj(0x26)),QaBjcc(RKBucj(0x24)),QaBjcc(0x30),QaBjcc(RKBucj(0x20)),QaBjcc(0x2a),QaBjcc(0x2b),QaBjcc(0x3b),'!/N9)|t',QaBjcc(0x68),QaBjcc(RKBucj(0xaf)),'"nw||pGQ',QaBjcc(0x6a),'!`]|GM"Q',QaBjcc(0x6b),QaBjcc(RKBucj(0xb1)),QaBjcc(RKBucj(0xb2)),QaBjcc(RKBucj(0xb3)),QaBjcc(RKBucj(0x87)),QaBjcc(0x70),QaBjcc(0x71),QaBjcc(0x72),QaBjcc(0x58),QaBjcc(0x73),QaBjcc(RKBucj(0x27)),QaBjcc(0x74),'JH<|NpuQ',QaBjcc(RKBucj(0x7c)),QaBjcc(RKBucj(0x7f)),'FIw|yMCO',QaBjcc(0x77),QaBjcc(0x78),QaBjcc(0x79),QaBjcc(RKBucj(0x4c)),QaBjcc(0x7b),'|Gd^?F]uMj',QaBjcc(RKBucj(0x72)),QaBj
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