faker3/jd_mybbphdyh4.js

15 lines
149 KiB
JavaScript
Raw Normal View History

2024-10-28 16:42:04 +08:00
/*
不会自动运行请在有水的时候运行
//export jd_opencard_jdDraw="true" //true 开启抽奖false 关闭抽奖
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron:1 1 1 1 *
*/
const $ = new Env('10.17-11.13 京东母婴11.11又便宜又好')
function t5uZaq4(){}var jf1dldy=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],D2SyuKi,nE8Mxf,IvS7Q3r,Y9tCCGZ,gcblO5,zK1Izd,xIWL_L,NOOLHt,chnIEg,eSAvTW,D5iV4B,vZHVxE_,EGNcwPl,F_woSv,hxSpS7l,cadr1Nw,Eeik_NB;function l23yv2Z(t5uZaq4){return D2SyuKi[t5uZaq4<0xf6?t5uZaq4>-0x60?t5uZaq4+0x5f:t5uZaq4+0x2a:t5uZaq4+0x43]}D2SyuKi=apTnuLL();function LxF0QD(t5uZaq4,jf1dldy){nE8Mxf(t5uZaq4,l23yv2Z(-0x5f),{value:jf1dldy,configurable:l23yv2Z(0x21)});return t5uZaq4}t5uZaq4(nE8Mxf=Object.defineProperty,IvS7Q3r=LxF0QD(HtdHta((...jf1dldy)=>{t5uZaq4(jf1dldy[l23yv2Z(-0x5f)]=l23yv2Z(-0x5e),jf1dldy.DMWEpt=jf1dldy[l23yv2Z(-0x36)]);return jf1dldy.DMWEpt(jf1dldy[l23yv2Z(-0x37)]())}),l23yv2Z(-0x5e))(TT8PIe,WsJZ8Y));var kVU9Rrq=[],h7VKDzY=[c3IwrUo(0x0),c3IwrUo(0x1),c3IwrUo(l23yv2Z(-0x5e)),c3IwrUo(0x3),c3IwrUo(l23yv2Z(-0x39)),c3IwrUo(0x5),c3IwrUo(0x6),c3IwrUo(0x7),c3IwrUo(l23yv2Z(-0x1d)),'c^MDWTU1.Y:|VNv)9Cym5','c^MDWTU1.Y:|VNec.Qzo)0"','\x49\x51\x41\x3b\x23\x58\x64\x30\x2f\x76\x7c\x31\x44\x35\x33\x2c\x5f\x5e\x64\x3b\x30\x3e\x40\x23\x74\x6f\x6f\x21\x4d\x35\x3e\x56\x26\x6f\x63\x26\x4e\x42\x7c\x60\x6c\x66\x72\x3d\x47\x4e\x50\x63',c3IwrUo(l23yv2Z(-0x2d)),c3IwrUo(l23yv2Z(-0x2e)),c3IwrUo(l23yv2Z(-0xc)),c3IwrUo(0xc),c3IwrUo(0xd),c3IwrUo(l23yv2Z(-0xf)),c3IwrUo(0xf),c3IwrUo(l23yv2Z(-0x9)),c3IwrUo(l23yv2Z(0x86)),c3IwrUo(l23yv2Z(-0x30)),c3IwrUo(l23yv2Z(-0x8)),'\u002a\u005a\u003d\u0051\u0056\u0047\u005b\u004c\u0055\u0052\u0072\u004a\u004e\u0056\u0068\u0058\u0051\u0025\u0021\u004c\u0055\u0061\u0031\u004e\u007a\u0046\u0028\u0070\u0029\u004f\u0047\u002c\u0043\u0028\u007c\u003e\u007a',c3IwrUo(0x14),c3IwrUo(l23yv2Z(-0x5b)),c3IwrUo(l23yv2Z(-0x27)),c3IwrUo(0x17),c3IwrUo(l23yv2Z(-0x7)),'2w(A3>3bRI$6[$R|X`+F)zC',c3IwrUo(l23yv2Z(-0x5d)),c3IwrUo(0x1a),c3IwrUo(0x1b),c3IwrUo(l23yv2Z(0x81)),c3IwrUo(0x1d),'UV/_chd}%O=m^;u*5XUtgOS8HtnQ*`GX{ghsS5A:Q|r$_?BvUCEQ#{!f)OhTL"',c3IwrUo(0x1e),c3IwrUo(l23yv2Z(0x0)),'\x7c\x72\x3c\x76\x3e\x68\x22\x2b\x75\x36\x4a',c3IwrUo(l23yv2Z(-0x5d)),c3IwrUo(l23yv2Z(-0x26)),c3IwrUo(0x21),c3IwrUo(l23yv2Z(0x5)),c3IwrUo(0x23),c3IwrUo(l23yv2Z(-0x4c)),c3IwrUo(l23yv2Z(-0x55)),c3IwrUo(0x25),c3IwrUo(0x26),c3IwrUo(0x27),c3IwrUo(l23yv2Z(0xde)),c3IwrUo(l23yv2Z(0xa)),c3IwrUo(0x2a),c3IwrUo(0x2b),c3IwrUo(0x2c),c3IwrUo(l23yv2Z(0xb)),c3IwrUo(0x2e),'\u0079\u0031\u002f\u002e\u0029\u007c\u0037\u0026\u0072\u002b\u0073\u002c\u0068\u003a',c3IwrUo(l23yv2Z(-0x3e)),c3IwrUo(0x30),c3IwrUo(l23yv2Z(-0x20)),c3IwrUo(l23yv2Z(-0x3c)),c3IwrUo(0x33),c3IwrUo(0x34),c3IwrUo(l23yv2Z(0xd)),c3IwrUo(l23yv2Z(0x4c)),c3IwrUo(l23yv2Z(0xe2)),c3IwrUo(l23yv2Z(-0x2a)),c3IwrUo(l23yv2Z(0x10)),c3IwrUo(l23yv2Z(-0x24)),c3IwrUo(0x3b),c3IwrUo(0x3c),c3IwrUo(l23yv2Z(-0x22)),c3IwrUo(0x3e),c3IwrUo(0x3f),c3IwrUo(l23yv2Z(0x13)),c3IwrUo(0x41),c3IwrUo(l23yv2Z(0x82)),c3IwrUo(l23yv2Z(0xa7)),c3IwrUo(l23yv2Z(-0x5c)),'\x52\x58\x4e\x63\x71\x29\x2b\x3e\x45\x3a\x55\x7e\x76\x36\x6a\x31\x36\x79\x7c\x4c\x43\x29\x68\x7b\x78\x32\x71\x78\x39\x48\x7b\x33\x2c\x36\x32\x34\x51\x65\x48\x6b\x4d\x30\x42\x23\x5a',c3IwrUo(0x45),c3IwrUo(0x44),'RXNcq)+>E:U~v6j16y|LC)h{x2qx9H{3,624QeHkM0B#Z',c3IwrUo(0x46),c3IwrUo(0x15),'\x3f\x2a\x2c\x3d\x59\x2b\x7c\x26\x2c\x7c\x37\x5e\x7b\x60\x2c\x25\x42\x51\x75\x7b\x36\x3a\x68\x6f\x46\x67',c3IwrUo(0x47),c3IwrUo(0x44),'\u0052\u0058\u004e\u0063\u0071\u0029\u002b\u003e\u0045\u003a\u0055\u007e\u0076\u0036\u006a\u0031\u0036\u0079\u007c\u004c\u0043\u0029\u0068\u007b\u0078\u0032\u0071\u0078\u0039\u0048\u007b\u0033\u002c\u0036\u0032\u0034\u0051\u0065\u0048\u006b\u004d\u0030\u0042\u0023\u005a',c3IwrUo(l23yv2Z(-0x53)),c3IwrUo(l23yv2Z(-0xd)),c3IwrUo(0x15),c3IwrUo(l23yv2Z(0x19)),c3IwrUo(0x4b),c3IwrUo(l23yv2Z(-0x50)),c3IwrUo(0x4d),c3IwrUo(0x4e),c3IwrUo(0x4f),c3IwrUo(l23yv2Z(-0x5c)),'0SlcVG?z3F?<gWp(7bEFP1"+u6>Sr;#*HpIdsW!]LR1%Rv|XQ%a87bDck>$4ty0~ug',c3IwrUo(0x50),c3IwrUo(l23yv2Z(0x18)),c3IwrUo(l23yv2Z(-0x21)),c3IwrUo(l23yv2Z(0x1)),c3IwrUo(l23yv2Z(0x3)),c3IwrUo(0x55),c3IwrUo(l23yv2Z(-0x14)),c3IwrUo(0x57),c3IwrUo(l23yv2Z(-0x5b)),c3IwrUo(l23yv2Z(-0x1e)),c3IwrUo(l23yv2Z(0x17)),c3IwrUo(0x1e),c3IwrUo(0x5a),c3IwrUo(l23yv2Z(-0x1f)),c3IwrUo(0x5c),c3IwrUo(l23yv2Z(0x15)),c3IwrUo(l23yv2Z(0x1b)),c3IwrUo(l23yv2Z
// 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