mirror of https://github.com/6dylan6/jdpro.git
12 lines
140 KiB
JavaScript
12 lines
140 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
1 1 12 12 * jd_dplh0120.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0120");
|
|||
|
var _0xodH='jsjiami.com.v7';const _0x1c56b4=_0x322a;(function(_0x2cf399,_0x2ba9af,_0x1949b8,_0xbaba36,_0x1153f1,_0x25fa52,_0x2035fc){return _0x2cf399=_0x2cf399>>0x8,_0x25fa52='hs',_0x2035fc='hs',function(_0x2bb8c4,_0x318928,_0x8cf1fa,_0x3a1090,_0x474a46){const _0x12f571=_0x322a;_0x3a1090='tfi',_0x25fa52=_0x3a1090+_0x25fa52,_0x474a46='up',_0x2035fc+=_0x474a46,_0x25fa52=_0x8cf1fa(_0x25fa52),_0x2035fc=_0x8cf1fa(_0x2035fc),_0x8cf1fa=0x0;const _0x564ad1=_0x2bb8c4();while(!![]&&--_0xbaba36+_0x318928){try{_0x3a1090=-parseInt(_0x12f571(0x6b8,'l5nz'))/0x1*(-parseInt(_0x12f571(0x46b,'[cvz'))/0x2)+parseInt(_0x12f571(0x384,'xnvX'))/0x3*(parseInt(_0x12f571(0x3db,'v&1D'))/0x4)+-parseInt(_0x12f571(0x20a,'WNTw'))/0x5*(parseInt(_0x12f571(0x7d3,'dFEs'))/0x6)+parseInt(_0x12f571(0x4ee,'feWU'))/0x7+-parseInt(_0x12f571(0x2c7,'Xy)C'))/0x8+-parseInt(_0x12f571(0x3d4,'sB3N'))/0x9+-parseInt(_0x12f571(0x2a1,')ydl'))/0xa*(-parseInt(_0x12f571(0x22c,'%F9G'))/0xb);}catch(_0x3d4bcf){_0x3a1090=_0x8cf1fa;}finally{_0x474a46=_0x564ad1[_0x25fa52]();if(_0x2cf399<=_0xbaba36)_0x8cf1fa?_0x1153f1?_0x3a1090=_0x474a46:_0x1153f1=_0x474a46:_0x8cf1fa=_0x474a46;else{if(_0x8cf1fa==_0x1153f1['replace'](/[gNOqhHYPVXdbTSRWxFBk=]/g,'')){if(_0x3a1090===_0x318928){_0x564ad1['un'+_0x25fa52](_0x474a46);break;}_0x564ad1[_0x2035fc](_0x474a46);}}}}}(_0x1949b8,_0x2ba9af,function(_0x4f4c68,_0x3ea6ba,_0x1f8e45,_0x31fbf7,_0x5eb321,_0x587a05,_0x39a60d){return _0x3ea6ba='\x73\x70\x6c\x69\x74',_0x4f4c68=arguments[0x0],_0x4f4c68=_0x4f4c68[_0x3ea6ba](''),_0x1f8e45=`\x72\x65\x76\x65\x72\x73\x65`,_0x4f4c68=_0x4f4c68[_0x1f8e45]('\x76'),_0x31fbf7=`\x6a\x6f\x69\x6e`,(0x151104,_0x4f4c68[_0x31fbf7](''));});}(0xc900,0x68c1e,_0x47b7,0xcb),_0x47b7)&&(_0xodH=_0x1c56b4(0x3ec,'A93O'));const _0xb33c6b=$[_0x1c56b4(0x2ed,'Xy)C')]()?require(_0x1c56b4(0x804,'NbGN')):'',_0x34c5f7=$[_0x1c56b4(0x598,'9W&W')]()?require(_0x1c56b4(0x775,'s$z]')):'',_0x204bfe=require(_0x1c56b4(0x4b2,'22QQ')),_0x391185=require(_0x1c56b4(0x227,'22QQ')),_0x36fbe5=require(_0x1c56b4(0x452,'bW8p'));let _0x3d794c=[],_0x28bbbb='',_0x1d4cc4='',_0x56613f='',_0x12e6c5='30';if(process[_0x1c56b4(0x628,'xnvX')][_0x1c56b4(0x1d2,'beMk')]){const _0x2324b0=require(_0x1c56b4(0x483,'[cvz'));$[_0x1c56b4(0x4ca,'Wt0o')]=_0x2324b0[_0x1c56b4(0x345,'xnvX')]($[_0x1c56b4(0x2b9,'w8Da')][_0x1c56b4(0x240,'N&z*')]($)),$[_0x1c56b4(0x71b,'25C0')]=_0x2324b0[_0x1c56b4(0x30e,'w8Da')]($[_0x1c56b4(0x2e7,'9WS&')][_0x1c56b4(0x791,'j8r$')]($));}if($[_0x1c56b4(0x85b,'SS9Y')]()){Object[_0x1c56b4(0x7c2,')ydl')](_0xb33c6b)[_0x1c56b4(0x616,'22QQ')](_0x233653=>{const _0xeacf8d=_0x1c56b4;_0x3d794c[_0xeacf8d(0x231,'lJde')](_0xb33c6b[_0x233653]);});if(process[_0x1c56b4(0x603,')6N$')][_0x1c56b4(0x7b3,'v&1D')]&&process[_0x1c56b4(0x468,'w8Da')][_0x1c56b4(0x59a,'8&()')]===_0x1c56b4(0x2be,'Nqc)'))console[_0x1c56b4(0x63e,'SE9D')]=()=>{};}else _0x3d794c=[$[_0x1c56b4(0x4c0,'j8r$')](_0x1c56b4(0x2b4,'s$z]')),$[_0x1c56b4(0x43b,')ydl')](_0x1c56b4(0x5bb,'beMk')),...jsonfomat($[_0x1c56b4(0x3ea,'*wj%')](_0x1c56b4(0x43c,'FHFW'))||'[]')[_0x1c56b4(0x648,'w8Da')](_0x3f768b=>_0x3f768b[_0x1c56b4(0x4c7,'Wt0o')])][_0x1c56b4(0x630,'NbGN')](_0x15158f=>!!_0x15158f);let _0x112775=process[_0x1c56b4(0x3a0,'22QQ')][_0x1c56b4(0x5cd,'25c4')]||_0x1c56b4(0x85c,'WNTw'),_0x18e5fb=_0x1c56b4(0x1fb,'2RpD');$[_0x1c56b4(0x59f,'!Z*x')]=_0x1c56b4(0x6dc,'s$z]'),$[_0x1c56b4(0x79c,'l5nz')]=$[_0x1c56b4(0x5d7,'A93O')][_0x1c56b4(0x360,'N&z*')](/oC[0-9a-z]+/)[0x0],$[_0x1c56b4(0x539,')6N$')]=$[_0x1c56b4(0x418,')ydl')][_0x1c56b4(0x6a5,')6N$')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x1c56b4(0x65a,'&*G6')]=_0x1c56b4(0x472,'beMk'),$[_0x1c56b4(0x832,'IXy0')]=_0x1c56b4(0x769,'v&1D'),$[_0x1c56b4(0x306,'n$b&')]=![];let _0x2087c1=[_0x1c56b4(0x439,'sB3N')];$[_0x1c56b4(0x432,'CqvY')]=_0x2087c1[_0x260b49(0x0,_0x2087c1[_0x1c56b4(0x81b,'K%4d')])],$[_0x1c56b4(0x6f5,'Wt0o')]=process[_0x1c56b4(0x3f1,'s$z]')][_0x1c56b4(0x694,'bW8p')]||'',!(async()=>{const _0x1433bf=_0x1c56b4,_0x561bd8={'gpoML':function(_0x5e8fc1,_0x13b12e){return _0x5e8fc1>_0x13b12e;},'BdVye':_0x1433bf(0x6fb,'&*G6'),'uubhM':_0x1433bf(0x634,'IXy0'),'omTVz':_0x1433bf(0x49b,'lJde'),'BGjZr
|
|||
|
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
|