faker3/jd_hsh_draw.js

14 lines
153 KiB
JavaScript
Raw Normal View History

2024-08-29 14:18:41 +08:00
/*
活动名称黑神话悟空PDD抽奖提现
活动链接https://prodev.m.jd.com/mall/active/Dqsw45xjnhWQDb8XKV8gPtPb49f/index.html
活动变量jd_hsh_task //是否做任务获取次数,默认开启
cron:1 1 1 1 *
*/
const $ = new Env('黑神话悟空PDD抽奖提现')
function kgOHwXo(){}var s79zbWz=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],CTQIkr9,s4i_8HJ,xv7JCpU,OE3Hbh,rmITaOT,E_xUVIS,IaX_YD,c9zv5S1,D0rv9dr,jv7JJP,T2bWp2,zTXXJgI,v8jlND,WPKLR9Q,JGIkVhO,yipP8T,jt3Sazk,RUmGfo,U93XSX8,UhMfjbk,wcI1bN9,nTP5dTl,RmkRe0,byXgAgf;function EZxPFAe(kgOHwXo){return CTQIkr9[kgOHwXo<0x19b?kgOHwXo<0x19b?kgOHwXo-0x6:kgOHwXo+0x41:kgOHwXo-0x4f]}CTQIkr9=ZLT0XG8();function A4BE1mz(kgOHwXo,s79zbWz){var xv7JCpU=Jnl5PO(kgOHwXo=>{return CTQIkr9[kgOHwXo<-0x50?kgOHwXo+0x3e:kgOHwXo>-0x50?kgOHwXo+0x4f:kgOHwXo+0x62]},0x1);return s4i_8HJ.call(EZxPFAe(0x16c),kgOHwXo,xv7JCpU(-0x27),{value:s79zbWz,configurable:!0x0})}kgOHwXo(s4i_8HJ=Object.defineProperty,xv7JCpU=Jnl5PO((kgOHwXo,s79zbWz)=>{return s79zbWz(kgOHwXo())},0x2)(TlI2slr,HTSuXXZ));var Vlg04q=[],dNi_Ic=[qjSK0c(0x0),qjSK0c(EZxPFAe(0x46)),qjSK0c(0x2),qjSK0c(0x3),qjSK0c(0x4),qjSK0c(EZxPFAe(0x37)),qjSK0c(EZxPFAe(0x39)),qjSK0c(0x7),qjSK0c(EZxPFAe(0x41)),qjSK0c(EZxPFAe(0x59)),qjSK0c(0xa),qjSK0c(0xb),qjSK0c(EZxPFAe(0x3b)),qjSK0c(EZxPFAe(0x6d)),qjSK0c(0xe),qjSK0c(0xf),qjSK0c(0x10),qjSK0c(EZxPFAe(0x72)),'l*<oSwqf#"b%1,|2lQt',qjSK0c(0x12),qjSK0c(EZxPFAe(0x3e)),qjSK0c(EZxPFAe(0xe2)),qjSK0c(0x15),qjSK0c(EZxPFAe(0x3f)),qjSK0c(EZxPFAe(0x73)),qjSK0c(0x18),qjSK0c(EZxPFAe(0x74)),qjSK0c(EZxPFAe(0x75)),qjSK0c(0x1b),qjSK0c(EZxPFAe(0x1b)),qjSK0c(EZxPFAe(0x63)),qjSK0c(EZxPFAe(0x77)),'Qp|LH',qjSK0c(EZxPFAe(0xd)),qjSK0c(0x1d),'\x4a\x53\x44\x4f\x61\x3f\x72\x25\x59\x2b\x65\x5b\x60\x4e\x75\x72\x7c\x31','`s(eF3|Z',qjSK0c(EZxPFAe(0x76)),qjSK0c(EZxPFAe(0x7d)),qjSK0c(0x22),qjSK0c(0x23),qjSK0c(0x24),qjSK0c(EZxPFAe(0x18e)),qjSK0c(0x26),qjSK0c(0x27),EZxPFAe(0x29),qjSK0c(0x28),qjSK0c(0x29),qjSK0c(EZxPFAe(0x81)),'\x4b\x7b\x7c\x33\x58\x36\x4f\x28\x42\x76\x6a\x70\x21\x60',qjSK0c(0x2b),qjSK0c(EZxPFAe(0x80)),qjSK0c(0x2d),qjSK0c(EZxPFAe(0x83)),qjSK0c(EZxPFAe(0x8e)),qjSK0c(EZxPFAe(0x7f)),qjSK0c(0x31),qjSK0c(EZxPFAe(0x79)),qjSK0c(0x33),qjSK0c(0x34),qjSK0c(0x35),qjSK0c(EZxPFAe(0x84)),qjSK0c(EZxPFAe(0x8c)),qjSK0c(EZxPFAe(0x19)),qjSK0c(EZxPFAe(0x8f)),qjSK0c(0x3a),qjSK0c(EZxPFAe(0x1f)),qjSK0c(0x3c),'JSDOjV9glUe[`Nur|1',qjSK0c(0x3d),qjSK0c(0x1f),qjSK0c(0x3e),'Fb|LH',qjSK0c(0x3f),qjSK0c(EZxPFAe(0x26)),qjSK0c(0x41),qjSK0c(EZxPFAe(0x91)),qjSK0c(0x43),'\u006f\u0062\u0052\u006d\u0059\u007d\u0033\u007c\u0064\u0055\u003e',qjSK0c(0x44),qjSK0c(EZxPFAe(0x5c)),qjSK0c(0x46),qjSK0c(0x47),qjSK0c(EZxPFAe(0x2a)),qjSK0c(0x49),qjSK0c(0x4a),qjSK0c(EZxPFAe(0x4f)),'obRmO{f|{_#gki','obRmByr/{J);wRR<|1',qjSK0c(0x4c),qjSK0c(0x4d),qjSK0c(0x4e),qjSK0c(0x4f),'c|c`/83g','\u007b\u0050\u007c\u0059\u0070\u003a\u002b\u0068\u006c\u0031\u005f\u0046\u0055\u004b\u0042\u006d\u003c\u004e','*|FB&*4N',qjSK0c(0x50),qjSK0c(EZxPFAe(0x52)),qjSK0c(EZxPFAe(0x4d)),qjSK0c(0x53),qjSK0c(EZxPFAe(0x9b)),qjSK0c(0x55),qjSK0c(0x56),qjSK0c(0x57),qjSK0c(0x58),qjSK0c(0x59),qjSK0c(EZxPFAe(0x6)),'\x52\x5b\x68\x6c\x30\x78\x50\x52\x74\x7c\x42','Fb|La};Z',qjSK0c(EZxPFAe(0x55)),qjSK0c(EZxPFAe(0x33)),qjSK0c(0x5d),qjSK0c(EZxPFAe(0x99)),qjSK0c(EZxPFAe(0x9)),qjSK0c(EZxPFAe(0x7)),qjSK0c(EZxPFAe(0x6)),qjSK0c(0x61),qjSK0c(0x62),'\x46\x62\x7c\x4c\x61\x7d\x72\x2f\x2f\x22',qjSK0c(EZxPFAe(0xbb)),'\u0035\u007c\u0048\u0022\u006b\u0056\u0046\u0074\u0061\u0028\u0035\u0040\u002f\u0053\u004b',qjSK0c(0x64),qjSK0c(0x65),'\x35\x7c\x48\x22\x6b\x56\x2a\x6a',qjSK0c(EZxPFAe(0x2b)),qjSK0c(0x67),qjSK0c(0x68),'p|Zw=GYj','R[c`h8x?H|84&8?3[QA',qjSK0c(0x5d),qjSK0c(0x69),qjSK0c(0x6a),qjSK0c(EZxPFAe(0x7)),qjSK0c(0x6b),'dhCdNp1jV}|~+NtA|St',qjSK0c(EZxPFAe(0x8)),']|,wCQ=j',qjSK0c(0x6d),qjSK0c(0x1f),qjSK0c(0x6b),qjSK0c(0x6e),'5|H"kVFta(5@/SK',qjSK0c(EZxPFAe(0x45)),qjSK0c(EZxPFAe(0xa)),qjSK0c(EZxPFAe(0x47)),qjSK0c(EZxPFAe(0x44)),qjSK0c(0x65),'5|H"kVJ(X}P~9',qjSK0c(0x73),qjSK0c(EZxPFAe(0xa4)),qjSK0c(EZxPFAe(0xa6)),qjSK0c(EZxPFAe(0x8)),qjSK0c(EZxPFAe(0x10)),qjSK0c(0x76),'=x9]dR1S9:)DX.?cu%<|50B;r?!iV.YW|GAQ:*N,%mM+(Ek',qjSK0c(0x77),qjSK0c(EZxPFAe(0xa1)),qjSK0c(0x6a),qjSK0c(EZxPFAe(0x7)),qjSK0c(0x5a),qjSK0c(EZxPFAe(0xa5)),qjSK0c(0x79),qjSK0c(EZxPFAe(0xb)),EZxPFAe(0x2c),qjSK0c(EZxPFAe(0xc)),qjSK0c(EZxPFAe(0x9)),qjSK0c(0x7c),qjSK0c(0x1f),qjSK0c(EZxPFAe(0x6)),qjSK0c(0x63),qjSK0c(EZxPFAe
// 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