KR/jd_opencardDPLHTY.js

29 lines
108 KiB
JavaScript
Raw Normal View History

2023-09-17 10:21:26 +08:00
/*
大牌联合通用开卡
新增开卡脚本一次性脚本
通用大牌联合通用开卡
活动地址https://jinggengjcq-isv.isvjcloud.com/xxxx/xxx/xxx
变量填写
//export DPLHTY="活动ID"
2023-09-17 12:50:49 +08:00
//export DPLHTY="04c1bf1191d044c6ae059e_22040802"
2023-09-17 10:21:26 +08:00
任务之间延时设置默认2秒
//export DPLHTY_WAIT="2"
黑名单 &隔开 pin值
//export DPLHTY_blacklist=""
重试次数默认30
//export retrynum="30"
活动ID自行查找
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
============Quantumultx===============
[task_local]
#大牌联合通用开卡
1 1 1 1 * jd_opencardDPLHTY.js, tag=大牌联合通用开卡, enabled=true
*/
const $ = new Env('大牌联合通用开卡');
2023-09-17 13:05:38 +08:00
var version_='jsjiami.com.v7';const iiiIli11=i1iIiiI1;(function(IIli1iI,i11II1l1,i1IiiIIl,ll11iiIl,IillIiiI,l1i1iii1,iIiIIil1){return IIli1iI=IIli1iI>>0x3,l1i1iii1='hs',iIiIIil1='hs',function(i1l1Il1I,l1iIIlll,lil1i1i1,IIllIII1,lii111li){const Ii1lili=i1iIiiI1;IIllIII1='tfi',l1i1iii1=IIllIII1+l1i1iii1,lii111li='up',iIiIIil1+=lii111li,l1i1iii1=lil1i1i1(l1i1iii1),iIiIIil1=lil1i1i1(iIiIIil1),lil1i1i1=0x0;const iI11l1Il=i1l1Il1I();while(!![]&&--ll11iiIl+l1iIIlll){try{IIllIII1=-parseInt(Ii1lili(0x53e,'n3Al'))/0x1*(-parseInt(Ii1lili(0x436,'w)Yf'))/0x2)+-parseInt(Ii1lili(0x14a,')E#i'))/0x3*(-parseInt(Ii1lili(0x15a,'L4lx'))/0x4)+parseInt(Ii1lili(0x553,'L4lx'))/0x5+parseInt(Ii1lili(0x25d,'mdTQ'))/0x6*(-parseInt(Ii1lili(0x258,'I3rM'))/0x7)+-parseInt(Ii1lili(0x491,'*#%P'))/0x8*(parseInt(Ii1lili(0x49d,')E#i'))/0x9)+parseInt(Ii1lili(0x10a,'IE%!'))/0xa+-parseInt(Ii1lili(0x49e,'bU(n'))/0xb;}catch(ii11lI1I){IIllIII1=lil1i1i1;}finally{lii111li=iI11l1Il[l1i1iii1]();if(IIli1iI<=ll11iiIl)lil1i1i1?IillIiiI?IIllIII1=lii111li:IillIiiI=lii111li:lil1i1i1=lii111li;else{if(lil1i1i1==IillIiiI['replace'](/[RhKBEHrpVLlubCPJYdeU=]/g,'')){if(IIllIII1===l1iIIlll){iI11l1Il['un'+l1i1iii1](lii111li);break;}iI11l1Il[iIiIIil1](lii111li);}}}}}(i1IiiIIl,i11II1l1,function(III1ilII,l1IIIilI,lllii1Ii,I1IIIi1l,IIillIIi,i11lI1II,iili1I1i){return l1IIIilI='\x73\x70\x6c\x69\x74',III1ilII=arguments[0x0],III1ilII=III1ilII[l1IIIilI](''),lllii1Ii=`\x72\x65\x76\x65\x72\x73\x65`,III1ilII=III1ilII[lllii1Ii]('\x76'),I1IIIi1l=`\x6a\x6f\x69\x6e`,(0x13ea26,III1ilII[I1IIIi1l](''));});}(0x618,0x4fe9a,iI1lIi1,0xc5),iI1lIi1)&&(version_=iI1lIi1);const i1I1IIIl=$[iiiIli11(0x479,'w)Yf')]()?require(iiiIli11(0x45e,'&x@D')):'',ilIII11l=$[iiiIli11(0x349,'UZsE')]()?require(iiiIli11(0x4b5,'$S48')):'';let IIIiiil=[],iIIiiil1='';if($[iiiIli11(0x511,'A(Av')]()){Object[iiiIli11(0x3ac,'2L%J')](i1I1IIIl)[iiiIli11(0x28a,'UWNM')](ll1I111I=>{const iiiI1iI1=iiiIli11;IIIiiil[iiiI1iI1(0x18c,'EE1m')](i1I1IIIl[ll1I111I]);});if(process[iiiIli11(0x2f0,'UZsE')][iiiIli11(0x182,'A(Av')]&&process['env'][iiiIli11(0x52a,'R!GP')]===iiiIli11(0x11c,'dDSV'))console['log']=()=>{};}else IIIiiil=[$[iiiIli11(0x25a,'dDSV')](iiiIli11(0x401,'7PZ8')),$['getdata']('CookieJD2'),...iIliiIII($[iiiIli11(0x200,'bU(n')](iiiIli11(0x125,'&WQ3'))||'[]')['map'](I1I1l111=>I1I1l111[iiiIli11(0x4bf,'VdlE')])][iiiIli11(0x35a,'7daC')](IIII11I=>!!IIII11I);let IIIlIiiI='30',iI1IiliI='0';IIIlIiiI=$[iiiIli11(0x104,'$S48')]()?process['env'][iiiIli11(0x13c,'R!GP')]?process[iiiIli11(0x357,'uz$5')]['retrynum']:IIIlIiiI:$[iiiIli11(0x340,'XDQ8')](iiiIli11(0x3ab,'uz$5'))?$['getdata']('retrynum'):IIIlIiiI,iI1IiliI=$[iiiIli11(0x1b3,'M*Vy')]()?process['env']['opencard_draw']?process[iiiIli11(0x388,'2L%J')][iiiIli11(0x4a0,'tx$]')]:iI1IiliI:$['getdata'](iiiIli11(0x339,'R!GP'))?$[iiiIli11(0x476,'mdTQ')](iiiIli11(0x4cd,'xT!R')):iI1IiliI,allMessage='',message='',$[iiiIli11(0x29d,'7daC')]=![],$[iiiIli11(0x4b0,'L4lx')]=![],$[iiiIli11(0x420,'0Q^t')]=![];let illili1l='',lliI1lIi='',i111lIlI='',illl1ll='',iIllil11='';CryptoJS=$[iiiIli11(0x2fb,'7PZ8')]()?require('crypto-js'):CryptoJS;const lii1l1li=require('./function/krgetToken'),Iii1i=require(iiiIli11(0x32e,']CH5')),iill1ii1=require('./function/jdCommon');let llIll11l=iiiIli11(0x335,'EE1m');illl1ll=$[iiiIli11(0x134,'B0Ai')]()?process[iiiIli11(0x28b,'&x@D')]['helpnum']?process[iiiIli11(0x497,'I#0I')][iiiIli11(0x2c7,'L4lx')]:''+illl1ll:$[iiiIli11(0x477,'GIgc')]('helpnum')?$[iiiIli11(0x536,'M*Vy')]('helpnum'):''+illl1ll,iIllil11=$['isNode']()?process['env'][iiiIli11(0x271,'I3rM')]?process[iiiIli11(0x547,'&WQ3')]['DPLHTY']:''+iIllil11:$['getdata']('DPLHTY')?$[iiiIli11(0x36f,'o&Wj')](iiiIli11(0x192,'n3Al')):''+iIllil11;const lIi11il=process['env'][iiiIli11(0x402,'A(Av')],lI111iIl=process[iiiIli11(0x1ca,'bU(n')][iiiIli11(0x374,'*#%P')]||'2';let ilI11lii=parseInt(lI111iIl)*0x3e8;lIi11il&&(ilI11lii=0x64);let iII1iliI='',iiII111i='';$[iiiIli11(0x443,'*#%P')]=process[iiiIli11(0x3ca,'M*Vy')]['DPLHTY_whitelist']||iII1iliI,$[iiiIli11(0x4b6,'dDSV')]=process[iiiIli11(0x43c,'GIgc')][iiiIli11(0x116,'EE1m')]||iiII111i,iii1ll11(),
2023-09-17 10:21:26 +08:00
// 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