faker3/jx_niuniu_merge.js

9 lines
148 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
牛牛乐园 入口京喜特价-我的
7 7 7 7 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jx_niuniu_merge.js
跑会黑一周后解循环
updatetime:2024/05/15
*/
const $ = new Env('牛牛乐园合成');
function bdy_0xa81c(_0x3f4dcc,_0x4d1a06){const _0x3bb6a7=bdy_0x5508();return bdy_0xa81c=function(_0x3075a9,_0xaec77f){_0x3075a9=_0x3075a9-(-0x928*0x3+-0xe13*0x2+-0x2*-0x1c45);let _0x4ab685=_0x3bb6a7[_0x3075a9];if(bdy_0xa81c['DCSDBu']===undefined){var _0x194121=function(_0x3130a0){const _0x2b3911='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31f4c1='',_0x264d1a='',_0x1f545d=_0x31f4c1+_0x194121;for(let _0x3c8ac7=0x1e99+-0x2c5*0xb+0x2*-0x11,_0xd0a082,_0x593904,_0x483f8a=-0x6*0x28c+0x11f6+0x62*-0x7;_0x593904=_0x3130a0['charAt'](_0x483f8a++);~_0x593904&&(_0xd0a082=_0x3c8ac7%(0x241a+-0x1*0xa42+-0x13*0x15c)?_0xd0a082*(0xb*-0x24a+-0xce3+0x2651)+_0x593904:_0x593904,_0x3c8ac7++%(0xedb*-0x1+0x17d9+0x6*-0x17f))?_0x31f4c1+=_0x1f545d['charCodeAt'](_0x483f8a+(-0x544+-0xb01+0x5*0x343))-(0x1*-0x3b7+0x73e+-0x37d)!==-0xa6*0x10+-0x2*-0x11+0xa3e?String['fromCharCode'](-0x736*-0x3+-0xf2e*-0x1+0x35*-0xad&_0xd0a082>>(-(0x15d9+0x17df+-0x2db6*0x1)*_0x3c8ac7&-0x2*-0x1119+0xf27+-0x3153)):_0x3c8ac7:-0x16da+-0x2*-0xab+0x1584){_0x593904=_0x2b3911['indexOf'](_0x593904);}for(let _0x312956=0x4d2+-0x445*0x2+0x3b8,_0x14308d=_0x31f4c1['length'];_0x312956<_0x14308d;_0x312956++){_0x264d1a+='%'+('00'+_0x31f4c1['charCodeAt'](_0x312956)['toString'](0x1422*-0x1+0x11*-0x1f6+0x4*0xd62))['slice'](-(-0x1063*-0x2+-0x7d*0x4c+-0x22c*-0x2));}return decodeURIComponent(_0x264d1a);};const _0xce3632=function(_0x483276,_0x2a4da3){let _0x35da2d=[],_0x4da440=0x959*-0x2+-0x696*-0x1+0x1f*0x64,_0x26bfd8,_0x3560bd='';_0x483276=_0x194121(_0x483276);let _0x3088df;for(_0x3088df=-0x10b6+0x14e0+0x215*-0x2;_0x3088df<-0x724+-0x4*0x4a1+0x1aa8;_0x3088df++){_0x35da2d[_0x3088df]=_0x3088df;}for(_0x3088df=-0x18b4+-0x19d8+0x4*0xca3;_0x3088df<-0x35a+-0x52*-0x37+0xd44*-0x1;_0x3088df++){_0x4da440=(_0x4da440+_0x35da2d[_0x3088df]+_0x2a4da3['charCodeAt'](_0x3088df%_0x2a4da3['length']))%(-0x243a*-0x1+-0x1*-0x24e5+-0x481f),_0x26bfd8=_0x35da2d[_0x3088df],_0x35da2d[_0x3088df]=_0x35da2d[_0x4da440],_0x35da2d[_0x4da440]=_0x26bfd8;}_0x3088df=-0x1316+0x347*-0x8+-0x16a7*-0x2,_0x4da440=-0x13ba+0x2138+0x2*-0x6bf;for(let _0x52f252=0x14b4*0x1+0x1*0x16af+-0x2b63;_0x52f252<_0x483276['length'];_0x52f252++){_0x3088df=(_0x3088df+(-0x1*0x4d+0x3*-0x8de+0x1ae8))%(-0x229f+0x1*0xa7d+0x1922*0x1),_0x4da440=(_0x4da440+_0x35da2d[_0x3088df])%(0x18c2+0x1be8+-0x33aa),_0x26bfd8=_0x35da2d[_0x3088df],_0x35da2d[_0x3088df]=_0x35da2d[_0x4da440],_0x35da2d[_0x4da440]=_0x26bfd8,_0x3560bd+=String['fromCharCode'](_0x483276['charCodeAt'](_0x52f252)^_0x35da2d[(_0x35da2d[_0x3088df]+_0x35da2d[_0x4da440])%(0x1472+-0xa9f+-0x8d3)]);}return _0x3560bd;};bdy_0xa81c['CLlFHI']=_0xce3632,_0x3f4dcc=arguments,bdy_0xa81c['DCSDBu']=!![];}const _0x4a1f27=_0x3bb6a7[0x1f49+0x2d*-0xad+-0xe0],_0x5688a0=_0x3075a9+_0x4a1f27,_0x137e50=_0x3f4dcc[_0x5688a0];if(!_0x137e50){if(bdy_0xa81c['VWhckK']===undefined){const _0x35b0f6=function(_0x26917f){this['qKzQPG']=_0x26917f,this['bVWpsP']=[0x1b*-0x4f+-0x411+0xc67,-0x3*-0x57b+0x1cc5+-0x2d36,0xb*-0x157+-0x911+0x17ce],this['rrmuII']=function(){return'newState';},this['MIgYro']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['Gjyanw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x35b0f6['prototype']['wQFKlT']=function(){const _0x26aafe=new RegExp(this['MIgYro']+this['Gjyanw']),_0x391833=_0x26aafe['test'](this['rrmuII']['toString']())?--this['bVWpsP'][0x2*0x4a+0x1729+0x2*-0xbde]:--this['bVWpsP'][0x170f*-0x1+-0x10e1+0x27f0];return this['PVyBoX'](_0x391833);},_0x35b0f6['prototype']['PVyBoX']=function(_0x4a9ab9){if(!Boolean(~_0x4a9ab9))return _0x4a9ab9;return this['tgsCsu'](this['qKzQPG']);},_0x35b0f6['prototype']['tgsCsu']=function(_0xc6eb92){for(let _0x152dfa=0x92+-0x1*0x120f+0x117d,_0x101518=this['bVWpsP']['length'];_0x152dfa<_0x101518;_0x152dfa++){this['bVWpsP']['push'](Math['round'](Math['random']())),_0x101518=this['bVWpsP']['length'];}return _0xc6eb92(this['bVWpsP'][-0x7*-0x4fd+0x1097+-0x3382]);},new _0x35b0f6(bdy_0xa81c)['wQFKlT'](),bdy_0xa81c['VWhckK']=!![];}_0x4ab685=bdy_0xa81c['CLlFHI'](_0x4ab685,_0xaec77f),_0x3f4dcc[_0x5688a0]=_0x4ab685;}else _0x4ab685=_0x137e50;return _0x4ab685;},bdy_0xa81c(_0x3f4d
function Env(t, e) { 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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) :