mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 00:09:20 +08:00
7 lines
83 KiB
JavaScript
7 lines
83 KiB
JavaScript
|
/*
|
|||
|
天天来赚钱,入口:小程序
|
|||
|
3 11 * * * jd_wxttzq.js
|
|||
|
*/
|
|||
|
const $ = new Env("天天来赚钱");
|
|||
|
var _0xodm='jsjiami.com.v7';const _0x156cb0=_0x31cc;(function(_0x397d28,_0x485ab4,_0x4c24b0,_0x23ff2b,_0x595ada,_0x40e242,_0x4839d0){return _0x397d28=_0x397d28>>0x2,_0x40e242='hs',_0x4839d0='hs',function(_0x1ec907,_0xc49c72,_0x1f5132,_0xc4dec1,_0x49ad3a){const _0x487f23=_0x31cc;_0xc4dec1='tfi',_0x40e242=_0xc4dec1+_0x40e242,_0x49ad3a='up',_0x4839d0+=_0x49ad3a,_0x40e242=_0x1f5132(_0x40e242),_0x4839d0=_0x1f5132(_0x4839d0),_0x1f5132=0x0;const _0x1aee35=_0x1ec907();while(!![]&&--_0x23ff2b+_0xc49c72){try{_0xc4dec1=parseInt(_0x487f23(0x2bb,'bKip'))/0x1*(parseInt(_0x487f23(0x303,'*W$7'))/0x2)+parseInt(_0x487f23(0xa9,'$S1O'))/0x3+-parseInt(_0x487f23(0x200,'gW4*'))/0x4+parseInt(_0x487f23(0x17d,'Z^xY'))/0x5*(parseInt(_0x487f23(0x343,'6CEf'))/0x6)+parseInt(_0x487f23(0x22e,'$S1O'))/0x7*(-parseInt(_0x487f23(0x358,'G!^y'))/0x8)+parseInt(_0x487f23(0x147,')@NM'))/0x9+-parseInt(_0x487f23(0x11d,'Biyh'))/0xa;}catch(_0xe1b1bd){_0xc4dec1=_0x1f5132;}finally{_0x49ad3a=_0x1aee35[_0x40e242]();if(_0x397d28<=_0x23ff2b)_0x1f5132?_0x595ada?_0xc4dec1=_0x49ad3a:_0x595ada=_0x49ad3a:_0x1f5132=_0x49ad3a;else{if(_0x1f5132==_0x595ada['replace'](/[FJbEGrqDkldTMOtfC=]/g,'')){if(_0xc4dec1===_0xc49c72){_0x1aee35['un'+_0x40e242](_0x49ad3a);break;}_0x1aee35[_0x4839d0](_0x49ad3a);}}}}}(_0x4c24b0,_0x485ab4,function(_0x27ee73,_0x7d2f24,_0x48cf34,_0x48e13e,_0x25fb94,_0x3c1855,_0x370bac){return _0x7d2f24='\x73\x70\x6c\x69\x74',_0x27ee73=arguments[0x0],_0x27ee73=_0x27ee73[_0x7d2f24](''),_0x48cf34=`\x72\x65\x76\x65\x72\x73\x65`,_0x27ee73=_0x27ee73[_0x48cf34]('\x76'),_0x48e13e=`\x6a\x6f\x69\x6e`,(0x14fe55,_0x27ee73[_0x48e13e](''));});}(0x2f0,0x3b728,_0xff30,0xbe),_0xff30)&&(_0xodm=0xe75);const _0xc5c6a1=(function(){const _0x1fdad8=_0x31cc,_0x2f2b12={'xHZaC':function(_0x38efcb,_0x428a13){return _0x38efcb!==_0x428a13;},'ggnPN':_0x1fdad8(0x3d5,'WGeJ'),'XdaNM':_0x1fdad8(0x136,'I539'),'CtJzl':_0x1fdad8(0x349,'fw*c'),'eqzwO':_0x1fdad8(0x388,')[29'),'LPPEc':function(_0xa059b5,_0x40e639){return _0xa059b5===_0x40e639;},'FnoRo':_0x1fdad8(0x3fd,'aCIa'),'OIgeU':_0x1fdad8(0x3e3,'cD1f')};let _0x5be591=!![];return function(_0x5492f,_0x54f897){const _0x2d5d2d=_0x1fdad8,_0x1b4e47={'frSat':function(_0x53aedd,_0x1d1882){const _0x5ed103=_0x31cc;return _0x2f2b12[_0x5ed103(0x1ad,'fw*c')](_0x53aedd,_0x1d1882);},'dsYxz':_0x2f2b12[_0x2d5d2d(0xfe,'w5kj')],'rgrfp':_0x2f2b12[_0x2d5d2d(0x236,'uDQP')],'weyRJ':_0x2f2b12[_0x2d5d2d(0x3b2,'Biyh')],'NhThv':_0x2f2b12[_0x2d5d2d(0x362,'bKip')]};if(_0x2f2b12[_0x2d5d2d(0x314,'I539')](_0x2f2b12[_0x2d5d2d(0x140,'gW4*')],_0x2f2b12[_0x2d5d2d(0x155,'cD1f')]))_0x52060c[_0x2d5d2d(0x1ac,'w!7f')]('','❌\x20'+_0x8cbd7f[_0x2d5d2d(0x39a,'aCIa')]+_0x2d5d2d(0xe9,'*W$7')+_0x168aa0+'!','');else{const _0xb80527=_0x5be591?function(){const _0x26d365=_0x2d5d2d;if(_0x1b4e47[_0x26d365(0x10b,'uDQP')](_0x1b4e47[_0x26d365(0x17e,'Biyh')],_0x1b4e47[_0x26d365(0x364,'dy6S')])){if(_0x54f897){if(_0x1b4e47[_0x26d365(0x2c5,'8iwu')](_0x1b4e47[_0x26d365(0x157,'H1Z*')],_0x1b4e47[_0x26d365(0x26d,'cD1f')])){const _0x30d208=_0x54f897[_0x26d365(0x3c1,'cD1f')](_0x5492f,arguments);return _0x54f897=null,_0x30d208;}else{const _0x4ffde2=_0x5edd3b[_0x26d365(0x3a8,'Z^xY')](_0x4bf60d,arguments);return _0x414d5d=null,_0x4ffde2;}}}else _0xb82f9f[_0x26d365(0x34c,')@NM')](_0x407e10),_0x54b80c[_0x26d365(0x22d,'PinH')](_0x26d365(0x225,'H1Z*'));}:function(){};return _0x5be591=![],_0xb80527;}};}()),_0x36b160=_0xc5c6a1(this,function(){const _0x1b9fd5=_0x31cc,_0x2357df={'NwLYZ':_0x1b9fd5(0x3f0,'I539')};return _0x36b160[_0x1b9fd5(0x3d0,'8iwu')]()[_0x1b9fd5(0x1d7,'gW4*')](_0x2357df[_0x1b9fd5(0x138,'lJX2')])[_0x1b9fd5(0x245,'uDQP')]()[_0x1b9fd5(0x2e0,'$@*I')](_0x36b160)[_0x1b9fd5(0x168,'bKip')](_0x2357df[_0x1b9fd5(0x11f,'gW4*')]);});_0x36b160();const _0x22229e=$[_0x156cb0(0x371,'lP#h')]()?require(_0x156cb0(0x1fc,'G!^y')):'',_0xed5770=$[_0x156cb0(0x329,'WGeJ')]()?require(_0x156cb0(0x3e2,'(N9[')):'';let _0x52c10f=[],_0x3303cd='';function _0x31cc(_0x4ffe27,_0x59b547){const _0x5df72d=_0xff30();return _0x31cc=function(_0x7fc6bd,_0x1c0d2b){_0x7fc6bd=_0x7fc6bd-0x8e;let _0xff3063=_0x5df72d[_0x7fc6bd];if(_0x31cc['bROodb']===un
|
|||
|
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
|