mirror of https://github.com/KingRan/KR.git
28 lines
105 KiB
JavaScript
28 lines
105 KiB
JavaScript
|
/*
|
|||
|
大牌联合0817期
|
|||
|
|
|||
|
活动地址:https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC20230817cot/oC20230817cot?actId=04ab382cebe94655b9ab223dd166d_230817
|
|||
|
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
变量填写:
|
|||
|
黑名单 用&隔开 pin值
|
|||
|
//export DPLHTY_blacklist=""
|
|||
|
重试次数,默认30
|
|||
|
//export retrynum="30"
|
|||
|
如需修改抽奖次数请设置环境变量:
|
|||
|
//export opencard_draw="3" //次数
|
|||
|
填地址变量看库说明
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#大牌联合0817期
|
|||
|
1 1 1 1 * jd_dplh0817.js, tag=大牌联合0817期, enabled=true
|
|||
|
*/
|
|||
|
let opencard_toShop = "false"
|
|||
|
const $ = new Env("大牌联合0817期");
|
|||
|
var version_='jsjiami.com.v7';const i1liI1=iii1II;(function(iiiI,I1li11,II1iIl,II1iIi,iI1iI,Ii11I1,li1IiI){return iiiI=iiiI>>0x9,Ii11I1='hs',li1IiI='hs',function(Illl,Illi,l1IiiI,II1iI1,iI1i1){const iiIIi1=iii1II;II1iI1='tfi',Ii11I1=II1iI1+Ii11I1,iI1i1='up',li1IiI+=iI1i1,Ii11I1=l1IiiI(Ii11I1),li1IiI=l1IiiI(li1IiI),l1IiiI=0x0;const il11Il=Illl();while(!![]&&--II1iIi+Illi){try{II1iI1=parseInt(iiIIi1(0x3ac,'Y@p*'))/0x1+-parseInt(iiIIi1(0x349,'&j*Q'))/0x2+-parseInt(iiIIi1(0x49a,'8@sB'))/0x3*(parseInt(iiIIi1(0x5bb,'sQ%J'))/0x4)+parseInt(iiIIi1(0x409,'e71M'))/0x5*(parseInt(iiIIi1(0x592,'2@iK'))/0x6)+parseInt(iiIIi1(0x446,'#rTA'))/0x7*(-parseInt(iiIIi1(0x2ef,'Hufj'))/0x8)+-parseInt(iiIIi1(0x5c4,'8pMk'))/0x9+parseInt(iiIIi1(0x205,'[R*x'))/0xa;}catch(IIiI1){II1iI1=l1IiiI;}finally{iI1i1=il11Il[Ii11I1]();if(iiiI<=II1iIi)l1IiiI?iI1iI?II1iI1=iI1i1:iI1iI=iI1i1:l1IiiI=iI1i1;else{if(l1IiiI==iI1iI['replace'](/[TylVQbEdXBWfLIqtUYGRH=]/g,'')){if(II1iI1===Illi){il11Il['un'+Ii11I1](iI1i1);break;}il11Il[li1IiI](iI1i1);}}}}}(II1iIl,I1li11,function(II1iII,il11Ii,li1Ii1,i1ii11,iii1,ill1i,ill1l){return il11Ii='\x73\x70\x6c\x69\x74',II1iII=arguments[0x0],II1iII=II1iII[il11Ii](''),li1Ii1='\x72\x65\x76\x65\x72\x73\x65',II1iII=II1iII[li1Ii1]('\x76'),i1ii11='\x6a\x6f\x69\x6e',(0x139c08,II1iII[i1ii11](''));});}(0x19600,0x31724,Iii11l,0xcd),Iii11l)&&(version_=Iii11l);const Il1I1I=$[i1liI1(0x262,'fYOK')]()?require(i1liI1(0x3a5,'aR)1')):'',ll1Il1=$[i1liI1(0x4ba,'zYZ5')]()?require(i1liI1(0x242,'2@iK')):'';let li11li=[],iliiii='';if($['isNode']()){Object[i1liI1(0x3aa,'sQ%J')](Il1I1I)['forEach'](i1IiI=>{const l1IilI=i1liI1;li11li[l1IilI(0x4f8,'G[D[')](Il1I1I[i1IiI]);});if(process[i1liI1(0x2d2,'6Ook')][i1liI1(0x49f,'fY4@')]&&process['env']['JD_DEBUG']===i1liI1(0x346,'G[D['))console[i1liI1(0x4a5,'fY4@')]=()=>{};}else li11li=[$['getdata']('CookieJD'),$[i1liI1(0x420,'3stp')](i1liI1(0x340,'BWhV')),...Ii1Iil($[i1liI1(0x5d2,'UIq^')](i1liI1(0x3e5,'3stp'))||'[]')[i1liI1(0x38f,'4bdM')](lIllil=>lIllil['cookie'])]['filter'](iilIi1=>!!iilIi1);let IIlIIi='30',iliiil='0';IIlIIi=$['isNode']()?process[i1liI1(0x439,'sQ%J')]['retrynum']?process[i1liI1(0x1c5,'Pz@4')][i1liI1(0x43d,'zYZ5')]:IIlIIi:$['getdata'](i1liI1(0x31c,'i)^G'))?$[i1liI1(0x588,'^iXh')](i1liI1(0x475,'BWhV')):iliiil,iliiil=$[i1liI1(0x449,'uauv')]()?process['env'][i1liI1(0x342,'tVK7')]?process['env']['opencard_draw']:iliiil:$['getdata'](i1liI1(0x537,'Pz@4'))?$[i1liI1(0x27e,'E$S$')](i1liI1(0x3e8,'^5ep')):iliiil,opencard_toShop=$[i1liI1(0x3b3,'Xl76')]()?process[i1liI1(0x30d,'385O')][i1liI1(0x246,'zYZ5')]?process['env']['opencard_toShop']:''+opencard_toShop:$[i1liI1(0x3dc,'Hufj')](i1liI1(0x531,'t57U'))?$['getdata']('opencard_toShop'):''+opencard_toShop,allMessage='',message='',$[i1liI1(0x428,'Xl76')]=![],$[i1liI1(0x3de,'w$#X')]=![],$['activityEnd']=![];let li11ll='',i1Il1='',li1l1='',IIiI1l='',IIiI1i='04ab382cebe94655b9ab223dd166d_230817';CryptoJS=$[i1liI1(0x487,'BWhV')]()?require(i1liI1(0x31e,'^iXh')):CryptoJS;const ilIllI=require('./function/krgetToken'),I1IIli=require('./function/krh5st'),Il1I1i=require('./function/krgetua');let lIilI1='https://jinggengjcq-isv.isvjcloud.com';IIiI1l=$[i1liI1(0x26c,'3stp')]()?process[i1liI1(0x513,'UIq^')]['helpnum']?process[i1liI1(0x3c8,']btY')]['helpnum']:''+IIiI1l:$[i1liI1(0x206,'fY4@')](i1liI1(0x322,'AeT#'))?$['getdata'](i1liI1(0x427,'kuzN')):''+IIiI1l;let Il1I1l='',Ii1Il1='';$[i1liI1(0x284,'zYZ5')]=process['env'][i1liI1(0x49e,'Y@p*')]||Il1I1l,$['blacklist']=process[i1liI1(0x316,'uauv')][i1liI1(0x629,'Xl76')]||Ii1Il1,iliii1(),ll1Ii1(),!(async()=>{const ll1I1i=i1liI1,I111={'VLfIX':function(I1I11i,l1iI1l){return I1I11i+l1iI1l;},'uXlBe':function(III1ll,l1lIIi){return III1ll*l1lIIi;},'vmAYJ':'0|9|7|4|3|2|1|8|10|6|5','DZjsH':ll1I1i(0x45d,'FWX$'),'bDXQv':'%27','TFISs':ll1I1i(0x4c4,'BWhV'),'DTWeJ':function(iII11I,IiIii1){return iII11I+IiIii1;},'vFoCA':function(l1lIIl,i1lIl){return l1lIIl>i1lIl;},'bugXR':function(i1lIi,iilIiI){return i1lIi>iilIiI;},'BnfTo':ll1I1i(0x241,'P*D8'),'mpkSf':function(III1li,Ili1iI,lIlll1){return III1li(Ili1iI,lIlll1);},'uUlbG':function(Ili1i1,I1I11I){return I
|
|||
|
// 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
|