faker3/jd_wyw_help.js

8 lines
139 KiB
JavaScript
Raw Normal View History

2024-08-21 11:15:26 +08:00
/*
2024-09-23 20:29:55 +08:00
1 6 29 2 * jd_wyw_help.js
2024-08-21 11:15:26 +08:00
*/
2024-09-23 20:29:55 +08:00
const $ = new Env('玩一玩_指定助力');
function _0xC80AD26(){}var _0xB0DDCE=Object['defineProperty'],_0xE21FF6A,_0x852EFB,_0xCF171E,_0x3718FAC,_0x26AD5CF,_0x8E3301,_0xB5B1BE6,_0x30783F,_0x34620F,_0x89B041,_0xEB98A5B,_0x2EA990B,_0x3814517,_0x917A64,_0x50BFEAD,_0x2269F8,_0x03D7018,_0x4D7214D,_0x19EF9AF,_0x02471D;function _0x795525E(_0xC80AD26){return _0xE21FF6A[_0xC80AD26>0x61?_0xC80AD26>0x61?_0xC80AD26-0x62:_0xC80AD26+0x43:_0xC80AD26+0x7]}_0xE21FF6A=_0xE8BB697();function _0x2831479(_0xC80AD26,_0xB0DDCE){return _0x852EFB.call(null,_0xC80AD26,'length',{value:_0xB0DDCE,configurable:_0x795525E(0xae)})}_0xC80AD26(_0x852EFB=Object.defineProperty,_0xCF171E=_0x2831479(_0x2C55EFC((..._0xB0DDCE)=>{_0xC80AD26(_0xB0DDCE.length=0x2,_0xB0DDCE._0xFD2EB60=_0xB0DDCE[0x0]);return _0xB0DDCE[0x1](_0xB0DDCE._0xFD2EB60())}),_0x795525E(0x62))(_0x15F164,_0x496099D));var _0xC06A52A=[],_0x940A35A=[_0x8C4ED54(_0x795525E(0x84)),_0x8C4ED54(_0x795525E(0x86)),_0x8C4ED54(_0x795525E(0x62)),_0x8C4ED54(_0x795525E(0x97)),_0x8C4ED54(_0x795525E(0x94)),_0x8C4ED54(_0x795525E(0x93)),_0x8C4ED54(_0x795525E(0x8b)),_0x8C4ED54(0x7),_0x8C4ED54(_0x795525E(0x9e)),_0x8C4ED54(0x9),_0x8C4ED54(_0x795525E(0x90)),_0x8C4ED54(0xb),_0x8C4ED54(_0x795525E(0x89)),_0x8C4ED54(_0x795525E(0xaf)),_0x8C4ED54(0xe),_0x8C4ED54(_0x795525E(0x88)),_0x8C4ED54(0x10),_0x8C4ED54(_0x795525E(0xad)),_0x8C4ED54(_0x795525E(0x8c)),_0x8C4ED54(_0x795525E(0xab)),_0x8C4ED54(0x14),_0x8C4ED54(0x15),_0x8C4ED54(0x16),_0x8C4ED54(_0x795525E(0x63)),_0x8C4ED54(_0x795525E(0xb3)),_0x8C4ED54(_0x795525E(0x64)),_0x8C4ED54(0x1a),_0x8C4ED54(0x1b),_0x8C4ED54(_0x795525E(0x65)),_0x8C4ED54(_0x795525E(0x6a)),_0x8C4ED54(0x1e),_0x8C4ED54(_0x795525E(0x63)),_0x8C4ED54(_0x795525E(0x64)),_0x8C4ED54(0x1b),_0x8C4ED54(0x1c),_0x8C4ED54(0x1b),_0x8C4ED54(_0x795525E(0x65)),_0x8C4ED54(_0x795525E(0x63)),_0x8C4ED54(_0x795525E(0x64)),_0x8C4ED54(0x1f),')|LNL',_0x8C4ED54(0x20),_0x8C4ED54(0x21),_0x8C4ED54(0x22),_0x8C4ED54(0x23),_0x8C4ED54(_0x795525E(0xb4)),_0x8C4ED54(0x25),'7h|N]g2YS',_0x8C4ED54(0x26),_0x8C4ED54(0x27),_0x8C4ED54(0x1d),_0x8C4ED54(0x28),_0x8C4ED54(_0x795525E(0xb7)),_0x8C4ED54(0x2a),_0x8C4ED54(_0x795525E(0xb8)),_0x8C4ED54(_0x795525E(0xb9)),_0x8C4ED54(0x2d),_0x8C4ED54(0x2e),_0x8C4ED54(0x2f),_0x8C4ED54(0x30),_0x8C4ED54(_0x795525E(0xbb)),_0x8C4ED54(0x32),'6V1qx|XK','XG1qo|XK',_0x8C4ED54(0x33),_0x8C4ED54(0x34),_0x8C4ED54(_0x795525E(0x81)),_0x8C4ED54(0x36),'HK"{5B|I9W[}*5C;{cUI9sb*>N',_0x8C4ED54(0x37),_0x8C4ED54(_0x795525E(0xfa)),_0x8C4ED54(0x39),'|ON"nOtP?+Kbx.fPF5OrT',_0x8C4ED54(0x3a),_0x8C4ED54(_0x795525E(0x91)),_0x8C4ED54(0x3c),_0x8C4ED54(0x3d),_0x8C4ED54(_0x795525E(0x8f)),'itqEo|D>J2G',_0x8C4ED54(0x3f),_0x8C4ED54(0x1d),_0x8C4ED54(_0x795525E(0xbe)),_0x8C4ED54(_0x795525E(0xbf)),_0x8C4ED54(0x42),_0x8C4ED54(0x43),_0x8C4ED54(_0x795525E(0xc2)),_0x8C4ED54(_0x795525E(0x6b)),_0x8C4ED54(_0x795525E(0x74)),_0x8C4ED54(0x47),_0x8C4ED54(0x48),_0x8C4ED54(_0x795525E(0xdb)),_0x8C4ED54(0x4a),_0x8C4ED54(0x46),_0x8C4ED54(_0x795525E(0x9a)),'wEq|O(:!5r|Wj',_0x8C4ED54(0x4c),_0x8C4ED54(0x4d),_0x8C4ED54(0x4e),_0x8C4ED54(_0x795525E(0xc4)),_0x8C4ED54(0x1d),_0x8C4ED54(0x50),_0x8C4ED54(_0x795525E(0x196)),_0x8C4ED54(0x52),_0x8C4ED54(_0x795525E(0xc0)),_0x8C4ED54(_0x795525E(0x6f)),'F@Upb;))rl|',_0x8C4ED54(0x55),_0x8C4ED54(0x56),_0x8C4ED54(0x57),_0x8C4ED54(0x2f),'C{|2s^ffP"',_0x8C4ED54(_0x795525E(0x9d)),_0x795525E(0x72),_0x8C4ED54(_0x795525E(0x67)),_0x8C4ED54(_0x795525E(0x135)),_0x8C4ED54(_0x795525E(0xcc)),_0x8C4ED54(_0x795525E(0x68)),_0x8C4ED54(_0x795525E(0x66)),_0x8C4ED54(0x5c),_0x8C4ED54(_0x795525E(0x66)),_0x8C4ED54(0x5e),_0x8C4ED54(_0x795525E(0x75)),_0x8C4ED54(0x60),_0x8C4ED54(0x61),_0x8C4ED54(_0x795525E(0x67)),_0x8C4ED54(_0x795525E(0xa8)),_0x8C4ED54(_0x795525E(0x68)),_0x8C4ED54(0x5d),_0x8C4ED54(_0x795525E(0xc8)),_0x8C4ED54(_0x795525E(0xc7)),_0x8C4ED54(0x1d),_0x8C4ED54(0x65),_0x8C4ED54(0x1d),_0x8C4ED54(0x66),_0x8C4ED54(0x67),_0x8C4ED54(_0x795525E(0xd0)),_0x8C4ED54(_0x795525E(0xca)),_0x8C4ED54(_0x795525E(0xd1)),_0x8C4ED54(_0x795525E(0xcb)),_0x8C4ED54(0x6c),_0x8C4ED54(0x6d),_0x8C4ED54(_0x795525E(0xa7)),_0x8C4ED54(_0x795525E(0xce)),_0x8C4ED54(0x70),_0x8C4ED54(0x71),_0x8C4ED54(0x72),_0x8C4ED54(0x73),'1{
WYW_HELPCODE='code1&code2' 多个&分割`),_0xC879DCF)!=''&&_0x2269F8._0x3F56FDB>-_0xCF171E(0x53)){$[_0x3718FAC(0x3e)]=_0xC879DCF[_0x3718FAC(0x56)]('&')}if($[_0x3718FAC(0x3e)][_0x3718FAC(0x57)]>_0x795525E(0x84)){_0xC80AD26(console[_0x3718FAC(0x50)](`\n\n开始助力...`),await _0xE79FCD())}else{console[_0x3718FAC(_0x795525E(0xc6))](`未指定助力马退出`)}})()[_0x3718FAC(_0x795525E(0x9d))](_0xC80AD26=>$[_0x3718FAC(0x59)](_0xC80AD26))[_0x3718FAC(0x5a)](()=>$[_0x3718FAC(0x5b)]()),_0xB5A330A(-0x29)));async function _0xE79FCD(){for(let _0xB0DDCE=0x0;_0xB0DDCE<_0x670056A[_0x3718FAC[_0x8C4ED54(0x1f6)](_0x795525E(0xaa),[_0x795525E(0x68)])]&&_0x2269F8._0x72FC8F7();_0xB0DDCE++)if(_0xC97CB9($.UA=_0x5370402[_0x3718FAC(_0x795525E(0x66))]?_0x5370402[_0x3718FAC(_0x795525E(0x66))]('',_0x0EFB97):_0x5370402[_0x3718FAC(0x5e)],_0x0EFB97=_0xBC4B2EB[_0x3718FAC(0x5f)](_0x670056A[_0xB0DDCE]),_0x0EFB97)&&_0x2269F8._0x7FEE20>-0x2a){var _0x852EFB,_0xCF171E,_0x26AD5CF,_0x8E3301;function _0xB5B1BE6(_0xB0DDCE){return _0xE21FF6A[_0xB0DDCE<0xb?_0xB0DDCE-0x1a:_0xB0DDCE<0xb?_0xB0DDCE-0x1f:_0xB0DDCE-0xc]}_0xC80AD26(_0x852EFB={[_0x8C4ED54(_0xB5B1BE6(0x7d))]:_0x3718FAC(0x76)},_0xCF171E=_0x3718FAC(0x6c),_0x26AD5CF=_0x3718FAC[_0x8C4ED54(_0x795525E(0x8e))](void 0x0,0x68),_0x8E3301=_0x3718FAC[_0x8C4ED54(0x1ef)](void 0x0,_0x795525E(0xc7)));let _0x30783F=_0xC97CB9($[_0x3718FAC(0x60)]=decodeURIComponent(_0x0EFB97[_0x3718FAC(0x61)](/pt_pin=([^; ]+)(?=;?)/)&&_0x0EFB97[_0x3718FAC(0x61)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x3718FAC(_0x795525E(0xa8))]=_0x65DEE8A(_0xB0DDCE,0x1,_0xB5A330A(0xa)),console[_0x3718FAC[_0x8C4ED54(_0x795525E(0x8e))](void 0x0,_0x795525E(0xc8))](`\n-------开始账号${$[_0x3718FAC[_0x8C4ED54(0x1ef)](_0x795525E(0xaa),0x62)]}${$[_0x8E3301+_0x795525E(0x187)]||$[_0x3718FAC(0x60)]}------\n`),await _0xBC4B2EB[_0x3718FAC(_0x795525E(0xc9))+'en']($.UA));if(_0x30783F){$[_0x3718FAC(_0xB5B1BE6(0x98))]=_0x30783F[_0x3718FAC(0x67)]}if(_0xC97CB9($[_0x26AD5CF]=!0x1,$[_0x3718FAC(_0x795525E(0xca))]=!0x1,$[_0x3718FAC(0x6a)]=_0x795525E(0xae),_0x5267AD=_0x795525E(0x84),$[_0x3718FAC(_0x795525E(0xcb))]=_0xBC4B2EB[_0x3718FAC(_0x795525E(0xcb))](_0xCF171E),$[_0x3718FAC(_0x795525E(0x8a))][_0x3718FAC(_0x795525E(0x68))])!=0x0){var _0x34620F=(_0xB0DDCE,_0x852EFB,_0xCF171E,_0x26AD5CF,_0x8E3301)=>{var _0xB5B1BE6=_0x2C55EFC(_0xB0DDCE=>{return _0xE21FF6A[_0xB0DDCE<0x17b?_0xB0DDCE<0x17b?_0xB0DDCE<0x17b?_0xB0DDCE-0x3d:_0xB0DDCE-0xd:_0xB0DDCE+0x3e:_0xB0DDCE+0x32]},0x1);if(typeof _0x26AD5CF===_0x8C4ED54(_0x795525E(0x9f))){_0x26AD5CF=_0x89B041}if(typeof _0x8E3301===_0x8C4ED54(_0xB5B1BE6(0x7a))){_0x8E3301=_0xC06A52A}if(_0xCF171E==_0xB0DDCE){return _0x852EFB[_0xC06A52A[_0xCF171E]]=_0x34620F(_0xB0DDCE,_0x852EFB)}if(_0xB0DDCE!==_0x852EFB){return _0x8E3301[_0xB0DDCE]||(_0x8E3301[_0xB0DDCE]=_0x26AD5CF(_0x940A35A[_0xB0DDCE]))}if(_0x26AD5CF===_0x34620F){_0x89B041=_0x852EFB;return _0x89B041(_0xCF171E)}if(_0x26AD5CF===_0x795525E(0xaa)){_0x34620F=_0x8E3301}if(_0xCF171E==_0x26AD5CF){return _0x852EFB?_0xB0DDCE[_0x8E3301[_0x852EFB]]:_0xC06A52A[_0xB0DDCE]||(_0xCF171E=_0x8E3301[_0xB0DDCE]||_0x26AD5CF,_0xC06A52A[_0xB0DDCE]=_0xCF171E(_0x940A35A[_0xB0DDCE]))}};_0xC80AD26($[_0x3718FAC(0x3e)]=$[_0x3718FAC(_0x795525E(0x8f))][_0x3718FAC(0x6d)](_0xB0DDCE=>_0x65DEE8A($[_0x3718FAC(0x3f)][_0x34620F(0x6e)](_0xB0DDCE),_0x03D7018=-_0x795525E(0xb7))),$[_0x3718FAC(_0x795525E(0x8a))]=[]);function _0x89B041(_0x852EFB,_0xCF171E='UD4lX,Bt21TFxr$(ubNd"p+v0yPqe@fhSVM:.H#K{cmG!3iY>Cn6Ls)j]OkgQ}5J&/*|WzwZoR[_a?~EI7^=<9%`8A;',_0x26AD5CF,_0x8E3301,_0xB5B1BE6=[],_0x30783F=0x0,_0x34620F=0x0,_0x89B041,_0xEB98A5B=0x0,_0x2EA990B){_0xC80AD26(_0x26AD5CF=''+(_0x852EFB||''),_0x8E3301=_0x26AD5CF.length,_0x89B041=-_0x795525E(0x86));for(_0xEB98A5B=_0xEB98A5B;_0xEB98A5B<_0x8E3301;_0xEB98A5B++){_0x2EA990B=_0xCF171E.indexOf(_0x26AD5CF[_0xEB98A5B]);if(_0x2EA990B===-_0x795525E(0x86)){continue}if(_0x89B041<_0x795525E(0x84)){_0x89B041=_0x2EA990B}else{_0xC80AD26(_0x89B041+=_0x2EA990B*_0x795525E(0xcc),_0x30783F|=_0x89B041<<_0x34620F,_0x34620F+=(_0x89B041&_0x795525E(0xcd))>0x58?0xd:_0x795525E(0xb0));do{var _0x3718FAC=_0x2C55EF
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 || "{}" : "{}"; t