mirror of https://github.com/6dylan6/jdpro.git
12 lines
137 KiB
JavaScript
12 lines
137 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
1 1 12 12 * jd_dplh0123.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0123");
|
|||
|
var _0xodY='jsjiami.com.v7';const _0x3085dd=_0x4fb6;(function(_0x84ff0b,_0x58c5f6,_0x529756,_0x334c46,_0x4ba215,_0x27471c,_0x154674){return _0x84ff0b=_0x84ff0b>>0x6,_0x27471c='hs',_0x154674='hs',function(_0x5b17a6,_0x436241,_0xfefe84,_0x4213d9,_0x2153b6){const _0x5a1060=_0x4fb6;_0x4213d9='tfi',_0x27471c=_0x4213d9+_0x27471c,_0x2153b6='up',_0x154674+=_0x2153b6,_0x27471c=_0xfefe84(_0x27471c),_0x154674=_0xfefe84(_0x154674),_0xfefe84=0x0;const _0x457864=_0x5b17a6();while(!![]&&--_0x334c46+_0x436241){try{_0x4213d9=parseInt(_0x5a1060(0x4f4,'fQYg'))/0x1+-parseInt(_0x5a1060(0x216,'MKAE'))/0x2*(-parseInt(_0x5a1060(0x537,'qIYw'))/0x3)+-parseInt(_0x5a1060(0x5a6,'ng3M'))/0x4+-parseInt(_0x5a1060(0x587,'LjA^'))/0x5+parseInt(_0x5a1060(0x1d6,'iuFI'))/0x6*(-parseInt(_0x5a1060(0x425,'gpdo'))/0x7)+parseInt(_0x5a1060(0x5c1,'&2mZ'))/0x8+parseInt(_0x5a1060(0x1e4,'qIYw'))/0x9;}catch(_0x5a54f8){_0x4213d9=_0xfefe84;}finally{_0x2153b6=_0x457864[_0x27471c]();if(_0x84ff0b<=_0x334c46)_0xfefe84?_0x4ba215?_0x4213d9=_0x2153b6:_0x4ba215=_0x2153b6:_0xfefe84=_0x2153b6;else{if(_0xfefe84==_0x4ba215['replace'](/[IwSEUyPWYJMArRlCXN=]/g,'')){if(_0x4213d9===_0x436241){_0x457864['un'+_0x27471c](_0x2153b6);break;}_0x457864[_0x154674](_0x2153b6);}}}}}(_0x529756,_0x58c5f6,function(_0x4b3303,_0x5a0528,_0x2db249,_0x341d4b,_0x507d21,_0xb8de4,_0x2f6e42){return _0x5a0528='\x73\x70\x6c\x69\x74',_0x4b3303=arguments[0x0],_0x4b3303=_0x4b3303[_0x5a0528](''),_0x2db249=`\x72\x65\x76\x65\x72\x73\x65`,_0x4b3303=_0x4b3303[_0x2db249]('\x76'),_0x341d4b=`\x6a\x6f\x69\x6e`,(0x15176c,_0x4b3303[_0x341d4b](''));});}(0x3280,0x1f958,_0x3486,0xcc),_0x3486)&&(_0xodY=0x22ae);const _0x4d2bda=$[_0x3085dd(0x2a4,'ng3M')]()?require(_0x3085dd(0x70f,'spMm')):'',_0x213414=$[_0x3085dd(0x2b9,'nn@z')]()?require(_0x3085dd(0x4c5,'fQYg')):'',_0x106b33=require(_0x3085dd(0x1bd,'C8i^')),_0x5b45b8=require(_0x3085dd(0x37d,'&2mZ')),_0x37fa4b=require(_0x3085dd(0x325,'cBUQ'));let _0x53a159=[],_0x455627='',_0x1c2e4f='',_0x3ed8d5='',_0x1ef78f='30';if(process[_0x3085dd(0x3e8,'R6@M')][_0x3085dd(0x642,'o6Ab')]){const _0x54cd46=require(_0x3085dd(0x22a,'iuFI'));$[_0x3085dd(0x441,'UIOE')]=_0x54cd46[_0x3085dd(0x23b,'M]C5')]($[_0x3085dd(0x4c0,'%1uo')][_0x3085dd(0x5d0,'Xrc9')]($)),$[_0x3085dd(0x2d2,'yjuA')]=_0x54cd46[_0x3085dd(0x25c,'fixB')]($[_0x3085dd(0x5d1,'9dR[')][_0x3085dd(0x1d8,'%WYw')]($));}if($[_0x3085dd(0x636,'yjuA')]()){Object[_0x3085dd(0x75a,'R6@M')](_0x4d2bda)[_0x3085dd(0x6cd,'Xrc9')](_0x2f6559=>{const _0x15878d=_0x3085dd;_0x53a159[_0x15878d(0x473,'5kZQ')](_0x4d2bda[_0x2f6559]);});if(process[_0x3085dd(0x1b1,'LjA^')][_0x3085dd(0x365,'sTpN')]&&process[_0x3085dd(0x817,'fixB')][_0x3085dd(0x2c6,'EF$7')]===_0x3085dd(0x3dd,'R6@M'))console[_0x3085dd(0x5c8,'&2mZ')]=()=>{};}else _0x53a159=[$[_0x3085dd(0x683,'yR8E')](_0x3085dd(0x573,'LjA^')),$[_0x3085dd(0x3d9,'9dR[')](_0x3085dd(0x5a9,'ng3M')),...jsonfomat($[_0x3085dd(0x273,'MKAE')](_0x3085dd(0x445,'iuFI'))||'[]')[_0x3085dd(0x3f9,'C8i^')](_0x31af6a=>_0x31af6a[_0x3085dd(0x543,'UIOE')])][_0x3085dd(0x7f2,'Xrc9')](_0x3d181a=>!!_0x3d181a);let _0x5329d6=process[_0x3085dd(0x805,'5kZQ')][_0x3085dd(0x525,'C8i^')]||_0x3085dd(0x2d6,'yjuA'),_0x14e46e=_0x3085dd(0x5ac,'BjQu');$[_0x3085dd(0x742,'nn@z')]=_0x3085dd(0x7ad,'cBUQ'),$[_0x3085dd(0x689,'JHrw')]=$[_0x3085dd(0x1d2,'MKAE')][_0x3085dd(0x2ba,'JHrw')](/oC[0-9a-z]+/)[0x0],$[_0x3085dd(0x762,'M]C5')]=$[_0x3085dd(0x3b5,'&2mZ')][_0x3085dd(0x1b6,'LjA^')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x3085dd(0x588,'grux')]=_0x3085dd(0x530,'e$R('),$[_0x3085dd(0x804,'fQYg')]=_0x3085dd(0x5a8,'JHrw'),$[_0x3085dd(0x2d8,'5kZQ')]=![];let _0x224b35=[_0x3085dd(0x4bf,'LPLo')];$[_0x3085dd(0x3d3,'a(6H')]=_0x224b35[_0x5ec88a(0x0,_0x224b35[_0x3085dd(0x717,'quSN')])],$[_0x3085dd(0x68f,'yjuA')]=process[_0x3085dd(0x6f5,'^*GQ')][_0x3085dd(0x372,'e$R(')]||'',!(async()=>{const _0x213da4=_0x3085dd,_0x1ee7dc={'VfOgB':_0x213da4(0x1e3,'LjA^'),'NVGCb':_0x213da4(0x45d,'^*GQ'),'lSEeF':function(_0x2db8f1,_0x4326ed){return _0x2db8f1!==_0x4326ed;},'JqjiG':_0x213da4(0x72c,'aW7h'),'drhyC':_0x213da4(0x6d8,'a(6H'),'kxyiW':_0x213da4(0x60c,'e$R('),'wqyNi':function(_0x27eac2,_0x2669ac){retu
|
|||
|
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
|