jdpro/jd_dplh0114.js

12 lines
141 KiB
JavaScript
Raw Normal View History

2024-01-14 08:07:33 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
1 1 12 12 * jd_dplh0114.js
*/
const $ = new Env("大牌0114");
var _0xodH='jsjiami.com.v7';const _0x5d1cef=_0x5f46;if(function(_0x2996e5,_0x1eb135,_0x3632bc,_0x4930fe,_0x380716,_0x4b4dd7,_0x3675df){return _0x2996e5=_0x2996e5>>0x8,_0x4b4dd7='hs',_0x3675df='hs',function(_0x3e3ceb,_0x304122,_0x3a17d9,_0x3ca898,_0x4bcbf2){const _0x5a493a=_0x5f46;_0x3ca898='tfi',_0x4b4dd7=_0x3ca898+_0x4b4dd7,_0x4bcbf2='up',_0x3675df+=_0x4bcbf2,_0x4b4dd7=_0x3a17d9(_0x4b4dd7),_0x3675df=_0x3a17d9(_0x3675df),_0x3a17d9=0x0;const _0x212fde=_0x3e3ceb();while(!![]&&--_0x4930fe+_0x304122){try{_0x3ca898=parseInt(_0x5a493a(0x34f,'dQ&m'))/0x1*(parseInt(_0x5a493a(0x6cb,'gUiY'))/0x2)+parseInt(_0x5a493a(0x861,'tZnx'))/0x3*(parseInt(_0x5a493a(0x21d,'&L9V'))/0x4)+parseInt(_0x5a493a(0x488,'02]T'))/0x5*(parseInt(_0x5a493a(0x519,'H*X%'))/0x6)+parseInt(_0x5a493a(0x6eb,'IO7y'))/0x7+-parseInt(_0x5a493a(0x4f0,'bROZ'))/0x8*(parseInt(_0x5a493a(0x319,'VVDG'))/0x9)+parseInt(_0x5a493a(0x81e,'8l9W'))/0xa+-parseInt(_0x5a493a(0x4cd,'a#D['))/0xb;}catch(_0x5b1b2a){_0x3ca898=_0x3a17d9;}finally{_0x4bcbf2=_0x212fde[_0x4b4dd7]();if(_0x2996e5<=_0x4930fe)_0x3a17d9?_0x380716?_0x3ca898=_0x4bcbf2:_0x380716=_0x4bcbf2:_0x3a17d9=_0x4bcbf2;else{if(_0x3a17d9==_0x380716['replace'](/[NWMTnprGUVAHkLqXbRx=]/g,'')){if(_0x3ca898===_0x304122){_0x212fde['un'+_0x4b4dd7](_0x4bcbf2);break;}_0x212fde[_0x3675df](_0x4bcbf2);}}}}}(_0x3632bc,_0x1eb135,function(_0x3362ad,_0x19dfa7,_0x5eadd0,_0x42f9d9,_0x51e61d,_0x19e340,_0x3e3b91){return _0x19dfa7='\x73\x70\x6c\x69\x74',_0x3362ad=arguments[0x0],_0x3362ad=_0x3362ad[_0x19dfa7](''),_0x5eadd0=`\x72\x65\x76\x65\x72\x73\x65`,_0x3362ad=_0x3362ad[_0x5eadd0]('\x76'),_0x42f9d9=`\x6a\x6f\x69\x6e`,(0x1502fb,_0x3362ad[_0x42f9d9](''));});}(0xcb00,0xf12d0,_0x4ba4,0xcd),_0x4ba4){}const _0x170406=$[_0x5d1cef(0x879,'HjS^')]()?require(_0x5d1cef(0x800,'QpfR')):'',_0x32d1ec=$[_0x5d1cef(0x58f,'H*X%')]()?require(_0x5d1cef(0x4d9,'02]T')):'',_0x3ddf88=require(_0x5d1cef(0x755,'sF4Y')),_0x350d49=require(_0x5d1cef(0x6cd,'#Yks')),_0x106eb0=require(_0x5d1cef(0x4ad,'%C[v'));let _0x74b43c=[],_0x400481='',_0x474096='',_0x249d2e='',_0x593002='30';if(process[_0x5d1cef(0x3e3,'NkJG')][_0x5d1cef(0x22b,'&L9V')]){const _0x58151e=require(_0x5d1cef(0x6dd,'bROZ'));$[_0x5d1cef(0x51c,'QpfR')]=_0x58151e[_0x5d1cef(0x724,'%C[v')]($[_0x5d1cef(0x711,'ecXo')][_0x5d1cef(0x892,'EFfd')]($)),$[_0x5d1cef(0x291,'nEtR')]=_0x58151e[_0x5d1cef(0x500,'QqN#')]($[_0x5d1cef(0x4ab,'rsEi')][_0x5d1cef(0x5ee,')yr7')]($));}if($[_0x5d1cef(0x609,'&n9w')]()){Object[_0x5d1cef(0x69a,'%C[v')](_0x170406)[_0x5d1cef(0x68b,'VVDG')](_0x2f8dad=>{const _0x33e1d8=_0x5d1cef;_0x74b43c[_0x33e1d8(0x1fe,'qTU3')](_0x170406[_0x2f8dad]);});if(process[_0x5d1cef(0x1f2,'H*X%')][_0x5d1cef(0x50a,'wwAx')]&&process[_0x5d1cef(0x401,'XgzK')][_0x5d1cef(0x36f,'Wa1Y')]===_0x5d1cef(0x382,'H*X%'))console[_0x5d1cef(0x863,'&n9w')]=()=>{};}else _0x74b43c=[$[_0x5d1cef(0x5b7,'82#Z')](_0x5d1cef(0x8a1,'[uC(')),$[_0x5d1cef(0x3b6,'02]T')](_0x5d1cef(0x2f9,'H*X%')),...jsonfomat($[_0x5d1cef(0x35b,'HfK$')](_0x5d1cef(0x5a8,'gYYO'))||'[]')[_0x5d1cef(0x345,'e(J1')](_0x3abd4f=>_0x3abd4f[_0x5d1cef(0x7dd,'02]T')])][_0x5d1cef(0x83c,'gUiY')](_0x14e558=>!!_0x14e558);let _0x3f6d12=process[_0x5d1cef(0x39e,'wwAx')][_0x5d1cef(0x866,'HEnT')]||_0x5d1cef(0x5a1,'02]T'),_0x4c3000=_0x5d1cef(0x608,'tZnx');$[_0x5d1cef(0x5d1,'^6s3')]=_0x5d1cef(0x3ee,'^6s3'),$[_0x5d1cef(0x729,'#Yks')]=$[_0x5d1cef(0x2be,'IO7y')][_0x5d1cef(0x45c,'10Yy')](/oC[0-9a-z]+/)[0x0],$[_0x5d1cef(0x2eb,'HjS^')]=$[_0x5d1cef(0x205,'vq6P')][_0x5d1cef(0x809,'nEtR')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x5d1cef(0x419,'vq6P')]=_0x5d1cef(0x4d4,'tZnx'),$[_0x5d1cef(0x425,'e(J1')]=_0x5d1cef(0x4b3,'82#Z'),$[_0x5d1cef(0x6bc,'ZJZ)')]=![];let _0x3de1f2=[_0x5d1cef(0x7a0,'TKAm')];$[_0x5d1cef(0x4ed,'VVDG')]=_0x3de1f2[_0x1faacf(0x0,_0x3de1f2[_0x5d1cef(0x841,'ZJZ)')])],$[_0x5d1cef(0x73b,'UHpF')]=process[_0x5d1cef(0x6b0,'10Yy')][_0x5d1cef(0x21e,'^6s3')]||'',!(async()=>{const _0x1cdd51=_0x5d1cef,_0x27af72={'BMmut':_0x1cdd51(0x3b1,'FGJ3'),'oDulM':function(_0x126b9f,_0x5f1175){return _0x126b9f(_0x5f1175);},'lRQeV':_0x1cdd51(0x606,'a#D['),'ZnVos':_0x1cdd51(0x749,'HjS^'),'IIAXn':_0x1cdd51(0x84f,'sF4Y'),'KLkGb':fu
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