faker2/jd_zwb.js

7 lines
95 KiB
JavaScript
Raw Normal View History

2024-06-28 07:27:40 +00:00
/*
22 13 * * * jd_zwb.js
*/
const $ = new Env('做任务赚汪贝');
const bdy_0xd0d9dd=bdy_0x13a6;(function(_0x25c814,_0x6eb708){const bdy_0x44e5f4={_0x26fbc2:'0x2d7',_0x4fd1cb:'fUQm',_0x4c5752:'0x1d3',_0x3a5621:'nDO$',_0x4f490d:'0x359',_0x3d8c96:'T#bh',_0x498c6c:'0x278',_0x52fb7d:'WP9y',_0x4751d3:'0x1b7',_0x2c1a93:'nHly',_0x4aa243:'0x28d',_0x55c6b0:'%FlX',_0x431df8:'0x1db',_0x4493f7:'[LPy',_0x21c2f3:'0x3d3',_0x3cc270:'T085',_0x1ee7a4:'0x2c0',_0x2f8d29:'%GJa',_0x254b7f:'0x20a',_0x5e5af5:'T085',_0x302df9:'0x239',_0x4c42b0:'Xsrj',_0x3a4565:'0x172',_0x7cf32f:'6BR!',_0x49dd40:'0x3c3',_0x1a2563:'K[eD',_0x153bfa:'0x253',_0x3004dc:'qbhb'},_0x3eba1c=bdy_0x13a6,_0x579c18=_0x25c814();while(!![]){try{const _0x10c0fa=parseInt(_0x3eba1c(bdy_0x44e5f4._0x26fbc2,bdy_0x44e5f4._0x4fd1cb))/(-0xdb5+-0x2*-0x135e+0x1906*-0x1)*(-parseInt(_0x3eba1c(bdy_0x44e5f4._0x4c5752,bdy_0x44e5f4._0x3a5621))/(0x18c1+0x23e7+-0x3ca6))+-parseInt(_0x3eba1c(bdy_0x44e5f4._0x4f490d,bdy_0x44e5f4._0x3d8c96))/(0xe97+0x12f0+-0x14a*0x1a)*(-parseInt(_0x3eba1c(bdy_0x44e5f4._0x498c6c,bdy_0x44e5f4._0x52fb7d))/(0x7b8+-0x565*0x1+-0x24f))+-parseInt(_0x3eba1c(bdy_0x44e5f4._0x4751d3,bdy_0x44e5f4._0x2c1a93))/(-0x1a89+-0xc5*0x1f+0x3269)*(-parseInt(_0x3eba1c(bdy_0x44e5f4._0x4aa243,bdy_0x44e5f4._0x55c6b0))/(-0x194f+-0x14a9+-0x7*-0x692))+-parseInt(_0x3eba1c(bdy_0x44e5f4._0x431df8,bdy_0x44e5f4._0x4493f7))/(0x1*0x998+0x15*-0x62+-0x187*0x1)*(-parseInt(_0x3eba1c(bdy_0x44e5f4._0x21c2f3,bdy_0x44e5f4._0x3cc270))/(0x24*-0x86+-0x15d3+-0x28b3*-0x1))+-parseInt(_0x3eba1c(bdy_0x44e5f4._0x1ee7a4,bdy_0x44e5f4._0x2f8d29))/(-0x1*0xb1b+0x66+-0x19*-0x6e)*(parseInt(_0x3eba1c(bdy_0x44e5f4._0x254b7f,bdy_0x44e5f4._0x5e5af5))/(-0xb7*0x13+0xec3*-0x2+-0x5*-0x8a1))+parseInt(_0x3eba1c(bdy_0x44e5f4._0x302df9,bdy_0x44e5f4._0x4c42b0))/(0x2654+-0x119e+-0x14ab)*(parseInt(_0x3eba1c(bdy_0x44e5f4._0x3a4565,bdy_0x44e5f4._0x7cf32f))/(-0xb9*0x4+-0x2349+0x67*0x5f))+-parseInt(_0x3eba1c(bdy_0x44e5f4._0x49dd40,bdy_0x44e5f4._0x1a2563))/(0x565*-0x5+-0xec*0x16+0x2f4e)*(parseInt(_0x3eba1c(bdy_0x44e5f4._0x153bfa,bdy_0x44e5f4._0x3004dc))/(0x1ad+0x779+-0x918));if(_0x10c0fa===_0x6eb708)break;else _0x579c18['push'](_0x579c18['shift']());}catch(_0x43353c){_0x579c18['push'](_0x579c18['shift']());}}}(bdy_0x3875,0x627b0*0x1+-0x322ef+0x6e1a));const bdy_0x5b337e=(function(){const bdy_0x3d35d2={_0x43d66d:'0x2b7',_0xd19a02:'98$@'};let _0x20b232=!![];return function(_0x54650a,_0xd8f66){const _0x5807ec=_0x20b232?function(){const _0x14616f=bdy_0x13a6;if(_0xd8f66){const _0x321168=_0xd8f66[_0x14616f(bdy_0x3d35d2._0x43d66d,bdy_0x3d35d2._0xd19a02)](_0x54650a,arguments);return _0xd8f66=null,_0x321168;}}:function(){};return _0x20b232=![],_0x5807ec;};}()),bdy_0x20939e=bdy_0x5b337e(this,function(){const bdy_0x2e13dc={_0x4b1431:'0x36a',_0x13226e:'tJN6',_0x45d5cb:'0x280',_0x52e8d4:'J60D',_0x560a35:'0x2e2',_0x1b3bf9:'K1Ki',_0x4db953:'0x2ff',_0x4201a8:'0x20c',_0x180d90:'Xsrj',_0x5c04a0:'0x330',_0xd442e4:'*7Tx',_0x41f6e1:'0x18c'},_0x4d3c71=bdy_0x13a6;return bdy_0x20939e[_0x4d3c71(bdy_0x2e13dc._0x4b1431,bdy_0x2e13dc._0x13226e)]()[_0x4d3c71(bdy_0x2e13dc._0x45d5cb,bdy_0x2e13dc._0x52e8d4)](_0x4d3c71(bdy_0x2e13dc._0x560a35,bdy_0x2e13dc._0x1b3bf9))[_0x4d3c71(bdy_0x2e13dc._0x4db953,bdy_0x2e13dc._0x52e8d4)]()[_0x4d3c71(bdy_0x2e13dc._0x4201a8,bdy_0x2e13dc._0x180d90)](bdy_0x20939e)[_0x4d3c71(bdy_0x2e13dc._0x5c04a0,bdy_0x2e13dc._0xd442e4)](_0x4d3c71(bdy_0x2e13dc._0x41f6e1,bdy_0x2e13dc._0xd442e4));});bdy_0x20939e();const bdy_0x216440=(function(){let _0x47d4f1=!![];return function(_0x554290,_0x345330){const bdy_0x40bbbf={_0x3bf3f4:'0x28b',_0xf301c7:'PP#w'},_0x1fb571=_0x47d4f1?function(){const _0x3db969=bdy_0x13a6;if(_0x345330){const _0xf11fac=_0x345330[_0x3db969(bdy_0x40bbbf._0x3bf3f4,bdy_0x40bbbf._0xf301c7)](_0x554290,arguments);return _0x345330=null,_0xf11fac;}}:function(){};return _0x47d4f1=![],_0x1fb571;};}());(function(){const bdy_0x52b7db={_0x1a7e59:'0x174',_0xb5f7b6:'E7]4',_0x4d8f38:'0x368',_0xce39ae:'P%BP',_0x551b94:'0x272',_0x5ee2ab:'WP9y',_0x47bc18:'0x1aa',_0x2a843a:'0x339',_0x598322:'A#R1',_0x30f5ac:'0x2ae',_0x56edc2:'zWw(',_0x1dd924:'0x205',_0x3a0ac2:'P%BP'};bdy_0x216440(this,function(){const _0x326350=bdy_0x13a6,_0x3d4e5e=
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