2024-06-28 15:57:23 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const ii1ill=iii1II;(function(l1iIII,llI1I1,IlIlil,lIli1I,II1il,lllI11,I1lIll){return l1iIII=l1iIII>>0x5,lllI11='hs',I1lIll='hs',function(I1lIli,II1ii,IIIIII,lillII,ii1ilI){const I1lIlI=iii1II;lillII='tfi',lllI11=lillII+lllI11,ii1ilI='up',I1lIll+=ii1ilI,lllI11=IIIIII(lllI11),I1lIll=IIIIII(I1lIll),IIIIII=0x0;const lI1ll1=I1lIli();while(!![]&&--lIli1I+II1ii){try{lillII=-parseInt(I1lIlI(0x1a4,'pk8y'))/0x1+-parseInt(I1lIlI(0x165,'v]ub'))/0x2*(-parseInt(I1lIlI(0x1d3,'KsfK'))/0x3)+parseInt(I1lIlI(0x24a,'T%q['))/0x4+parseInt(I1lIlI(0x1ab,'KsfK'))/0x5+-parseInt(I1lIlI(0x150,'v]ub'))/0x6*(parseInt(I1lIlI(0x1dd,'J4uS'))/0x7)+-parseInt(I1lIlI(0x1f9,'U[a@'))/0x8+-parseInt(I1lIlI(0x154,'T9v4'))/0x9*(-parseInt(I1lIlI(0x22b,'LVdF'))/0xa);}catch(iIiI1){lillII=IIIIII;}finally{ii1ilI=lI1ll1[lllI11]();if(l1iIII<=lIli1I)IIIIII?II1il?lillII=ii1ilI:II1il=ii1ilI:IIIIII=ii1ilI;else{if(IIIIII==II1il['replace'](/[XAUIbTxVMEqRJthBuLGHK=]/g,'')){if(lillII===II1ii){lI1ll1['un'+lllI11](ii1ilI);break;}lI1ll1[I1lIll](ii1ilI);}}}}}(IlIlil,llI1I1,function(liil1I,i11ii1,IlIliI,l1iII1,iiill1,lIli1i,IIIII1){return i11ii1='\x73\x70\x6c\x69\x74',liil1I=arguments[0x0],liil1I=liil1I[i11ii1](''),IlIliI=`\x72\x65\x76\x65\x72\x73\x65`,liil1I=liil1I[IlIliI]('\x76'),l1iII1=`\x6a\x6f\x69\x6e`,(0x174696,liil1I[l1iII1](''));});}(0x1860,0xbea34,Iii11l,0xc5),Iii11l)&&(iil=ii1ill(0x218,'T%q['));const jdCookie=require(ii1ill(0x1a9,'%spH')),notify=require(ii1ill(0x147,'z[j4')),common=require(ii1ill(0x24c,'JLrS')),{H5st}=require('./utils/Rebels_H'),isNotify=![];let cookie='',activityId=ii1ill(0x234,'KEOf'),workflowId='5b7b7ba0683542e3838798b04e2d8e92',pageId=ii1ill(0x1fe,'T9v4');const cookiesArr=Object[ii1ill(0x22e,'$7SA')](jdCookie)['map'](iil1iI=>jdCookie[iil1iI])[ii1ill(0x13a,'!tX^')](IlIllI=>IlIllI);!cookiesArr[0x0]&&($[ii1ill(0x245,'x#Xz')]($['name'],ii1ill(0x12f,'(8Jp')),process[ii1ill(0x175,'Wt8v')](0x1));!(async()=>{const II1iI=ii1ill,il1i1I={'UCghP':function(lI1li1,iI11II){return lI1li1<iI11II;},'DYXPI':function(iIII1I,ilil1i){return iIII1I(ilil1i);},'sDYkw':II1iI(0x1da,'!tX^'),'kbfYR':II1iI(0x179,'LVdF'),'VPxEn':II1iI(0x18c,'lB@6'),'jGRuy':function(IlIIi){return IlIIi();},'CAfrm':function(IiI1l,illlII){return IiI1l!==illlII;},'FNlqi':II1iI(0x1c6,'%spH')};notify['config']({'title':$[II1iI(0x1b9,'mB]8')]});for(let iIII11=0x0;il1i1I['UCghP'](iIII11,cookiesArr[II1iI(0x1f2,'JkO6')]);iIII11++){$[II1iI(0x232,'v]ub')]=iIII11+0x1,cookie=cookiesArr[iIII11],common['setCookie'](cookie),$[II1iI(0x185,'YOST')]=il1i1I['DYXPI'](decodeURIComponent,common['getCookieValue'](cookie,il1i1I[II1iI(0x1c1,'TKJl')])),$['message']=notify['create']($[II1iI(0x18a,'CvlS')],$[II1iI(0x17f,'J4uS')]),$[II1iI(0x1d6,'v]ub')]='',console['log']('\x0a******开始【京东账号'+$['index']+'】'+($[II1iI(0x192,'%spH')]||$[II1iI(0x185,'YOST')])+II1iI(0x182,'Q(Qb')),$['UA']=common[II1iI(0x254,'Zrhq')]($[II1iI(0x1e1,'Wt8v')]),$[II1iI(0x162,'U[a@')]=common[II1iI(0x173,'#xyk')](0x5a,il1i1I[II1iI(0x1ee,'O*FK')])['toUpperCase'](),$['fp']=common[II1iI(0x229,'z[j4')](0x20,il1i1I[II1iI(0x231,'ENA)')]),await il1i1I[II1iI(0x188,'TKJl')](Main),common['unsetCookie']();if($[II1iI(0x23c,'LI[q')])break;await $[II1iI(0x1d2,'Uvcw')](0x3e8);}isNotify&¬ify[II1iI(0x1dc,'LVdF')]()&&(il1i1I[II1iI(0x22a,'T9v4')](il1i1I[II1iI(0x1a2,'x#Xz')],II1iI(0x1b2,'mon4'))?await notify[II1iI(0x140,'Q(Qb')]():lilIll['log']('['+l1i111[II1iI(0x1cc,'KEOf')]+']'+iliII1['msg']+II1iI(0x12d,'x#Xz')+II11I1[II1iI(0x1f3,')VLA')]['successRewards']['4'][0x0]['discount']+Iii11I[II1iI(0x1bd,'p!yH')][II1iI(0x1fc,'%spH')]['4'][0x0][II1iI(0x253,'O*FK')]));})()[ii1ill(0x191,'W]$P')](llll1=>$[ii1ill(0x172,'KsfK')](llll1))[ii1ill(0x1f0,'Q(Qb')](()=>$[ii1ill(0x16f,'sdMj')]());async function Main(){const llI1II=ii1ill,lil11l={'MINxc':llI1II(0x258,'x#Xz'),'mqFJm':function(I1lIl1,lil11i){return I1lIl1===lil11i;},'bPVYq':llI1II(0x21f,'SB1a'),'MMapv':function(IlIIl,lI1liI){return IlIIl!==lI1liI;},'BzOtd':llI1II(0x164,'Q(Qb'),'NKQJv':function(i1i1Ii){return i1i1Ii();}},i1i1Il=await common[llI1II(0x1c9,'LI[q')](cookie);if(!i1i1Il&&lil11
|
|
|
|
|
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
|