faker2/jd_chb.js

7 lines
133 KiB
JavaScript
Raw Permalink Normal View History

2024-06-28 07:27:40 +00:00
/*
1 1 1 1 * jd_chb.js
*/
const $ = new Env('赚吃货币抽超市卡');
const bdy_0x4f11e2=bdy_0x3d00;(function(_0x1a5150,_0x73d8b4){const bdy_0x14bb15={_0x215cfc:'0x275',_0x14018a:'4P[h',_0x2ccadd:'0x3d9',_0x10fcbe:'7Vp]',_0x375a9c:'0x422',_0x275ac1:'Qz57',_0x2d39ef:'0x35e',_0x6f0602:'0x2b0',_0x4ecd3e:'xxes',_0x4c00d8:'0x46b',_0xa23e5c:'r041',_0x22a419:'0x481',_0xc81757:'Sy&0',_0x1c72a7:'0x1d1',_0x4bda57:'e$i^',_0xc4ed7:'0x517',_0x20d37f:'9ay#',_0x4c214c:'0x326',_0x383031:'e3uc'},_0x35953c=bdy_0x3d00,_0x9407a7=_0x1a5150();while(!![]){try{const _0x4a32f4=parseInt(_0x35953c(bdy_0x14bb15._0x215cfc,bdy_0x14bb15._0x14018a))/(0x87f+0xbf8+-0x1476)*(parseInt(_0x35953c(bdy_0x14bb15._0x2ccadd,bdy_0x14bb15._0x10fcbe))/(0x1174*0x1+-0x15ab+-0x439*-0x1))+-parseInt(_0x35953c(bdy_0x14bb15._0x375a9c,bdy_0x14bb15._0x275ac1))/(0x1e67+0x170*-0x17+0x2ac)+parseInt(_0x35953c(bdy_0x14bb15._0x2d39ef,bdy_0x14bb15._0x275ac1))/(0x1112+-0x701+-0x1f*0x53)+parseInt(_0x35953c(bdy_0x14bb15._0x6f0602,bdy_0x14bb15._0x4ecd3e))/(0x2*0x61a+-0x1*0x674+-0x5bb)*(-parseInt(_0x35953c(bdy_0x14bb15._0x4c00d8,bdy_0x14bb15._0xa23e5c))/(-0x3e5*-0x7+-0xb*0x71+-0x1662))+-parseInt(_0x35953c(bdy_0x14bb15._0x22a419,bdy_0x14bb15._0xc81757))/(0x7a3+-0x6d5+-0xc7)+-parseInt(_0x35953c(bdy_0x14bb15._0x1c72a7,bdy_0x14bb15._0x4bda57))/(0xc*0x125+0x98*-0xe+-0x564)*(parseInt(_0x35953c(bdy_0x14bb15._0xc4ed7,bdy_0x14bb15._0x20d37f))/(0x13*0x71+-0x1f*-0xd7+0x2263*-0x1))+parseInt(_0x35953c(bdy_0x14bb15._0x4c214c,bdy_0x14bb15._0x383031))/(0x7f9+-0x1*0x21a7+0x19b8);if(_0x4a32f4===_0x73d8b4)break;else _0x9407a7['push'](_0x9407a7['shift']());}catch(_0x311ee0){_0x9407a7['push'](_0x9407a7['shift']());}}}(bdy_0x507e,-0x37623*0x3+0x9ba0+-0x3979*-0x49));const bdy_0x130b97=(function(){let _0x1b04ca=!![];return function(_0x4ea835,_0x26eb98){const bdy_0x1535de={_0x804cc3:'0x1d2',_0x4b9fe3:'SrwU'},_0x49826c=_0x1b04ca?function(){const _0x13b7f4=bdy_0x3d00;if(_0x26eb98){const _0x1aa368=_0x26eb98[_0x13b7f4(bdy_0x1535de._0x804cc3,bdy_0x1535de._0x4b9fe3)](_0x4ea835,arguments);return _0x26eb98=null,_0x1aa368;}}:function(){};return _0x1b04ca=![],_0x49826c;};}()),bdy_0x2e0d55=bdy_0x130b97(this,function(){const bdy_0x54ca28={_0x79cb42:'0x33b',_0x5307cc:'[S*)',_0x28570b:'0x2c6',_0x561c39:'c7PY',_0x140570:'0x38b',_0x150471:'Qz57',_0x4a0a52:'0x433',_0x13b9fb:'W!3D',_0x10a16f:'0x2cb',_0x2fa53a:'[RuV',_0x30d241:'0x3ab',_0x161561:'esl1',_0x2f058b:'0x437',_0xed5f07:'7Vp]'},_0x1ccc89=bdy_0x3d00;return bdy_0x2e0d55[_0x1ccc89(bdy_0x54ca28._0x79cb42,bdy_0x54ca28._0x5307cc)]()[_0x1ccc89(bdy_0x54ca28._0x28570b,bdy_0x54ca28._0x561c39)](_0x1ccc89(bdy_0x54ca28._0x140570,bdy_0x54ca28._0x150471))[_0x1ccc89(bdy_0x54ca28._0x4a0a52,bdy_0x54ca28._0x13b9fb)]()[_0x1ccc89(bdy_0x54ca28._0x10a16f,bdy_0x54ca28._0x2fa53a)](bdy_0x2e0d55)[_0x1ccc89(bdy_0x54ca28._0x30d241,bdy_0x54ca28._0x161561)](_0x1ccc89(bdy_0x54ca28._0x2f058b,bdy_0x54ca28._0xed5f07));});bdy_0x2e0d55();const bdy_0x342a9d=(function(){const bdy_0x2bdb4a={_0x4f1a9a:'0x1f7',_0x46a76b:'@AK('};let _0x444e6b=!![];return function(_0x3ccec3,_0x3ad50c){const _0x37014f=_0x444e6b?function(){const _0x3b20f5=bdy_0x3d00;if(_0x3ad50c){const _0x461c30=_0x3ad50c[_0x3b20f5(bdy_0x2bdb4a._0x4f1a9a,bdy_0x2bdb4a._0x46a76b)](_0x3ccec3,arguments);return _0x3ad50c=null,_0x461c30;}}:function(){};return _0x444e6b=![],_0x37014f;};}());function bdy_0x507e(){const _0x4b8dcc=['W63dVr7dS8k6f8oCWRq','DWxdKmohpGVcNKPWWQlcGL7cGG','W4PUWOGC','W7XuWPBdRW','WQLSDJZdRmkPW6mgWP/dRSkj','uZbgeXG+DSol','eeNcJCoMW6pcVCo+oLO','W7ZdLSoTfCkPWP4','W7NdNN8','ESkQj8olWQne','WOn2W40R','W7VdMhVdU2hdTwhcGq','AqGUW5dcUmkAWPRcGmovWPm','rX7dIKO','WOCWW7JcHCkC','h8oJWQ0gESk+W4DRlHfMwLeSWRBcPhXpWQ/dN8kZ','W7ZdKmo4sdvQW5O','dmoNWQO+t8kKW4b6','W5OgdSk3b0BdTutdJa9V','WPtdQhZcSLpcRLVdLW','AbqyW5BdPW','rN/cINW','mGnG','nSkptG','WPxdJW3dPCoWvmkeDwNcOmkBW7NdKeJdNCoWeCk4yHBcIL4','mcpdHSoS','pqn1WPZcLSoPWPa','W5lcUt/dOsRdSv7dRCkXW5uuCW','tZldHa','W5C6WObGWQhdSKP9','W6/dHCkkuIZcLwhdJCk+W70u','cCk0xmodW5xcK8kdaWiwmSoWW6FcSG','W7BdL8o2g8kYWP7cTbm+h8khWOzdpaVdPSkN','DGCl','zSorrgpdMa','buSlbapdTCkhc0GnW6nAnG','WOdLJiBMIQ7LPyVcMW','uWabW7rki3bUwG','W5PxWQadW6RcH8oSvSox','W7RdJ3PNW5BcPhqXeG','WQZdULJcIti','W5RcS
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