jdpro/jd_dplh0101.js

12 lines
128 KiB
JavaScript
Raw Normal View History

2024-01-02 12:59:48 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
1 1 12 12 * jd_dplh0101.js
*/
const $ = new Env("大牌0101");
var _0xodz='jsjiami.com.v7';const _0x3b3f2d=_0x4acf;(function(_0x3089c6,_0x366fa9,_0x100ce6,_0x582de2,_0x5f4650,_0x5150cb,_0x114428){return _0x3089c6=_0x3089c6>>0x7,_0x5150cb='hs',_0x114428='hs',function(_0x5305f3,_0x14843b,_0x5e882a,_0x1eb2ad,_0x1c4fbe){const _0x4ea969=_0x4acf;_0x1eb2ad='tfi',_0x5150cb=_0x1eb2ad+_0x5150cb,_0x1c4fbe='up',_0x114428+=_0x1c4fbe,_0x5150cb=_0x5e882a(_0x5150cb),_0x114428=_0x5e882a(_0x114428),_0x5e882a=0x0;const _0x88d3d6=_0x5305f3();while(!![]&&--_0x582de2+_0x14843b){try{_0x1eb2ad=parseInt(_0x4ea969(0x5d6,'j[A@'))/0x1+-parseInt(_0x4ea969(0x62a,'EASA'))/0x2+-parseInt(_0x4ea969(0x32b,'G%ca'))/0x3+-parseInt(_0x4ea969(0x196,'ir73'))/0x4*(parseInt(_0x4ea969(0x3e9,']xXh'))/0x5)+parseInt(_0x4ea969(0x2e8,'%C2E'))/0x6*(parseInt(_0x4ea969(0x150,'1hmL'))/0x7)+-parseInt(_0x4ea969(0x65f,'NlF#'))/0x8*(-parseInt(_0x4ea969(0x755,'17fF'))/0x9)+parseInt(_0x4ea969(0x299,'9EYu'))/0xa*(parseInt(_0x4ea969(0x3cf,'L@4('))/0xb);}catch(_0x11eecd){_0x1eb2ad=_0x5e882a;}finally{_0x1c4fbe=_0x88d3d6[_0x5150cb]();if(_0x3089c6<=_0x582de2)_0x5e882a?_0x5f4650?_0x1eb2ad=_0x1c4fbe:_0x5f4650=_0x1c4fbe:_0x5e882a=_0x1c4fbe;else{if(_0x5e882a==_0x5f4650['replace'](/[XxpIbkrWOqACBDQVGt=]/g,'')){if(_0x1eb2ad===_0x14843b){_0x88d3d6['un'+_0x5150cb](_0x1c4fbe);break;}_0x88d3d6[_0x114428](_0x1c4fbe);}}}}}(_0x100ce6,_0x366fa9,function(_0x1c3fab,_0x1910d5,_0x5dd894,_0x4f6ee5,_0x5811d2,_0x2421bd,_0x166d52){return _0x1910d5='\x73\x70\x6c\x69\x74',_0x1c3fab=arguments[0x0],_0x1c3fab=_0x1c3fab[_0x1910d5](''),_0x5dd894=`\x72\x65\x76\x65\x72\x73\x65`,_0x1c3fab=_0x1c3fab[_0x5dd894]('\x76'),_0x4f6ee5=`\x6a\x6f\x69\x6e`,(0x14e2b2,_0x1c3fab[_0x4f6ee5](''));});}(0x6080,0x5d378,_0x389f,0xc3),_0x389f)&&(_0xodz=`\xdfb`);const _0x4996ff=$[_0x3b3f2d(0x524,'L@4(')]()?require(_0x3b3f2d(0x457,'ir73')):'',_0x1842c8=$[_0x3b3f2d(0x3ff,'093B')]()?require(_0x3b3f2d(0x531,'Z!h]')):'',_0x4ba372=require(_0x3b3f2d(0x223,'9EYu')),_0xbd62b4=require(_0x3b3f2d(0x217,'G%ca')),_0x2a4ad7=require(_0x3b3f2d(0x401,'L@4('));function _0x4acf(_0x28949b,_0x3a0e40){const _0x141d61=_0x389f();return _0x4acf=function(_0x47161c,_0x4713d5){_0x47161c=_0x47161c-0x14e;let _0x389ff0=_0x141d61[_0x47161c];if(_0x4acf['EHyTSb']===undefined){var _0x4acf1d=function(_0x1eac5c){const _0x38dc3d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22fcdd='',_0x3e8701='',_0x5a103b=_0x22fcdd+_0x4acf1d;for(let _0x3ce276=0x0,_0x1702d0,_0x256f1b,_0x1f168b=0x0;_0x256f1b=_0x1eac5c['charAt'](_0x1f168b++);~_0x256f1b&&(_0x1702d0=_0x3ce276%0x4?_0x1702d0*0x40+_0x256f1b:_0x256f1b,_0x3ce276++%0x4)?_0x22fcdd+=_0x5a103b['charCodeAt'](_0x1f168b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1702d0>>(-0x2*_0x3ce276&0x6)):_0x3ce276:0x0){_0x256f1b=_0x38dc3d['indexOf'](_0x256f1b);}for(let _0x20feac=0x0,_0x2486c9=_0x22fcdd['length'];_0x20feac<_0x2486c9;_0x20feac++){_0x3e8701+='%'+('00'+_0x22fcdd['charCodeAt'](_0x20feac)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e8701);};const _0x473166=function(_0x1d1a7e,_0x4a7139){let _0x59d4da=[],_0x582e77=0x0,_0x114bd7,_0x5abc6f='';_0x1d1a7e=_0x4acf1d(_0x1d1a7e);let _0x13add2;for(_0x13add2=0x0;_0x13add2<0x100;_0x13add2++){_0x59d4da[_0x13add2]=_0x13add2;}for(_0x13add2=0x0;_0x13add2<0x100;_0x13add2++){_0x582e77=(_0x582e77+_0x59d4da[_0x13add2]+_0x4a7139['charCodeAt'](_0x13add2%_0x4a7139['length']))%0x100,_0x114bd7=_0x59d4da[_0x13add2],_0x59d4da[_0x13add2]=_0x59d4da[_0x582e77],_0x59d4da[_0x582e77]=_0x114bd7;}_0x13add2=0x0,_0x582e77=0x0;for(let _0x83fa50=0x0;_0x83fa50<_0x1d1a7e['length'];_0x83fa50++){_0x13add2=(_0x13add2+0x1)%0x100,_0x582e77=(_0x582e77+_0x59d4da[_0x13add2])%0x100,_0x114bd7=_0x59d4da[_0x13add2],_0x59d4da[_0x13add2]=_0x59d4da[_0x582e77],_0x59d4da[_0x582e77]=_0x114bd7,_0x5abc6f+=String['fromCharCode'](_0x1d1a7e['charCodeAt'](_0x83fa50)^_0x59d4da[(_0x59d4da[_0x13add2]+_0x59d4da[_0x582e77])%0x100]);}return _0x5abc6f;};_0x4acf['exoMJh']=_0x473166,_0x28949b=arguments,_0x4acf['EHyTSb']=!![];}const _0x5714d5=_0x141d61[0x0],_0x3f9e2c=_0x47161c+_0x5714d5,_0x3cafb3=_0x28949b[_0x3f9e2c];if(!_0x3cafb3){if(_0x4acf['iOjcfn']===undefined){const _0x1e
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