jdpro/jd_wanyiwan.js

8 lines
147 KiB
JavaScript
Raw Permalink Normal View History

2024-06-28 07:47:44 +00:00
/*
2024-09-06 14:14:20 +00:00
23 4,11 * * * jd_wanyiwan.js
2024-06-28 07:47:44 +00:00
*/
2024-08-27 23:26:51 +00:00
const $ = new Env('新版玩一玩');
2024-09-23 07:51:45 +00:00
function _0x0B80217(){}var _0x95F160=Object['defineProperty'],_0xC261D7D,_0x3CD8C54,_0x9C549C,_0xE3E589F,_0x8F2EA1F,_0x011F57,_0x9CB609,_0xB3AC12,_0xB428806,_0xFD21D30,_0x192569,_0xB4A480E,_0x7682D1,_0x8763211,_0x7EC72D6,_0xB43E2A,_0xD43BA9;function _0xCE7CED1(_0x0B80217){return _0xC261D7D[_0x0B80217>0x5b?_0x0B80217>0x5b?_0x0B80217<0x1ac?_0x0B80217<0x1ac?_0x0B80217-0x5c:_0x0B80217+0x57:_0x0B80217+0xe:_0x0B80217-0x34:_0x0B80217+0x15]}_0xC261D7D=_0x476BF7();function _0xB5464BD(_0x0B80217,_0x95F160){_0x3CD8C54(_0x0B80217,'length',{value:_0x95F160,configurable:!0x0});return _0x0B80217}_0x0B80217(_0x3CD8C54=Object.defineProperty,_0x9C549C=_0xB5464BD(_0xF709A2B((..._0x95F160)=>{var _0x3CD8C54=_0xF709A2B(_0x95F160=>{return _0xC261D7D[_0x95F160>0x52?_0x95F160>0x52?_0x95F160>0x1a3?_0x95F160-0x59:_0x95F160-0x53:_0x95F160-0x21:_0x95F160-0x1]},0x1);_0x0B80217(_0x95F160[_0x3CD8C54(0x78)]=_0xCE7CED1(0x5c),_0x95F160[0xdd]=_0x95F160[_0x3CD8C54(0x54)]);return _0x95F160[_0xCE7CED1(0x140)](_0x95F160[0x0]())}),_0xCE7CED1(0x5c))(_0x3D9A30,_0x854E3D7));var _0x9A0701=[],_0x01650AB=[_0xD7D6A60(0x0),_0xD7D6A60(_0xCE7CED1(0x5d)),_0xD7D6A60(0x2),_0xD7D6A60(0x3),_0xD7D6A60(0x4),_0xD7D6A60(_0xCE7CED1(0x8b)),_0xD7D6A60(0x6),_0xD7D6A60(_0xCE7CED1(0x91)),_0xD7D6A60(_0xCE7CED1(0xb0)),_0xD7D6A60(_0xCE7CED1(0x94)),_0xD7D6A60(0xa),_0xD7D6A60(_0xCE7CED1(0xb6)),_0xD7D6A60(_0xCE7CED1(0x90)),_0xD7D6A60(0xd),_0xD7D6A60(0xe),_0xD7D6A60(_0xCE7CED1(0x8f)),_0xD7D6A60(_0xCE7CED1(0xb7)),'GwDlRM>pkAl<OnI|(a_8v.*9`q#g5U','d)qG|4$c7o',_0xD7D6A60(_0xCE7CED1(0x5e)),_0xD7D6A60(0x12),_0xD7D6A60(_0xCE7CED1(0x5f)),_0xD7D6A60(0x14),'VcM0||b',_0xD7D6A60(0x15),_0xD7D6A60(_0xCE7CED1(0x64)),'B|[F/aUv%].2DO6n*Fx<q;T#b#P_")^h+:;C3F78kAj<yRW|LyYjHA<B1smw8^:OI,',_0xD7D6A60(_0xCE7CED1(0x5e)),_0xD7D6A60(_0xCE7CED1(0x5f)),_0xD7D6A60(_0xCE7CED1(0xb8)),_0xD7D6A60(_0xCE7CED1(0x86)),'VcM0||b',_0xD7D6A60(0x15),_0xD7D6A60(_0xCE7CED1(0x5e)),_0xD7D6A60(0x13),'4$n*11n|Ir',_0xD7D6A60(_0xCE7CED1(0x84)),_0xD7D6A60(_0xCE7CED1(0xb9)),_0xD7D6A60(0x1b),'IItd[?d|Yi',_0xD7D6A60(_0xCE7CED1(0x9b)),_0xD7D6A60(0x1d),_0xD7D6A60(_0xCE7CED1(0xba)),_0xD7D6A60(_0xCE7CED1(0x65)),_0xD7D6A60(0x20),_0xD7D6A60(_0xCE7CED1(0xb3)),_0xD7D6A60(0x22),_0xD7D6A60(0x16),_0xD7D6A60(0x23),_0xD7D6A60(_0xCE7CED1(0xf2)),_0xD7D6A60(_0xCE7CED1(0xc2)),_0xD7D6A60(_0xCE7CED1(0x80)),_0xD7D6A60(0x27),_0xD7D6A60(0x28),_0xD7D6A60(_0xCE7CED1(0x78)),_0xD7D6A60(_0xCE7CED1(0x62)),'S)r%|O`,',_0xD7D6A60(0x2b),'S)r%|OU=Vl$i,',_0xD7D6A60(0x2c),_0xD7D6A60(0x2d),_0xD7D6A60(0x2e),_0xD7D6A60(_0xCE7CED1(0xc4)),'|U7WluQe',_0xD7D6A60(_0xCE7CED1(0xc5)),_0xD7D6A60(0x31),'[e{4YD!J.MXO3Y)|4>@J.E?3T0am4!{{CCXY5]>FP^C;LVK[SIM0guZ14^.]z0k1GwAw@lI+!k{?XlA|:gW{HpUO!9!717gvhKd?v)3NW',';qDb1"T46PgQcVt`g|/$quQf0mp.m(5>hgV+UKvy2:tA6}fv,6B,&',_0xD7D6A60(0x32),_0xD7D6A60(0x16),_0xD7D6A60(0x33),_0xD7D6A60(_0xCE7CED1(0x1a3)),_0xD7D6A60(0x35),_0xD7D6A60(0x36),_0xCE7CED1(0x60),_0xD7D6A60(0x37),'kp+z10b|cXzD.',_0xD7D6A60(0x38),_0xD7D6A60(_0xCE7CED1(0x66)),_0xD7D6A60(_0xCE7CED1(0x9d)),_0xD7D6A60(0x3b),_0xD7D6A60(0x3c),_0xD7D6A60(_0xCE7CED1(0xc8)),_0xD7D6A60(0x3e),_0xD7D6A60(_0xCE7CED1(0x8e)),_0xD7D6A60(0x40),_0xD7D6A60(0x41),_0xD7D6A60(0x42),_0xD7D6A60(0x43),_0xD7D6A60(_0xCE7CED1(0xce)),_0xD7D6A60(_0xCE7CED1(0xca)),_0xD7D6A60(_0xCE7CED1(0xd0)),_0xD7D6A60(_0xCE7CED1(0xd1)),_0xD7D6A60(0x48),_0xD7D6A60(0x49),_0xD7D6A60(_0xCE7CED1(0xf1)),_0xD7D6A60(_0xCE7CED1(0x61)),_0xD7D6A60(0x4c),_0xD7D6A60(0x4d),_0xD7D6A60(_0xCE7CED1(0xb4)),_0xD7D6A60(0x4f),'`HxtIJAL,{@6S]ec@|*+H~6ORh%#h!b"s@]mgZC4qdeE,KOCp,YpP',_0xD7D6A60(0x50),_0xD7D6A60(_0xCE7CED1(0xda)),_0xD7D6A60(_0xCE7CED1(0xdb)),_0xD7D6A60(0x53),_0xD7D6A60(0x54),_0xD7D6A60(0x55),_0xD7D6A60(0x56),_0xD7D6A60(_0xCE7CED1(0xd7)),_0xD7D6A60(_0xCE7CED1(0xa3)),'4$)*||Fktf*6,',_0xD7D6A60(0x59),_0xD7D6A60(_0xCE7CED1(0x69)),_0xD7D6A60(_0xCE7CED1(0xa1)),_0xD7D6A60(_0xCE7CED1(0x7e)),_0xD7D6A60(0x5d),_0xD7D6A60(0x5e),_0xCE7CED1(0x60),_0xD7D6A60(_0xCE7CED1(0xcb)),_0xD7D6A60(0x60),_0xD7D6A60(_0xCE7CED1(0xd6)),_0xD7D6A60(_0xCE7CED1(0xd4)),_0xD7D6A60(0x63),_0xD7D6A60(_0xCE7CED1(0x93)),_0xD7D6A60(_0xCE7CED1(0xe4)),_0xD7D6A60(0x65),_0xD7D6A60(0x66),_0xD7D
WYW_HELPTM='15' 几点后关闭助力`),console[_0x3CD8C54[_0x9C549C(0x19)]](`只做任务和助力`),_0xCE7CED1(0x85));_0xB3AC12<_0x307B48[_0xE3E589F(0x4a)];_0xB3AC12++){var _0xB428806=_0xB5464BD((..._0x95F160)=>{var _0x3CD8C54=_0xF709A2B(_0x95F160=>{return _0xC261D7D[_0x95F160>0x162?_0x95F160-0xe:_0x95F160-0x12]},0x1);_0x0B80217(_0x95F160.length=0x5,_0x95F160[_0xCE7CED1(0xd2)]=_0x95F160[0x4]);if(typeof _0x95F160[_0x9C549C(0x1c)]===_0xD7D6A60(_0x9C549C(0x17))){_0x95F160[_0xCE7CED1(0x88)]=_0x8763211}_0x95F160[_0x3CD8C54(0x89)]=-_0xCE7CED1(0xcb);if(typeof _0x95F160[_0xCE7CED1(0xd2)]===_0xD7D6A60(_0x3CD8C54(0x39))){_0x95F160[0xa9]=_0x9A0701}if(_0x95F160[0x1]){[_0x95F160[0xa9],_0x95F160[_0xCE7CED1(0x5d)]]=[_0x95F160[_0x95F160[_0x9C549C(0x67)]+_0x9C549C(0x68)](_0x95F160[0xa9]),_0x95F160[_0x95F160[_0x3CD8C54(0x89)]+_0xCE7CED1(0xcb)]||_0x95F160[0x2]];return _0xB428806(_0x95F160[_0x95F160._0x9B48241+_0x3CD8C54(0x81)],_0x95F160[0xa9],_0x95F160[0x2])}_0x95F160._0xC356FB=_0x95F160[_0x95F160[_0xCE7CED1(0xd3)]+0x62];if(_0x95F160[0x2]&&_0x95F160._0xC356FB!==_0x8763211){_0xB428806=_0x8763211;return _0xB428806(_0x95F160[_0x95F160[_0xCE7CED1(0xd3)]+0x5f],-0x1,_0x95F160[0x2],_0x95F160[_0x3CD8C54(0x8e)],_0x95F160[_0xCE7CED1(0xd2)])}_0x95F160[0x9d]=_0x95F160._0x9B48241+_0x9C549C(0x69);if(_0x95F160[_0x95F160[_0x3CD8C54(0x89)]+_0x9C549C(0x6a)]==_0x95F160._0xC356FB){return _0x95F160[_0x9C549C(-0xf)]?_0x95F160[_0x95F160[0x9d]-_0x9C549C(0x6b)][_0x95F160[_0x95F160[0x9d]+0x52][_0x95F160[0x1]]]:_0x9A0701[_0x95F160[_0x95F160[_0xCE7CED1(0xd3)]+0x5f]]||(_0x95F160[0x2]=_0x95F160[_0x95F160[_0x3CD8C54(0x89)]+0x108][_0x95F160[0x0]]||_0x95F160[_0x3CD8C54(0x8e)],_0x9A0701[_0x95F160[_0xCE7CED1(0x85)]]=_0x95F160[0x2](_0x01650AB[_0x95F160[0x0]]))}if(_0x95F160[_0x95F160[_0xCE7CED1(0xd3)]+_0x9C549C(0x5f)]!==_0x95F160[0x1]){var _0x8F2EA1F=_0xF709A2B(_0x95F160=>{return _0xC261D7D[_0x95F160<0x128?_0x95F160<-0x29?_0x95F160+0x14:_0x95F160>-0x29?_0x95F160<0x128?_0x95F160+0x28:_0x95F160-0xc:_0x95F160-0x5c:_0x95F160-0x38]},0x1);return _0x95F160[0xa9][_0x95F160[_0x95F160._0x9B48241+0x5f]]||(_0x95F160[_0x95F160[_0x8F2EA1F(0x4f)]+0x108][_0x95F160[_0x8F2EA1F(0x1)]]=_0x95F160._0xC356FB(_0x01650AB[_0x95F160[_0x95F160[_0x8F2EA1F(0x4f)]+_0x9C549C(0x5f)]]))}},0x5);if(_0x684DC0($[_0x9C549C(0xd5)]=_0xA47C1F9[_0xB428806(_0xCE7CED1(0x61))]?_0xA47C1F9[_0xB428806(_0x9C549C(-0xb))]('',_0xD5A32A5):_0xA47C1F9[_0xB428806(_0xCE7CED1(0xd9))],_0xD5A32A5=_0xF5E092E[_0xB428806(0x4d)](_0x307B48[_0xB3AC12]),_0xD5A32A5)&&_0xB43E2A._0xC124FA[_0xE3E589F(0x4e)](0x8)=='4'){try{var _0xFD21D30=_0xF709A2B(_0x95F160=>{return _0xC261D7D[_0x95F160>0x119?_0x95F160+0x61:_0x95F160+0x37]},0x1);_0x0B80217(_0x95F160[_0xCE7CED1(0xdf)]=[_0xE3E589F(0x58)],_0x95F160._0xB0D4DC3={[_0xD7D6A60(0x219)]:_0xE3E589F[_0xD7D6A60(0x20d)](_0xCE7CED1(0x99),0x56)},_0x95F160[_0xFD21D30(-0x34)]=_0xB428806(0x54),_0x95F160._0x5454309=_0x684DC0($[_0xB428806(_0x95F160[_0xFD21D30(0x4f)]+0xae)]=decodeURIComponent(_0xD5A32A5[_0xE3E589F(0x50)](/pt_pin=([^; ]+)(?=;?)/)&&_0xD5A32A5[_0xE3E589F(0x50)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0xE3E589F(_0xFD21D30(0x47))]=_0x7B8DB1(_0xB3AC12,0x1,_0xB006FA2(-_0xCE7CED1(0x104))),$[_0xE3E589F(_0xCE7CED1(0xdb))]=!0x1,$[_0xE3E589F[_0xD7D6A60(0x20d)](undefined,_0x9C549C(0x77))+'me']='',$[_0x95F160[0x13]]=!0x0,$[_0xB428806(0x55)]=_0xCE7CED1(0xdc),$[_0x95F160._0xB0D4DC3[_0xD7D6A60(0x219)]]=_0xFD21D30(0x49),$[_0xB428806[_0xD7D6A60(_0xFD21D30(0x3c))](undefined,[0x57])]=!0x1,_0xBE623C0=_0xD4685FC,_0xDB90A0=_0x95F160[_0x9C549C(0x72)]-_0xCE7CED1(0xdd),console[_0xE3E589F(_0xFD21D30(0x37))](`\n******开始账号${$[_0xE3E589F(_0x95F160[_0xFD21D30(0x4b)]+_0xFD21D30(0x8))]}${$[_0x95F160[_0xFD21D30(0x4c)][0x0]]||$[_0xE3E589F(_0xCE7CED1(0xe6))+'me']}*********\n`),await _0xF5E092E[_0xE3E589F(0x5a)]($.UA)));if(_0x95F160._0x5454309&&_0xB43E2A._0x7EDEAD9()){var _0x192569=(_0x95F160,_0x3CD8C54,_0x8F2EA1F,_0x011F57,_0x9CB609)=>{var _0xB3AC12=_0xF709A2B(_0x95F160=>{return _0xC261D7D[_0x95F160<-0x1c?_0x95F160-0xa:_0x95F160<-0x1c?_0x95F160-0x16:_0x95F160+0x1b]},0x1);if(typeof _0x011F57===_0xD7D6A60(_0x9C549C(0x17))){_
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