mirror of https://github.com/6dylan6/jdpro.git
12 lines
153 KiB
JavaScript
12 lines
153 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
1 1 12 12 * jd_dplh0110.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0110");
|
|||
|
var _0xodW='jsjiami.com.v7';const _0x598029=_0x2994;(function(_0x53625d,_0x435dbf,_0x518e38,_0x13343e,_0x59fb81,_0x3bb527,_0x479106){return _0x53625d=_0x53625d>>0x1,_0x3bb527='hs',_0x479106='hs',function(_0x1c1775,_0x69bd96,_0x2d8f2c,_0x228273,_0x2d8835){const _0x143359=_0x2994;_0x228273='tfi',_0x3bb527=_0x228273+_0x3bb527,_0x2d8835='up',_0x479106+=_0x2d8835,_0x3bb527=_0x2d8f2c(_0x3bb527),_0x479106=_0x2d8f2c(_0x479106),_0x2d8f2c=0x0;const _0x238272=_0x1c1775();while(!![]&&--_0x13343e+_0x69bd96){try{_0x228273=parseInt(_0x143359(0x843,'z]5B'))/0x1+-parseInt(_0x143359(0x8b4,'^3xY'))/0x2+parseInt(_0x143359(0x8d4,'Ru(x'))/0x3+-parseInt(_0x143359(0x676,'iDKK'))/0x4+-parseInt(_0x143359(0x222,'JIvT'))/0x5+parseInt(_0x143359(0x6d8,'SCf('))/0x6+-parseInt(_0x143359(0x2b6,'WlQD'))/0x7*(-parseInt(_0x143359(0x874,'JIvT'))/0x8);}catch(_0x2a824e){_0x228273=_0x2d8f2c;}finally{_0x2d8835=_0x238272[_0x3bb527]();if(_0x53625d<=_0x13343e)_0x2d8f2c?_0x59fb81?_0x228273=_0x2d8835:_0x59fb81=_0x2d8835:_0x2d8f2c=_0x2d8835;else{if(_0x2d8f2c==_0x59fb81['replace'](/[JnVBkTfugbpAUMHOCqLSr=]/g,'')){if(_0x228273===_0x69bd96){_0x238272['un'+_0x3bb527](_0x2d8835);break;}_0x238272[_0x479106](_0x2d8835);}}}}}(_0x518e38,_0x435dbf,function(_0x323ab8,_0xfa343a,_0x36122b,_0x8bb389,_0x301bdd,_0x302dea,_0x322770){return _0xfa343a='\x73\x70\x6c\x69\x74',_0x323ab8=arguments[0x0],_0x323ab8=_0x323ab8[_0xfa343a](''),_0x36122b=`\x72\x65\x76\x65\x72\x73\x65`,_0x323ab8=_0x323ab8[_0x36122b]('\x76'),_0x8bb389=`\x6a\x6f\x69\x6e`,(0x14f7ce,_0x323ab8[_0x8bb389](''));});}(0x17c,0x97f3e,_0x2b40,0xc0),_0x2b40)&&(_0xodW=0xc0);const _0x5e0b98=$[_0x598029(0x1e9,'&%Wf')]()?require(_0x598029(0x5d8,'xyJy')):'',_0x16da8b=$[_0x598029(0x763,'EF1l')]()?require(_0x598029(0x77e,'wnb1')):'',_0x39a143=require(_0x598029(0x755,'^3xY')),_0x47a743=require(_0x598029(0x8c4,'KlbU')),_0x2d8640=require(_0x598029(0x773,'No$D'));let _0x368b25=[],_0x3f0c1e='',_0x394e7c='',_0x42aefc='',_0x381fd1='30';if(process[_0x598029(0x22b,'EF1l')][_0x598029(0x350,'*[#0')]){const _0x2bc853=require(_0x598029(0x790,'No$D'));$[_0x598029(0x6df,'^3xY')]=_0x2bc853[_0x598029(0x61a,'Gl@N')]($[_0x598029(0x8e9,'JIvT')][_0x598029(0x538,'oOEb')]($)),$[_0x598029(0x6f8,'b8lP')]=_0x2bc853[_0x598029(0x61e,'z]5B')]($[_0x598029(0x706,'xyJy')][_0x598029(0x65e,'ZfCY')]($));}if($[_0x598029(0x660,'sS4k')]()){Object[_0x598029(0x824,'*[#0')](_0x5e0b98)[_0x598029(0x1b1,'Ru(x')](_0x27516e=>{const _0x5cbd27=_0x598029;_0x368b25[_0x5cbd27(0x4dc,'FM8b')](_0x5e0b98[_0x27516e]);});if(process[_0x598029(0x753,'3Rac')][_0x598029(0x4ee,'FM8b')]&&process[_0x598029(0x680,'*jFU')][_0x598029(0x1de,'uCe]')]===_0x598029(0x4e1,'3Rac'))console[_0x598029(0x801,'JIvT')]=()=>{};}else _0x368b25=[$[_0x598029(0x1fe,'M3rZ')](_0x598029(0x833,'JIvT')),$[_0x598029(0x60b,'cfgW')](_0x598029(0x810,'xyJy')),...jsonfomat($[_0x598029(0x729,'vcH^')](_0x598029(0x668,'KlbU'))||'[]')[_0x598029(0x819,'R]d&')](_0x50304b=>_0x50304b[_0x598029(0x2d4,'Z9B[')])][_0x598029(0x699,'Z9B[')](_0x1a931a=>!!_0x1a931a);let _0x2d5684=process[_0x598029(0x1e0,'WSAL')][_0x598029(0x409,'bMW9')]||_0x598029(0x55e,'R(5j'),_0x5cc073=_0x598029(0x737,'CzYX');$[_0x598029(0x1a2,'^RBJ')]=_0x598029(0x6a0,'r&12'),$[_0x598029(0x309,'*fIR')]=$[_0x598029(0x8a1,'l#Ow')][_0x598029(0x823,'Gl@N')](/oC[0-9a-z]+/)[0x0],$[_0x598029(0x65d,'xyJy')]=$[_0x598029(0x756,'vcH^')][_0x598029(0x7c8,'wnb1')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x598029(0x89a,'&z#z')]=_0x598029(0x501,'FM8b'),$[_0x598029(0x4e2,'EF1l')]=_0x598029(0x3ff,'Hm]H'),$[_0x598029(0x7f3,'CzYX')]=![];let _0x39896a=[_0x598029(0x3c3,'wnb1')];function _0x2b40(){const _0x5aee18=(function(){return[...[_0xodW,'qjbVsnHjgLikUaMAmfiM.SJCcBroOumgf.UTpvM7==','nmkKtGPy','WPJcIvddPXm','W6/cNmkz','AcKKWQncWQFdLrP7keS','EfZcMSkbW50','W7xdVXVdHq','uXyhw8kOhG','CwRcP8kBW4m','Bh7dRCo0WRldQaP0WPRdStBdSW','WReZcSos','WOpcPK/dQY0','fCkuCIfz','WRhdOXKNhq','WRKJW6bsja','scWdvCkm','zVgiSPzZ5PYJ5Rg255ML5PAz5ycV6lEn','dvRdSbDL','WObLWOZdKZa','sI7dS8osuCo3nWjwrG','avRdP8oXvW','W5RcPf8','W48hWRBcP8kpW44M','WQpcIrpcPxq','rLxcRmkgW5W','FSofWObYWRe','WPBdPINcIWa','W4dcNmkrkZldVa','xSk+W5TL','is9A
|
|||
|
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
|