faker3/jd_zwb.js

7 lines
103 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
2024-07-05 14:41:10 +08:00
22 10 * * * jd_zwb.js
2024-06-28 15:38:28 +08:00
*/
const $ = new Env('做任务赚汪贝');
2024-07-05 14:41:10 +08:00
const bdy_0x56f0ae=bdy_0x2698;(function(_0x51de23,_0x5c02b4){const bdy_0x55d7be={_0x1336f5:'5RVf',_0x578cee:'O&w^',_0x37891a:'0x251',_0x44269d:'5Njb'},_0x17d1c6=bdy_0x2698,_0x5d58fc=_0x51de23();while(!![]){try{const _0x250f23=-parseInt(_0x17d1c6('0x428',bdy_0x55d7be._0x1336f5))/(-0x164*-0x6+0x5e6+-0x195*0x9)*(parseInt(_0x17d1c6('0x451','jj^Z'))/(0x1*-0x2480+0x24bd+0x1*-0x3b))+parseInt(_0x17d1c6('0x3c5',bdy_0x55d7be._0x578cee))/(0x16c0+-0x77*-0x33+-0x2e72)+parseInt(_0x17d1c6('0x1b0','[#%q'))/(0x40f*-0x7+0x1f02+-0x1*0x295)+parseInt(_0x17d1c6('0x255','hiSy'))/(0x1f44+-0x2*0x11c1+0x1*0x443)+parseInt(_0x17d1c6(bdy_0x55d7be._0x37891a,'gns%'))/(-0x2e7*0xb+0x20b1*0x1+-0xbe)+-parseInt(_0x17d1c6('0x3fc','URhl'))/(0x1cec+-0x41e*-0x1+-0x2103)+-parseInt(_0x17d1c6('0x1ab',bdy_0x55d7be._0x44269d))/(-0x1d*-0x14f+-0x9*0x135+0x2*-0xd87);if(_0x250f23===_0x5c02b4)break;else _0x5d58fc['push'](_0x5d58fc['shift']());}catch(_0x9d01ac){_0x5d58fc['push'](_0x5d58fc['shift']());}}}(bdy_0x30f9,-0xaf729+0xeeac3*-0x1+-0x2a83*-0xdd));const bdy_0x53a1ab=(function(){const bdy_0x557313={_0x1ec115:'0x3d7',_0x30d406:'ln2Y'},bdy_0x3deb1e={_0x4e5c1a:'0x24e',_0x23f031:'0x3fd',_0x22ac5c:'5(Q9',_0x1a8aa6:'k!M3'},bdy_0x4122a={_0x2591f4:']mYu',_0x5ba223:'0x3f9',_0x5428c9:'clL!',_0x1e0038:'0x4f8',_0x1d8a31:'V#5b',_0x3b9a6f:'0x277',_0x265742:'052u',_0x374540:'0x214',_0x559177:'zl1b'},_0x399c09=bdy_0x2698,_0x380e0e={};_0x380e0e[_0x399c09(bdy_0x557313._0x1ec115,bdy_0x557313._0x30d406)]=function(_0x9fa79c,_0x2314dc){return _0x9fa79c===_0x2314dc;},_0x380e0e[_0x399c09('0x4a1','hijK')]=_0x399c09('0x3af','ln2Y');const _0x5dc1ad=_0x380e0e;let _0x1abae5=!![];return function(_0x3c834b,_0x27c6d7){const bdy_0x2b2b40={_0x39f7a6:'0x226'},_0x5cadf3=bdy_0x2698,_0x40a1b0={'zIvTM':function(_0x27f182,_0x48df3e){const _0x4e2e80=bdy_0x2698;return _0x5dc1ad[_0x4e2e80(bdy_0x2b2b40._0x39f7a6,'xzYD')](_0x27f182,_0x48df3e);}};if(_0x5dc1ad[_0x5cadf3(bdy_0x3deb1e._0x4e5c1a,'qyUU')]!==_0x5cadf3('0x1e2','5(Q9')){const _0x2a3bba=_0x1abae5?function(){const _0x528694=bdy_0x2698;if(_0x27c6d7){if(_0x528694('0x2b9','V#5b')===_0x528694('0x3e6',bdy_0x4122a._0x2591f4)){if(_0xcf6fc1){_0x2a2afd=_0x3fb3bc[_0x528694(bdy_0x4122a._0x5ba223,'5(Q9')](_0x3fd931);if(_0x531155[_0x528694('0x378',bdy_0x4122a._0x5428c9)]==='1'){}else _0x40a1b0[_0x528694(bdy_0x4122a._0x1e0038,'URhl')](_0x231d09[_0x528694('0x350',bdy_0x4122a._0x1d8a31)],'0')&&(_0x26ef8c[_0x528694(bdy_0x4122a._0x3b9a6f,bdy_0x4122a._0x265742)]=![]);}}else{const _0x509766=_0x27c6d7[_0x528694(bdy_0x4122a._0x374540,bdy_0x4122a._0x559177)](_0x3c834b,arguments);return _0x27c6d7=null,_0x509766;}}}:function(){};return _0x1abae5=![],_0x2a3bba;}else _0xf2e55b[_0x5cadf3(bdy_0x3deb1e._0x23f031,'iq]m')](_0x5cadf3('0x447',bdy_0x3deb1e._0x22ac5c)),_0x111ba6[_0x5cadf3('0x347','hoC6')][_0x5cadf3('0x39e',bdy_0x3deb1e._0x1a8aa6)][_0x5cadf3('0x2f5','PIbz')]===0x241+0x1ef7*0x1+-0x2133&&_0x836715[_0x5cadf3('0x1f6','hijK')][_0x5cadf3('0x123','zl1b')](_0x14d304[_0x5cadf3('0x2c3','xzYD')]);};}()),bdy_0x21c579=bdy_0x53a1ab(this,function(){const bdy_0x517efa={_0x2118cc:'0x2f2',_0x5b1ba7:'0x2c5',_0x4a80c4:'(!5p'},_0x3b67a2=bdy_0x2698;return bdy_0x21c579[_0x3b67a2('0x171','V#5b')]()[_0x3b67a2(bdy_0x517efa._0x2118cc,'[#%q')](_0x3b67a2(bdy_0x517efa._0x5b1ba7,'052u'))[_0x3b67a2('0x132','clL!')]()[_0x3b67a2('0x41e',bdy_0x517efa._0x4a80c4)](bdy_0x21c579)[_0x3b67a2('0x196','LE!r')](_0x3b67a2('0x128','5RVf'));});bdy_0x21c579();const bdy_0x316129=(function(){const bdy_0x3eb61b={_0x44f615:'0x1e0',_0x157d4c:']mYu',_0x393020:'0x1b2',_0x58981f:'0x377'};let _0x4e4468=!![];return function(_0x338cfd,_0xc571f){const _0x2d1641=bdy_0x2698;if(_0x2d1641(bdy_0x3eb61b._0x44f615,bdy_0x3eb61b._0x157d4c)!==_0x2d1641(bdy_0x3eb61b._0x393020,'[b8q')){const _0x4747ac=_0x4e4468?function(){const _0x102e10=bdy_0x2698;if(_0xc571f){const _0x2efcac=_0xc571f[_0x102e10('0x20b','vz&D')](_0x338cfd,arguments);return _0xc571f=null,_0x2efcac;}}:function(){};return _0x4e4468=![],_0x4747ac;}else _0x35c024[_0x2d1641(bdy_0x3eb61b._0x58981f,'5RVf')][_0x2d1641('0x4df','O&w^')]('火爆')>-(-0xf43*0x2+-0x56f*-0x5+0x2*0x1ae)&&(_0x1
2024-06-28 15:38:28 +08:00
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