mirror of https://github.com/KingRan/KR.git
28 lines
107 KiB
JavaScript
28 lines
107 KiB
JavaScript
|
/*
|
|||
|
大牌联合0805期
|
|||
|
|
|||
|
活动地址:https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC20230805dda/oC20230805dda?actId=0248e06bd1694f1_230805
|
|||
|
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
变量填写:
|
|||
|
黑名单 用&隔开 pin值
|
|||
|
//export DPLHTY_blacklist=""
|
|||
|
重试次数,默认30
|
|||
|
//export retrynum="30"
|
|||
|
如需修改抽奖次数请设置环境变量:
|
|||
|
//export opencard_draw="3" //次数
|
|||
|
填地址变量看库说明
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#大牌联合0805期
|
|||
|
1 1 1 1 * jd_dplh0805.js, tag=大牌联合0805期, enabled=true
|
|||
|
*/
|
|||
|
let opencard_toShop = "false"
|
|||
|
const $ = new Env("大牌联合0805期");
|
|||
|
var version_='jsjiami.com.v7';const l1Iil1=iii1II;(function(li1Ii1,i1ii11,iii1,ill1i,ill1l,iiIIi1,i1liI1){return li1Ii1=li1Ii1>>0x1,iiIIi1='hs',i1liI1='hs',function(l1IilI,ll1I1i,iiiiII,ll1I1l,iilI){const IIilII=iii1II;ll1I1l='tfi',iiIIi1=ll1I1l+iiIIi1,iilI='up',i1liI1+=iilI,iiIIi1=iiiiII(iiIIi1),i1liI1=iiiiII(i1liI1),iiiiII=0x0;const IIilI1=l1IilI();while(!![]&&--ill1i+ll1I1i){try{ll1I1l=-parseInt(IIilII(0x125,'5oep'))/0x1*(-parseInt(IIilII(0x1a1,'WRuT'))/0x2)+-parseInt(IIilII(0x3c7,'g6sG'))/0x3*(parseInt(IIilII(0x20a,'K8BE'))/0x4)+-parseInt(IIilII(0x514,'YO5n'))/0x5+parseInt(IIilII(0x266,'x@Ya'))/0x6*(parseInt(IIilII(0x58b,'Yfg@'))/0x7)+parseInt(IIilII(0x124,'WRuT'))/0x8*(-parseInt(IIilII(0x20b,'#%HP'))/0x9)+parseInt(IIilII(0x157,'rrov'))/0xa+parseInt(IIilII(0x251,'v6W$'))/0xb*(-parseInt(IIilII(0x336,'b@bk'))/0xc);}catch(li1Il1){ll1I1l=iiiiII;}finally{iilI=IIilI1[iiIIi1]();if(li1Ii1<=ill1i)iiiiII?ill1l?ll1I1l=iilI:ill1l=iilI:iiiiII=iilI;else{if(iiiiII==ill1l['replace'](/[ByDbhTMnVeORQwdqxN=]/g,'')){if(ll1I1l===ll1I1i){IIilI1['un'+iiIIi1](iilI);break;}IIilI1[i1liI1](iilI);}}}}}(iii1,i1ii11,function(i1ii1I,iil1,iiIIiI,i1liII,ilII1i,ill1I,ilII1l){return iil1='\x73\x70\x6c\x69\x74',i1ii1I=arguments[0x0],i1ii1I=i1ii1I[iil1](''),iiIIiI='\x72\x65\x76\x65\x72\x73\x65',i1ii1I=i1ii1I[iiIIiI]('\x76'),i1liII='\x6a\x6f\x69\x6e',(0x137cdc,i1ii1I[i1liII](''));});}(0x194,0xce11e,Iii11l,0xcc),Iii11l)&&(version_=Iii11l);const I1IIli=$['isNode']()?require(l1Iil1(0x350,'CRtp')):'',Il1I1i=$['isNode']()?require(l1Iil1(0x241,'N8Eb')):'';let lIilI1=[],Il1I1l='';if($[l1Iil1(0x160,'K&T$')]()){Object[l1Iil1(0x1cd,'tZba')](I1IIli)[l1Iil1(0x327,'tZba')](i1lIl=>{lIilI1['push'](I1IIli[i1lIl]);});if(process['env']['JD_DEBUG']&&process[l1Iil1(0x11a,'v6W$')][l1Iil1(0x497,'igE0')]==='false')console['log']=()=>{};}else lIilI1=[$[l1Iil1(0x3dd,'YO5n')](l1Iil1(0x374,'ewvn')),$['getdata'](l1Iil1(0x3ee,')PDu')),...I1I11i($[l1Iil1(0x2a8,'F0Ir')](l1Iil1(0x1e0,'F0Ir'))||'[]')[l1Iil1(0x372,'x@Ya')](i1lIi=>i1lIi[l1Iil1(0x439,'x@Ya')])]['filter'](iilIiI=>!!iilIiI);let Ii1Il1='30',iIIIli='0';Ii1Il1=$[l1Iil1(0x36d,'N8Eb')]()?process[l1Iil1(0x490,'BJaT')][l1Iil1(0x421,'Qoyk')]?process[l1Iil1(0x172,'uqdE')][l1Iil1(0x421,'Qoyk')]:Ii1Il1:$[l1Iil1(0x1fc,'K8BE')](l1Iil1(0x2dd,'$*#g'))?$[l1Iil1(0xfb,'tZba')](l1Iil1(0x4b1,'ewvn')):iIIIli,iIIIli=$[l1Iil1(0x4cd,'rxSe')]()?process[l1Iil1(0x24e,'b7nm')]['opencard_draw']?process[l1Iil1(0x490,'BJaT')][l1Iil1(0x2cc,'*SEN')]:iIIIli:$[l1Iil1(0x3bc,'p%a%')]('opencard_draw')?$[l1Iil1(0x28e,'mLKd')](l1Iil1(0x5ac,'ewvn')):iIIIli,opencard_toShop=$['isNode']()?process[l1Iil1(0x4a9,'1qS8')][l1Iil1(0x566,'%FDB')]?process[l1Iil1(0x4f6,'(cI9')][l1Iil1(0x4a2,'a*hb')]:''+opencard_toShop:$[l1Iil1(0x339,'x@Ya')]('opencard_toShop')?$[l1Iil1(0x3ec,'Qoyk')](l1Iil1(0x5d1,'6EXa')):''+opencard_toShop,allMessage='',message='',$[l1Iil1(0x51f,'N8Eb')]=![],$['outFlag']=![],$[l1Iil1(0x4e3,'5oep')]=![];let I1IIll='',i1Ii1='',lIilII='',ilIlli='',I1IIlI=l1Iil1(0x476,'$*#g');CryptoJS=$['isNode']()?require('crypto-js'):CryptoJS;const ilIlll=require('./function/krgetToken'),Ii1Iii=require(l1Iil1(0x433,'F0Ir')),Ii1Iil=require(l1Iil1(0x211,'g6sG'));let ll1IiI=l1Iil1(0x33b,'uqdE');ilIlli=$[l1Iil1(0x36d,'N8Eb')]()?process[l1Iil1(0x5a8,'mLKd')][l1Iil1(0x245,'s(ci')]?process[l1Iil1(0x2db,'g6nb')][l1Iil1(0x578,'YB)v')]:''+ilIlli:$[l1Iil1(0x5d2,'Yfg@')](l1Iil1(0x2cd,')PDu'))?$['getdata'](l1Iil1(0x406,'4vqv')):''+ilIlli;let li1li='',iIIIll='';$[l1Iil1(0x370,'s(ci')]=process[l1Iil1(0x4f0,'HZ3V')][l1Iil1(0x451,'HZ3V')]||li1li,$['blacklist']=process[l1Iil1(0x11d,'P1Cv')]['DPLHTY_blacklist']||iIIIll,l1lIIl(),iII11I(),!(async()=>{const IIiIl=l1Iil1,III1li={'bzZYQ':function(lIlll1,Ili1i1){return lIlll1>Ili1i1;},'YgQks':IIiIl(0x594,'X3NZ'),'FPEMW':'此ip已无法开卡,请更换IP后再执行脚本\x0a','SsIBf':function(I1I11I,iII11l){return I1I11I+iII11l;},'LpKtW':function(i1IiI1,l1lIII){return i1IiI1*l1lIII;},'SCUdq':'💔\x20无法开卡,跳过运行','ahwpU':function(iII11i,l1iI1i){return iII11i(l1iI1i);},'gXEKJ':IIiIl(0x3c3,'KE&]'),'AeRpP':function(lIlllI,III1lI){return l
|
|||
|
// 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
|