jdpro/jd_znshb_draw.js

7 lines
88 KiB
JavaScript
Raw Normal View History

2024-01-15 12:52:31 +00:00
/*
18 8 * * * jd_znshb_draw.js
*/
const $ = new Env('炸年兽抽红包_抽奖提现');
var _0xodP='jsjiami.com.v7';const _0x1aef3d=_0x299e;if(function(_0x51ce30,_0x38cf8c,_0x43fa36,_0x4ee774,_0x3794d3,_0xaee16d,_0x1c0b2f){return _0x51ce30=_0x51ce30>>0x7,_0xaee16d='hs',_0x1c0b2f='hs',function(_0x1ce4b0,_0x3a4058,_0x19b475,_0x22a4f8,_0x3e07e8){const _0x1e0337=_0x299e;_0x22a4f8='tfi',_0xaee16d=_0x22a4f8+_0xaee16d,_0x3e07e8='up',_0x1c0b2f+=_0x3e07e8,_0xaee16d=_0x19b475(_0xaee16d),_0x1c0b2f=_0x19b475(_0x1c0b2f),_0x19b475=0x0;const _0x115838=_0x1ce4b0();while(!![]&&--_0x4ee774+_0x3a4058){try{_0x22a4f8=-parseInt(_0x1e0337(0x3ca,'*kdF'))/0x1*(-parseInt(_0x1e0337(0x1b2,'DrIc'))/0x2)+-parseInt(_0x1e0337(0x37a,'JM&5'))/0x3*(parseInt(_0x1e0337(0x461,'t]xT'))/0x4)+parseInt(_0x1e0337(0x1f9,'c%HD'))/0x5*(-parseInt(_0x1e0337(0x1de,'GbOY'))/0x6)+parseInt(_0x1e0337(0x18d,'c%HD'))/0x7*(parseInt(_0x1e0337(0x446,'3uA^'))/0x8)+-parseInt(_0x1e0337(0x3c8,'2Dv9'))/0x9+parseInt(_0x1e0337(0x273,'t]xT'))/0xa+parseInt(_0x1e0337(0x2c8,'2Dv9'))/0xb;}catch(_0x3fbdf3){_0x22a4f8=_0x19b475;}finally{_0x3e07e8=_0x115838[_0xaee16d]();if(_0x51ce30<=_0x4ee774)_0x19b475?_0x3794d3?_0x22a4f8=_0x3e07e8:_0x3794d3=_0x3e07e8:_0x19b475=_0x3e07e8;else{if(_0x19b475==_0x3794d3['replace'](/[nWgQbSJfqrHOepMTLtyRDAkd=]/g,'')){if(_0x22a4f8===_0x3a4058){_0x115838['un'+_0xaee16d](_0x3e07e8);break;}_0x115838[_0x1c0b2f](_0x3e07e8);}}}}}(_0x43fa36,_0x38cf8c,function(_0x479744,_0x5b06dd,_0x3c77f9,_0xfddca2,_0x23fe54,_0x2b0029,_0xa2c16){return _0x5b06dd='\x73\x70\x6c\x69\x74',_0x479744=arguments[0x0],_0x479744=_0x479744[_0x5b06dd](''),_0x3c77f9=`\x72\x65\x76\x65\x72\x73\x65`,_0x479744=_0x479744[_0x3c77f9]('\x76'),_0xfddca2=`\x6a\x6f\x69\x6e`,(0x1505df,_0x479744[_0xfddca2](''));});}(0x6080,0xcf6d3,_0x2b7a,0xc3),_0x2b7a){}const _0x55d57d=$[_0x1aef3d(0x4b5,'pi7(')]()?require(_0x1aef3d(0x167,']Bgw')):'',_0x392859=$[_0x1aef3d(0x35d,'zmJ[')]()?require(_0x1aef3d(0x48f,'UMW1')):'',_0x5eccc4=require(_0x1aef3d(0x147,'$kUo')),_0x592fc8=require(_0x1aef3d(0x4e5,'gwQd'));let _0x716abe=!![],_0x43f020=[],_0x9b34ec=[],_0x97d354=[],_0x5e09f3=[],_0x2f8650,_0x1f2395=[],_0x11809d='',_0x330621='',_0x4ff1e5='',_0xa3f7c0;const _0x5e4aa2=process[_0x1aef3d(0x365,'$kUo')][_0x1aef3d(0x33b,'oEJa')]||'-1',_0x1d5296=process[_0x1aef3d(0x25e,'ojW&')][_0x1aef3d(0x4c3,'XXR9')]||'1',_0x2e3aa8=process[_0x1aef3d(0x419,'gnXm')][_0x1aef3d(0x4c1,'*kdF')]||'5',_0x31125f=process[_0x1aef3d(0x365,'$kUo')][_0x1aef3d(0x469,'P6Aj')]||'1',_0x58674b=process[_0x1aef3d(0x3b0,'d[24')][_0x1aef3d(0x384,'d[24')]||![],_0x24bcf6=process[_0x1aef3d(0x163,'gwQd')][_0x1aef3d(0x1c0,'JM&5')]||![],_0x569037=process[_0x1aef3d(0x375,'p0D]')][_0x1aef3d(0xee,'$kUo')]?process[_0x1aef3d(0x365,'$kUo')][_0x1aef3d(0x37e,'gwQd')]:![];if(process[_0x1aef3d(0x394,'W4Wc')][_0x1aef3d(0x3db,'46AQ')])try{require(_0x1aef3d(0x1c7,'hd2l')),_0x2f8650=require(_0x1aef3d(0x2fb,'DrIc')),$[_0x1aef3d(0x376,'rWK3')]=_0x2f8650[_0x1aef3d(0x49e,'*kdF')]($[_0x1aef3d(0x32a,'JHNf')][_0x1aef3d(0x506,'c%HD')]($)),$[_0x1aef3d(0xf0,'$kUo')]=_0x2f8650[_0x1aef3d(0x1e6,'OXjw')]($[_0x1aef3d(0x451,'zXb5')][_0x1aef3d(0x231,'vo9t')]($));}catch{$[_0x1aef3d(0x13d,'gnXm')](_0x1aef3d(0x220,'gnXm')),$[_0x1aef3d(0x2eb,'O]v*')]=$[_0x1aef3d(0x31c,'rpQ@')],$[_0x1aef3d(0x2c7,'rpQ@')]=$[_0x1aef3d(0x1f7,'UMW1')];}else $[_0x1aef3d(0x393,'JHNf')]=$[_0x1aef3d(0x14f,'46AQ')],$[_0x1aef3d(0x24a,']glG')]=$[_0x1aef3d(0x3f3,'qoqg')];if($[_0x1aef3d(0x29e,'UMW1')]()){Object[_0x1aef3d(0x194,'pi7(')](_0x392859)[_0x1aef3d(0x4d3,'9*(k')](_0x211ecc=>{const _0x2ae405=_0x1aef3d;_0x1f2395[_0x2ae405(0x18f,'2Dv9')](_0x392859[_0x211ecc]);});if(process[_0x1aef3d(0x3b0,'d[24')][_0x1aef3d(0x347,'ojW&')]&&process[_0x1aef3d(0x3f4,'%%km')][_0x1aef3d(0x46b,'zr&U')]===_0x1aef3d(0x247,'(v3s'))console[_0x1aef3d(0x39d,'JM&5')]=()=>{};}else _0x1f2395=[$[_0x1aef3d(0x343,'sUes')](_0x1aef3d(0x149,'vo9t')),$[_0x1aef3d(0x255,'^gzz')](_0x1aef3d(0x511,'GbOY')),..._0x19dec6($[_0x1aef3d(0x135,'cwO8')](_0x1aef3d(0x4f0,'qoqg'))||'[]')[_0x1aef3d(0x355,'*kdF')](_0x4e2951=>_0x4e2951[_0x1aef3d(0x262,'qoqg')])][_0x1aef3d(0x43b,'3uA^')](_0xbcf683=>!!_0xbcf683);!(async()=>{const _0x1d733b=_0x1aef3d,_0x1f2877={'euWuk':_0x1d733b(0x33c,'Pw
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