faker3/jd_mybbphdyh4_give.js

12 lines
123 KiB
JavaScript
Raw Permalink Normal View History

2024-11-12 11:17:55 +08:00
/*
2024-11-15 11:26:52 +08:00
集卡赢好礼百元礼包等你拿赠送卡片
2024-11-12 11:17:55 +08:00
cron:1 1 1 1 *
*/
2024-12-03 15:00:56 +08:00
const $ = new Env('11.14-12.15 集卡赢好礼,百元礼包等你拿')
2024-11-15 11:26:52 +08:00
function SRSZgFR(){}var Wt5bUw=Object['defineProperty'],iVO1Qd,pqD2sI,I8Sr2a,kJd53k,oOmK26,rE7tvPw,xZ55w5,cqGlH4,rp32Iid,OxX8iHp,t7xjCud,gwzP_y,BNoJJZ,i3Da7U,Aul82Mv,tE_heB,d9PsAVy,taGl8E;function SEi5Yy(SRSZgFR){return iVO1Qd[SRSZgFR>-0x5f?SRSZgFR<0xf6?SRSZgFR>-0x5f?SRSZgFR+0x5e:SRSZgFR-0x5d:SRSZgFR+0x3e:SRSZgFR+0x54]}iVO1Qd=l7H8vr();function mCXs39(SRSZgFR,Wt5bUw){return pqD2sI(SRSZgFR,'\u006c\u0065\u006e\u0067\u0074\u0068',{value:Wt5bUw,configurable:SEi5Yy(0x21)})}SRSZgFR(pqD2sI=Object.defineProperty,I8Sr2a=mCXs39(xgpQwK((...Wt5bUw)=>{var pqD2sI=xgpQwK(Wt5bUw=>{return iVO1Qd[Wt5bUw>-0x22?Wt5bUw+0x21:Wt5bUw+0x28]},0x1);SRSZgFR(Wt5bUw[SEi5Yy(-0x3c)]=pqD2sI(-0x21),Wt5bUw[pqD2sI(-0x14)]=Wt5bUw[0x1]);return Wt5bUw[0x98](Wt5bUw[0x0]())}),0x2)(yrKtiFG,oE2dtK));var BHw4Nj=[],DmVdIj=[qUNFlGv(SEi5Yy(-0x33)),qUNFlGv(0x1),qUNFlGv(SEi5Yy(-0x5e)),qUNFlGv(SEi5Yy(-0x39)),qUNFlGv(0x4),qUNFlGv(SEi5Yy(-0x3b)),qUNFlGv(SEi5Yy(-0x24)),'\x23\x57\x6a\x7c\x70\x5e\x6e\x6c',qUNFlGv(0x7),qUNFlGv(0x8),'c(|kb','#Wj|p^!X]mtQ+c378IY?:','\u0023\u0057\u006a\u007c\u0070\u005e\u0021\u0058\u005d\u006d\u0074\u0051\u002b\u0063\u0077\u0023\u005d\u0078\u0062\u0076\u0037\u0048\u007e',qUNFlGv(SEi5Yy(0x26)),qUNFlGv(0xa),qUNFlGv(SEi5Yy(-0xf)),qUNFlGv(SEi5Yy(-0x27)),'u[?3es3|p','\x40\x49\x45\x6b\x6a\x73\x6d\x40\x5b\x6d\x52\x41\x45\x60\x6c\x40\x31\x3a\x7c\x4b',qUNFlGv(0xd),qUNFlGv(0xe),qUNFlGv(0xf),qUNFlGv(SEi5Yy(0x28)),qUNFlGv(SEi5Yy(0x25)),qUNFlGv(0x12),qUNFlGv(0x13),qUNFlGv(SEi5Yy(0x81)),qUNFlGv(SEi5Yy(-0x10)),qUNFlGv(SEi5Yy(-0x1f)),qUNFlGv(0x17),qUNFlGv(SEi5Yy(-0x5c)),'qx&DJ)dH5mL(rR,*:Z%uL5lAk&R$/PPg@_?3=7&|9&g%HCMO?aKPI2>2p',qUNFlGv(SEi5Yy(-0x37)),qUNFlGv(0x1a),qUNFlGv(SEi5Yy(-0x5d)),qUNFlGv(0x1c),qUNFlGv(SEi5Yy(-0x5d)),qUNFlGv(0x1d),qUNFlGv(0x1e),'\x4c\x5f\x3c\x3a\x36\x23\x38\x38\x3d\x2a\x30\x3f\x50\x7a\x2a\x37\x53\x70\x70\x39\x75\x52\x75\x38\x25\x4a\x38\x5e\x78\x7a\x25\x37\x6a\x25\x7c\x3a\x57',qUNFlGv(SEi5Yy(-0x2a)),SEi5Yy(-0x52),qUNFlGv(0x1c),qUNFlGv(SEi5Yy(-0x54)),qUNFlGv(0x21),qUNFlGv(0x22),qUNFlGv(0x23),qUNFlGv(0x15),qUNFlGv(SEi5Yy(-0x1b)),qUNFlGv(0x25),qUNFlGv(SEi5Yy(-0x6)),'OvV3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),qUNFlGv(SEi5Yy(0x14)),qUNFlGv(0x58),qUNFlGv(0x59),qUNFlGv(SEi5Yy(0x16)),qUNFlGv(SEi5Yy(-0x12)),qUNFlGv(SEi5Yy(0x17)),qUNFlGv(0x5d),qUNFlGv(0x5e),qUNFlGv(0x31),qUNFlGv(0x5f),qUNFlGv(SEi5Yy(-0x5a)),qUNFlGv(SEi5Yy(-0x21)),qUNFlGv(0x60),qUNFlGv(0x1b),qUNFlGv(SEi5Yy(-0x5c)),qUNFlGv(0x61),qUNFlGv(0x62),qUNFlGv(SEi5Yy(-0x5b)),qUNFlGv(SEi5Yy(-0x5b)),SEi5Yy(-0x58),qUNFlGv(SEi5Yy(-0x59)),qUNFlGv(0x65),qUNFlGv(SEi5Yy(-0x45)),'jEBDW1b||*',qUNFlGv(0x67),qUNFlGv(0x68),qUNFlGv(0x18),qUNFlGv(SEi5Yy(-0x1c)),qUNFlGv(SEi5Yy(-0x5a)),qUNFlGv(0x33),qUNFlGv(0x69),qUNFlGv(SEi5Yy(0x18)),qUNFlGv(0x60),qUNFlGv(SEi5Yy(-0x5d)),qUNFlGv(SEi5Yy(0x1c)),qUNFlGv(SEi5Yy(-0x5b)),qUNFlGv(SEi5Yy(-0x59)),SEi5Yy(-0x58),qUNFlGv(0x18),'\u003c\u0075\u0061\u0064\u0061\u0070\u0030\u0055\u0066\u0040\u0079\u0047\u0067\u0070\u0070\u0032\u0050\u0043\u007b\u0079\u005d\u0023\u006b\u002f\u0038\u0065\u006b\u004c\u0061\u0077\u002e\u0047\u0059\u007c\u0069'
2024-11-12 11:17:55 +08:00
// 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