mirror of https://github.com/KingRan/KR.git
28 lines
98 KiB
JavaScript
28 lines
98 KiB
JavaScript
|
/*
|
|||
|
大牌联合0816期
|
|||
|
|
|||
|
活动地址:https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC20230816def/oC20230816def?actId=edb27bbb5b7544a5_230816
|
|||
|
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
变量填写:
|
|||
|
黑名单 用&隔开 pin值
|
|||
|
//export DPLHTY_blacklist=""
|
|||
|
重试次数,默认30
|
|||
|
//export retrynum="30"
|
|||
|
如需修改抽奖次数请设置环境变量:
|
|||
|
//export opencard_draw="3" //次数
|
|||
|
填地址变量看库说明
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#大牌联合0816期
|
|||
|
1 1 1 1 * jd_dplh0816.js, tag=大牌联合0816期, enabled=true
|
|||
|
*/
|
|||
|
let opencard_toShop = "false"
|
|||
|
const $ = new Env("大牌联合0816期");
|
|||
|
var version_='jsjiami.com.v7';const iiii1I=iii1II;(function(iI1iII,l111Ii,lI1i11,lili1I,i1iiII,l111Il,I1III){return iI1iII=iI1iII>>0x3,l111Il='hs',I1III='hs',function(l1II1I,iiliI1,iIi11I,iiii11,iIl1II){const I1IIi=iii1II;iiii11='tfi',l111Il=iiii11+l111Il,iIl1II='up',I1III+=iIl1II,l111Il=iIi11I(l111Il),I1III=iIi11I(I1III),iIi11I=0x0;const il1lIi=l1II1I();while(!![]&&--lili1I+iiliI1){try{iiii11=-parseInt(I1IIi(0x204,'fTfu'))/0x1+-parseInt(I1IIi(0x351,'KS%0'))/0x2+parseInt(I1IIi(0x260,'t2f['))/0x3*(parseInt(I1IIi(0xf0,'nKGz'))/0x4)+parseInt(I1IIi(0x102,'t2f['))/0x5*(parseInt(I1IIi(0x4a4,'Es5B'))/0x6)+parseInt(I1IIi(0x489,'Z006'))/0x7+parseInt(I1IIi(0x3be,'JqOC'))/0x8*(-parseInt(I1IIi(0x3e4,'t2f['))/0x9)+parseInt(I1IIi(0xe6,'L1&s'))/0xa*(-parseInt(I1IIi(0x326,'L1&s'))/0xb);}catch(Ili1){iiii11=iIi11I;}finally{iIl1II=il1lIi[l111Il]();if(iI1iII<=lili1I)iIi11I?i1iiII?iiii11=iIl1II:i1iiII=iIl1II:iIi11I=iIl1II;else{if(iIi11I==i1iiII['replace'](/[ngLltNYWXUxEfMHeOJVF=]/g,'')){if(iiii11===iiliI1){il1lIi['un'+l111Il](iIl1II);break;}il1lIi[I1III](iIl1II);}}}}}(lI1i11,l111Ii,function(ii11iI,i1IIl1,I1IIl,i1iiIi,iiliII,i1iiIl,I11llI){return i1IIl1='\x73\x70\x6c\x69\x74',ii11iI=arguments[0x0],ii11iI=ii11iI[i1IIl1](''),I1IIl='\x72\x65\x76\x65\x72\x73\x65',ii11iI=ii11iI[I1IIl]('\x76'),i1iiIi='\x6a\x6f\x69\x6e',(0x1398f0,ii11iI[i1iiIi](''));});}(0x5f8,0x19cd8,Iii11l,0xc1),Iii11l)&&(version_=Iii11l);const ilIll1=$[iiii1I(0x31c,'f3#w')]()?require(iiii1I(0x21d,'2x&V')):'',I1IIil=$['isNode']()?require('./sendNotify'):'';let I1IIii=[],iIIIlI='';if($[iiii1I(0x261,'t2f[')]()){Object['keys'](ilIll1)[iiii1I(0x411,'r^^3')](lIiIiI=>{const lIlIi1=iiii1I;I1IIii[lIlIi1(0x259,'PqfD')](ilIll1[lIiIiI]);});if(process['env']['JD_DEBUG']&&process[iiii1I(0x25c,'Bl87')]['JD_DEBUG']==='false')console[iiii1I(0x3ff,'KL#Y')]=()=>{};}else I1IIii=[$['getdata'](iiii1I(0xc6,'eKwM')),$['getdata']('CookieJD2'),...li11lI($['getdata'](iiii1I(0x278,'Es5B'))||'[]')['map'](ilIliI=>ilIliI['cookie'])][iiii1I(0x1ad,'3US1')](II1li=>!!II1li);let li11i1='30',II1l1='0';li11i1=$[iiii1I(0x2d6,'fGKc')]()?process[iiii1I(0x137,'7@Y2')][iiii1I(0x49e,'f3#w')]?process[iiii1I(0x289,'6Fm&')]['retrynum']:li11i1:$[iiii1I(0x2db,'fGKc')](iiii1I(0x2dc,'L1&s'))?$[iiii1I(0x10e,'[i#I')]('retrynum'):II1l1,II1l1=$[iiii1I(0x128,'[K$f')]()?process[iiii1I(0x11d,'KIWI')]['opencard_draw']?process[iiii1I(0x238,'NuAg')]['opencard_draw']:II1l1:$[iiii1I(0x435,'t2f[')](iiii1I(0x348,'ARSz'))?$[iiii1I(0x86,'Es5B')](iiii1I(0x29d,'e28V')):II1l1,opencard_toShop=$['isNode']()?process[iiii1I(0x79,'#Yk*')][iiii1I(0x1cd,'e28V')]?process['env']['opencard_toShop']:''+opencard_toShop:$[iiii1I(0x484,'78mx')]('opencard_toShop')?$[iiii1I(0x18d,'[K$f')](iiii1I(0x35d,'NuAg')):''+opencard_toShop,allMessage='',message='',$[iiii1I(0x181,'oWmw')]=![],$[iiii1I(0x3bc,'3US1')]=![],$['activityEnd']=![];let liii1i='',IIll1i='',lI1iII='',IIll1l='',l1I1lI='edb27bbb5b7544a5_230816';CryptoJS=$[iiii1I(0x122,'PqfD')]()?require(iiii1I(0x2c9,'ARSz')):CryptoJS;const iIIIl1=require(iiii1I(0x40e,'JqOC')),li11iI=require(iiii1I(0x1f4,'PqfD')),liliIl=require('./function/krgetua');let liii1l=iiii1I(0x356,'L1&s');IIll1l=$['isNode']()?process[iiii1I(0x24e,'Z006')][iiii1I(0x1af,'RN(R')]?process[iiii1I(0x46c,'78mx')][iiii1I(0x22d,'(QGB')]:''+IIll1l:$['getdata'](iiii1I(0x243,'NuAg'))?$[iiii1I(0x478,'7@Y2')](iiii1I(0x22e,'9$P$')):''+IIll1l;let I1iiII='',liliIi='';$['whitelist']=process[iiii1I(0x20d,'S(92')][iiii1I(0xa5,'Es5B')]||I1iiII,$[iiii1I(0x2f5,'PqfD')]=process['env']['DPLHTY_blacklist']||liliIi,iIIIi1(),li1ii(),!(async()=>{const l1II1l=iiii1I,Ii1lIi={'qklCX':'此ip已被限制,请过10分钟后再执行脚本\x0a','jwAFd':function(ll1lII,Ii1lIl){return ll1lII>Ii1lIl;},'DADGv':function(iIIIiI,li1iI){return iIIIiI(li1iI);},'KKvuV':l1II1l(0x233,'PqfD'),'MjVpx':l1II1l(0x130,'t2f['),'yWkny':l1II1l(0x31b,'Bl87'),'lSnsL':'goIOg','ueXQa':'vThkfQk2CxFps0RdT0r7tl4tLNYA4seuA67MOIYQxEk3Vl9+AVo4NF+tgyeIc6A6kdK3rLBQpEQH9V4tdrrh0w==','bGzht':l1II1l(0xc7,'eKwM'),'iDHQa':function(I1IIi1,ll1lI1,II1ll){return I1IIi1(ll1lI1,II1ll);},'pYqjC':l1II1l(0x495,'ZmUJ'),'pfKjz'
|
|||
|
// 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
|