2024-10-17 01:29:39 +00:00
|
|
|
|
function mMfMdf(){}var xR7jByg=Object['defineProperty'],yWr_TvB,UkyKRnT,FlFy_3_,rzXa6Od,M0Y06e,S3cpmQq,DRe4PU,JkHeXd_,CUcTKJo,xf5QA4d,F9yIoA,fflXY7,ziitpQt,b0oTNm,_AoM5V,pnezMtN,IlygGVW,uqBSUs,xRTrDhX,MOYkF8z,vav4ev,aTbBvzv;function O4mGmC(mMfMdf){return yWr_TvB[mMfMdf<-0x2a?mMfMdf+0x1a:mMfMdf>0x19c?mMfMdf-0x5a:mMfMdf>0x19c?mMfMdf-0x62:mMfMdf>0x19c?mMfMdf+0x14:mMfMdf+0x29]}yWr_TvB=fFddJ_();function ffQJ4y(mMfMdf,xR7jByg){UkyKRnT(mMfMdf,O4mGmC(-0x29),{value:xR7jByg,configurable:O4mGmC(0xb5)});return mMfMdf}mMfMdf(UkyKRnT=Object.defineProperty,FlFy_3_=ffQJ4y(BBkyhpC((...xR7jByg)=>{var UkyKRnT=BBkyhpC(xR7jByg=>{return yWr_TvB[xR7jByg<0x4b?xR7jByg+0x16:xR7jByg<0x211?xR7jByg<0x4b?xR7jByg-0x60:xR7jByg-0x4c:xR7jByg+0x52]},0x1);mMfMdf(xR7jByg[UkyKRnT(0x4c)]=0x2,xR7jByg[O4mGmC(-0x28)]=-0x15);if(xR7jByg.d9hyi2>xR7jByg.d9hyi2+0x3a){return xR7jByg[-0x48]}else{var FlFy_3_=BBkyhpC(xR7jByg=>{return yWr_TvB[xR7jByg<0x212?xR7jByg>0x212?xR7jByg+0x31:xR7jByg-0x4d:xR7jByg+0x51]},0x1);return xR7jByg[xR7jByg[FlFy_3_(0x4e)]+FlFy_3_(0x50)](xR7jByg[FlFy_3_(0x4f)]())}}),0x2)(dh5roC,rTSm3NY));var jAohuZ=[],Xj6ddOq=[rIHgRPM(O4mGmC(-0x27)),rIHgRPM(O4mGmC(0x0)),rIHgRPM(O4mGmC(0x1)),rIHgRPM(0x3),rIHgRPM(0x4),rIHgRPM(O4mGmC(-0x3)),rIHgRPM(0x6),rIHgRPM(O4mGmC(0x10)),rIHgRPM(0x8),rIHgRPM(0x9),rIHgRPM(0xa),rIHgRPM(0xb),rIHgRPM(O4mGmC(0xb)),rIHgRPM(0xd),rIHgRPM(0xe),rIHgRPM(0xf),rIHgRPM(0x10),rIHgRPM(O4mGmC(0x22)),rIHgRPM(0x12),rIHgRPM(0x13),rIHgRPM(0x14),rIHgRPM(O4mGmC(-0x25)),rIHgRPM(O4mGmC(-0x26)),rIHgRPM(O4mGmC(0x96)),rIHgRPM(0x18),rIHgRPM(0x19),rIHgRPM(0x1a),rIHgRPM(O4mGmC(0x190)),rIHgRPM(0x1c),rIHgRPM(O4mGmC(-0x22)),rIHgRPM(0x14),rIHgRPM(0x15),rIHgRPM(0x14),rIHgRPM(O4mGmC(-0x25)),rIHgRPM(0xf),rIHgRPM(0x12),rIHgRPM(0x1d),rIHgRPM(O4mGmC(0x45)),'b;)~K|nN','|BU~@',rIHgRPM(0x1f),rIHgRPM(O4mGmC(0x4a)),rIHgRPM(0x21),rIHgRPM(0x22),rIHgRPM(0x23),rIHgRPM(0x24),rIHgRPM(O4mGmC(0x157)),rIHgRPM(O4mGmC(0x4b)),rIHgRPM(O4mGmC(-0x26)),rIHgRPM(O4mGmC(0x43)),rIHgRPM(0x28),'MK|V',rIHgRPM(0x29),rIHgRPM(0x2a),rIHgRPM(O4mGmC(-0xe)),rIHgRPM(0x2c),rIHgRPM(O4mGmC(0x4d)),rIHgRPM(O4mGmC(0x4e)),rIHgRPM(O4mGmC(0x3a)),rIHgRPM(0x30),rIHgRPM(O4mGmC(0x24)),rIHgRPM(O4mGmC(0x4f)),rIHgRPM(O4mGmC(0x23)),rIHgRPM(O4mGmC(0x65)),'<F`ci#|k',rIHgRPM(0x35),rIHgRPM(O4mGmC(-0x11)),rIHgRPM(0x37),rIHgRPM(0x38),'F3k?k`.7j$"@b;t]|]W+sEF^n?ebAp',rIHgRPM(0x39),'pM|2/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4mGmC(0x13)),O4mGmC(-0x1c),rIHgRPM(O4mGmC(-0x21)),rIHgRPM(0x74),rIHgRPM(0x75),rIHgRPM(0x76),rIHgRPM(O4mGmC(0x2d)),rIHgRPM(O4mGmC(0x68)),rIHgRPM(O4mGmC(0x79)),rIHgRPM(0x7a),rIHgRPM(O4mGmC(0x92)),'|oxkZ4|K',rIHgRPM(O4mGmC(-0x24)),rIHgRPM(0x7c),rIHgRPM(0x7d),'|oxkZ4|K',rIHgRPM(O4mGmC(-0x1e)),rIHgRPM(O4mGmC(0x9)),rIHgRPM(0x80),rIHgRPM(0x7c),rIHgRPM(0x81),rIHgRPM(0x82),rIHgRPM(O4mGmC(-0x1f)),rIHgRPM(0x84),rIHgRPM(0x85),rIHgRPM(0x86),rIHgRPM(O4mGmC(0x50)),O4mGmC(-0x12),rIHgRPM(O4mGmC(-0x20)),rIHgRPM(0x16),rIHgRPM(0x89),rIHgRPM(O4mGmC(0x9f)),rIHgRPM(0x15),rIHgRPM(0x8b),rIHgRPM(0x8c),rIHgRPM(0x8d),rIHgRPM(O4mGmC(0x9a)),rIHgRPM(0x8f),rIHgRPM(0x90
|
2024-10-17 01:29:39 +00:00
|
|
|
|
WYW_HPNUM='6' 调整助力次数`),H6wc57)!=''){$[rzXa6Od(0x3c)]=H6wc57[UkyKRnT(0x57)]('&')}if($[rzXa6Od(O4mGmC(0x61))][xR7jByg[xR7jByg[O4mGmC(0x62)]+0x89]]>xR7jByg[0xee]+O4mGmC(0x50)){mMfMdf(console[rzXa6Od(O4mGmC(0x60))](`\n\n开始助力...`),await wQeHQ5())}else{console[rzXa6Od(0x52)](`未指定助力马,退出!`)}ffQJ4y(DRe4PU,xR7jByg[O4mGmC(0x62)]+0x88);function DRe4PU(...xR7jByg){var UkyKRnT;mMfMdf(xR7jByg.length=0x1,xR7jByg.j2VN1_=xR7jByg[O4mGmC(0x10)],xR7jByg.RQGa0tl='Z1x&_*/[L+^!gq%<tAX:=?)|c2m,j$aWosw~vYnBT"Q#}URK]Ip`Hu6z;VeyM>8kSD{FOE5@Plh34Gr7b.(i0fJCNd9',xR7jByg[O4mGmC(0x24)]=xR7jByg[O4mGmC(0x3)],xR7jByg[O4mGmC(0x64)]=''+(xR7jByg[O4mGmC(-0x27)]||''),xR7jByg[O4mGmC(0x63)]=-O4mGmC(0x23),xR7jByg[O4mGmC(0x24)]=xR7jByg[O4mGmC(0x64)].length,xR7jByg[0x4]=[],xR7jByg[xR7jByg[0x53]+0x86]=0x3a,xR7jByg[xR7jByg[O4mGmC(0x63)]-(xR7jByg[O4mGmC(0x63)]-0x5)]=0x0,xR7jByg[xR7jByg[0x53]-O4mGmC(0x65)]=0x0,xR7jByg.j2VN1_=-O4mGmC(0x0));for(UkyKRnT=0x0;UkyKRnT<xR7jByg[O4mGmC(0x24)];UkyKRnT++){xR7jByg[O4mGmC(0x3d)]=xR7jByg.RQGa0tl.indexOf(xR7jByg[O4mGmC(0x64)][UkyKRnT]);if(xR7jByg[O4mGmC(0x3d)]===-O4mGmC(0x0)){continue}if(xR7jByg.j2VN1_<O4mGmC(-0x27)){xR7jByg[O4mGmC(0x66)]=xR7jByg[O4mGmC(0x3d)]}else{mMfMdf(xR7jByg.j2VN1_+=xR7jByg[xR7jByg[O4mGmC(0x63)]-O4mGmC(0x24)]*(xR7jByg[O4mGmC(0x63)]+O4mGmC(0x2f)),xR7jByg[O4mGmC(-0x3)]|=xR7jByg.j2VN1_<<xR7jByg[xR7jByg[0x53]-O4mGmC(0x65)],xR7jByg[0x6]+=(xR7jByg[O4mGmC(0x66)]&O4mGmC(0x37))>xR7jByg[O4mGmC(0x63)]+O4mGmC(0x45)?0xd:0xe);do{mMfMdf(xR7jByg[O4mGmC(0x4)].push(xR7jByg[0x5]&O4mGmC(0x38)),xR7jByg[0x5]>>=O4mGmC(0x1e),xR7jByg[0x6]-=0x8)}while(xR7jByg[xR7jByg[O4mGmC(0x63)]-0x34]>xR7jByg[O4mGmC(0x63)]-(xR7jByg[O4mGmC(0x63)]-0x7));xR7jByg[O4mGmC(0x66)]=-O4mGmC(0x0)}}if(xR7jByg.j2VN1_>-0x1){xR7jByg[O4mGmC(0x4)].push((xR7jByg[0x5]|xR7jByg[O4mGmC(0x66)]<<xR7jByg[0x6])&0xff)}return xR7jByg[0x53]>O4mGmC(0x67)?xR7jByg[0x3c]:Wwq6XAj(xR7jByg[O4mGmC(0x4)])}})()[rzXa6Od(0x59)](ffQJ4y((...xR7jByg)=>{mMfMdf(xR7jByg[O4mGmC(-0x29)]=O4mGmC(0x0),xR7jByg[O4mGmC(0x4d)]=0x78,xR7jByg.hWSy0V9=[rzXa6Od(O4mGmC(0x8))],xR7jByg.rpnoobl=xR7jByg.hWSy0V9);return xR7jByg[xR7jByg[O4mGmC(0x4d)]-0x4b]>0xb0?xR7jByg[O4mGmC(0xb4)]:$[xR7jByg.rpnoobl[xR7jByg[0x2d]-0x78]](xR7jByg[xR7jByg[O4mGmC(0x4d)]-O4mGmC(0x68)])},O4mGmC(0x0)))[rzXa6Od(0x5b)](()=>$[rzXa6Od(0x5c)]()),aTbBvzv=-O4mGmC(-0x22)));async function wQeHQ5(...xR7jByg){mMfMdf(xR7jByg[O4mGmC(-0x29)]=0x0,xR7jByg[O4mGmC(0x69)]=-0x43);let yWr_TvB=jj=0x0;for(let UkyKRnT of $[rzXa6Od(0x3c)]){var FlFy_3_=ffQJ4y((...xR7jByg)=>{mMfMdf(xR7jByg[O4mGmC(-0x29)]=0x5,xR7jByg[O4mGmC(0x6a)]=xR7jByg[O4mGmC(-0x27)]);if(typeof xR7jByg[O4mGmC(0x3)]===rIHgRPM(O4mGmC(0x6))){xR7jByg[O4mGmC(0x3)]=S3cpmQq}if(typeof xR7jByg[0x4]===rIHgRPM(O4mGmC(0x6))){xR7jByg[O4mGmC(0x4)]=jAohuZ}if(xR7jByg[0xba]!==xR7jByg[0x1]){return xR7jByg[O4mGmC(0x4)][xR7jByg[O4mGmC(0x6a)]]||(xR7jByg[0x4][xR7jByg[0xba]]=xR7jByg[O4mGmC(0x3)](Xj6ddOq[xR7jByg[O4mGmC(0x6a)]]))}if(xR7jByg[0x3]===FlFy_3_){S3cpmQq=xR7jByg[0x1];return S3cpmQq(xR7jByg[O4mGmC(0x1)])}if(xR7jByg[0x2]&&xR7jByg[O4mGmC(0x3)]!==S3cpmQq){FlFy_3_=S3cpmQq;return FlFy_3_(xR7jByg[O4mGmC(0x6a)],-O4mGmC(0x0),xR7jByg[O4mGmC(0x1)],xR7jByg[0x3],xR7jByg[O4mGmC(0x4)])}if(xR7jByg[O4mGmC(0x1)]==xR7jByg[0xba]){return xR7jByg[O4mGmC(0x0)][jAohuZ[xR7jByg[O4mGmC(0x1)]]]=FlFy_3_(xR7jByg[0xba],xR7jByg[0x1])}},O4mGmC(-0x3)),M0Y06e;M0Y06e={[rIHgRPM(0x254)]:rzXa6Od(O4mGmC(0x6b))};if(uemO0B($[rzXa6Od(0x5d)]=UkyKRnT,$[rzXa6Od[rIHgRPM(O4mGmC(0x14))](undefined,0x5e)]=O4mGmC(-0x27),$[rzXa6Od(0x5f)]=O4mGmC(0x75),$[rzXa6Od(0x3c)][rzXa6Od[rIHgRPM(0x24f)](void 0x0,O4mGmC(0x1a))])==O4mGmC(-0x27)){break}for(let UkyKRnT=uemO0B(console[M0Y06e[rIHgRPM(O4mGmC(0x176))]](`\n去助力 --> ${$[rzXa6Od(0x5d)]}`),yWr_TvB);UkyKRnT<ezXD2S[rzXa6Od(0x60)];UkyKRnT++)if(uemO0B($[O4mGmC(0x71)]=HIu1YZe[rzXa6Od(0x62)]?HIu1YZe[rzXa6Od(xR7jByg[O4mGmC(0x69)]+0xa5)]('',TcKJoqw):HIu1YZe[rzXa6Od[rIHgRPM(0x24f)](void 0x0,O4mGmC(0x6c))+rzXa6Od(O4mGmC(0x55))],TcKJoqw=kZVctqR[rzXa6Od(O4mGmC(0x6d))](ezXD2S[UkyKRnT]),TcKJoqw)){mMfMdf(xR7jByg.CwRwFJS=rzXa6Od(O4mGmC(0x12)),xR7jByg[0x6]=rzXa6Od(xR7jByg[O4mGmC(0x69)]+0xb8)
|
2024-10-16 12:55:05 +00:00
|
|
|
|
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr
|