jdpro/jd_dplh0109.js

12 lines
142 KiB
JavaScript
Raw Normal View History

2024-01-09 16:21:21 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
1 1 12 12 * jd_dplh0109.js
*/
const $ = new Env("大牌0109");
var _0xody='jsjiami.com.v7';const _0x2c5a65=_0x3d38;(function(_0x578797,_0x5e9a12,_0x3fe3b5,_0x363193,_0x3d9197,_0x523c47,_0xe9a516){return _0x578797=_0x578797>>0x2,_0x523c47='hs',_0xe9a516='hs',function(_0x1cfc99,_0x5e5509,_0x426f96,_0x478813,_0x2e436b){const _0xea7f43=_0x3d38;_0x478813='tfi',_0x523c47=_0x478813+_0x523c47,_0x2e436b='up',_0xe9a516+=_0x2e436b,_0x523c47=_0x426f96(_0x523c47),_0xe9a516=_0x426f96(_0xe9a516),_0x426f96=0x0;const _0x532936=_0x1cfc99();while(!![]&&--_0x363193+_0x5e5509){try{_0x478813=-parseInt(_0xea7f43(0x51a,'dQl1'))/0x1+parseInt(_0xea7f43(0x45b,'7fJ6'))/0x2*(parseInt(_0xea7f43(0x1e2,'[[AN'))/0x3)+-parseInt(_0xea7f43(0x6fc,'Zrc4'))/0x4*(parseInt(_0xea7f43(0x64f,'Qang'))/0x5)+parseInt(_0xea7f43(0x367,'VwI3'))/0x6+-parseInt(_0xea7f43(0x60c,'926W'))/0x7*(-parseInt(_0xea7f43(0x2a8,'yr47'))/0x8)+-parseInt(_0xea7f43(0x6ed,'q@FT'))/0x9+-parseInt(_0xea7f43(0x37e,'Nrlm'))/0xa;}catch(_0x49b0fe){_0x478813=_0x426f96;}finally{_0x2e436b=_0x532936[_0x523c47]();if(_0x578797<=_0x363193)_0x426f96?_0x3d9197?_0x478813=_0x2e436b:_0x3d9197=_0x2e436b:_0x426f96=_0x2e436b;else{if(_0x426f96==_0x3d9197['replace'](/[qfJMgwnSLxDGyICFAebY=]/g,'')){if(_0x478813===_0x5e5509){_0x532936['un'+_0x523c47](_0x2e436b);break;}_0x532936[_0xe9a516](_0x2e436b);}}}}}(_0x3fe3b5,_0x5e9a12,function(_0x5b334c,_0x5e5666,_0x2b78fd,_0x160428,_0x5dba75,_0x1b3384,_0x23a7c8){return _0x5e5666='\x73\x70\x6c\x69\x74',_0x5b334c=arguments[0x0],_0x5b334c=_0x5b334c[_0x5e5666](''),_0x2b78fd=`\x72\x65\x76\x65\x72\x73\x65`,_0x5b334c=_0x5b334c[_0x2b78fd]('\x76'),_0x160428=`\x6a\x6f\x69\x6e`,(0x14f7d3,_0x5b334c[_0x160428](''));});}(0x318,0x3cd0e,_0x5062,0xc8),_0x5062)&&(_0xody=_0x2c5a65(0x5c4,'J7Zg'));const _0x6bdb14=$[_0x2c5a65(0x44a,'mAqk')]()?require(_0x2c5a65(0x419,'m$ok')):'',_0x46052e=$[_0x2c5a65(0x3da,'Od*5')]()?require(_0x2c5a65(0x7b3,'J7Zg')):'',_0x211522=require(_0x2c5a65(0x74a,'MOI&')),_0x3df594=require(_0x2c5a65(0x21a,'Nrlm')),_0xa529f5=require(_0x2c5a65(0x554,'tczr'));function _0x5062(){const _0x22469c=(function(){return[...[_0xody,'wjICsAjYiqeaDmwiS.cyonym.GLvbf7gFfxJfMbD==','W6hcP1u','WONdV8o5gCoioCkq','WP/dU8ovgCojW4lcK8k8WRX5','vCkuyq','FsnoWQZdLq','WRfekSkFyG','lqZdPMqY','sXGsWOpcLG','CmoMcSo9','CSkmW4DBaqiWAa','57Uu5A+i5OIp5yM5','W6tdISksqCos','i8kzBmovggD+WPBcTSk7b8kuWRn+','W6G4WRLwW7C','lSo8dG','WO/cOSkUhf09kSkmWOe','5QYLimo45BE86koS6zQ95yUA776e6kYe6l6xWR8B5yQ96zkv5zgo5yE95OMw6kkr6iAm5P+iWOK','WQhcTmonWP7dRW','mmk2fmoqrglcIt/dPa','hComWQ/dQCob','zSkUmg3dPW','W5FdU8kyn8oxWO/dJJFdRmo8b1VcJSkqWOm','yU++NUwpG+wgJEAoSmogW63cQa','daddJ2up','WO5cvwNcUa','DSk8d8kwvNxcQctdVuldMa8hp2PagSoIs8oTAxhdQCkNWP0sDGhdJmoiWOhdM33cJwFcQg0xrrPpn8ocW7tcQmkts3NdLmoCkGiKWONdJtTZWRCmgI/dV8ofWRJdMmo1','tx3dVb3cQG','W7BdQmolWONdPq','DZnXWOldVeq','WRVdTCowy0K','CSkAW7SAW6e','W7qes8orA1TiWOCjWQi','pmkYbSoCEW','WP4BeIVcIW','WOVdVSoYkCos','W4xdHSkxy8or','o8o3WPFdVCod','wc3dM3ZdMW','z8kql3VdUa','sSkaBb3dGuRcVq','DSoyW5FcJfjUW4fxtSoWWOq0C8os','WQiHW6K','WPBdO8oCimoc','WRDtmq','AWrTWOhdUa','lSk1fSokDW','f3hcStJcUq','qmkItJddOG','sCk+W7ddSmkB','WOFdJSo8gSoQ','BSkxW6bFaffXicFcUCoyW6/dUmoNW6CqW4O4ymkbWRjy','WP58tL7cHq','8lk2KSoB','WRLsWOFdGmkL','WRriWQddNCkj','WPvPB3pcNxBcPmovomoCW4/cJG','WRr6mmkoAG','r8kohvhdGq','iSoOp8krWQm','w8kgp8oWWP1P','WP7cLmo2WP/dRa','WQFcMmomure9W5yuWQyLtSkpsmkL','oCo3c8kPWR7cNa','tCkGxmk2W4G','WP3dU8odA0aAFCkSACkmxs7dT3LMrWORg8ozWQqcWQZdMrrwW7pdJa','a8oeeSo8W5u','WRRdVmoEuWvZo8oGnCkrzIBdS3nBzYHVxCoCWR8JW7hcTJPsW4FdL8k/WQVdSSkxkv9FA8kvCxldICo4W6DHWPHxW6RdJK9ceColWR/dQfFdOZOVW6dcOqBdRSoCWR4B','FSkqfKNdVCkL','mSo7WQhPNzxNPydLIkNcNa','W6ZdRfNcISovW7fY','rJ7dSfxdPSkEvSo0hmopW6WqA8oo','emktW5uvWOxdKK1nWR8bpSopW7pdJ8o7W45fWPVdLCoZWPBcTYmCW4FcQeump8kUWQBdRaDloCoED2e','vmkqW6pdRSkw','WODsWONdKCkyDCos','amoLe8oLW7BcTSk7WPO','AmkJW64MW5TDW53dLLu','W49XqImB','gSo/bColW54','WQTCc8kAtNvd','tSkUW5vgfG','AmkIW60HW5PC','WQvDgCkBzM4','cSohoe3cKxJcOSkbWQ5ZWQS','wGbR','WPRdV8osDxbbimoNv8kxvq','ESk5FCkTW77cOqXEnW','fcxdM28m','FUw1UowVJoAkGEwiPoI3SUs4RUwjNeW','WPZdTSo5sKe','tCkCyHVdT03cR8kNWO4','WOfpeZldPgGhWR7cKCoth8oPuuJcSSojuZpdJG','WOpdHSosgCoY','WPpdM8oqmSktW6S','fm
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