faker3/jd_jrsign.js

9 lines
81 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
金融签到领取双签礼包
50 6 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_jrsign.js
* */
const $ = new Env('金融签到');
var _0xodU='jsjiami.com.v7';const _0x2085df=_0x2730;(function(_0x5314c0,_0x8fd47b,_0x27078d,_0xc230f4,_0x59087f,_0xd673e0,_0x1b9829){return _0x5314c0=_0x5314c0>>0x7,_0xd673e0='hs',_0x1b9829='hs',function(_0x1dd86d,_0x2c70e7,_0x5d7a5f,_0x25f4f5,_0x4040c3){const _0x41ce16=_0x2730;_0x25f4f5='tfi',_0xd673e0=_0x25f4f5+_0xd673e0,_0x4040c3='up',_0x1b9829+=_0x4040c3,_0xd673e0=_0x5d7a5f(_0xd673e0),_0x1b9829=_0x5d7a5f(_0x1b9829),_0x5d7a5f=0x0;const _0x188ae6=_0x1dd86d();while(!![]&&--_0xc230f4+_0x2c70e7){try{_0x25f4f5=parseInt(_0x41ce16(0x1a4,'p]$P'))/0x1*(parseInt(_0x41ce16(0x388,'0[Ci'))/0x2)+parseInt(_0x41ce16(0x1de,'YWY2'))/0x3*(parseInt(_0x41ce16(0x25a,'jvc$'))/0x4)+parseInt(_0x41ce16(0x280,'YWY2'))/0x5+-parseInt(_0x41ce16(0x4dc,'nS(N'))/0x6*(parseInt(_0x41ce16(0x46b,'nS(N'))/0x7)+parseInt(_0x41ce16(0x291,'YWY2'))/0x8*(-parseInt(_0x41ce16(0x45f,'yv(u'))/0x9)+parseInt(_0x41ce16(0x226,'44pZ'))/0xa+-parseInt(_0x41ce16(0x4a6,'KFtb'))/0xb;}catch(_0x2e887b){_0x25f4f5=_0x5d7a5f;}finally{_0x4040c3=_0x188ae6[_0xd673e0]();if(_0x5314c0<=_0xc230f4)_0x5d7a5f?_0x59087f?_0x25f4f5=_0x4040c3:_0x59087f=_0x4040c3:_0x5d7a5f=_0x4040c3;else{if(_0x5d7a5f==_0x59087f['replace'](/[XxuDOIfByEStRbrqWgPw=]/g,'')){if(_0x25f4f5===_0x2c70e7){_0x188ae6['un'+_0xd673e0](_0x4040c3);break;}_0x188ae6[_0x1b9829](_0x4040c3);}}}}}(_0x27078d,_0x8fd47b,function(_0x20a0e6,_0x5a464a,_0x1befb4,_0x35fa88,_0x48c71f,_0x348993,_0x5441dc){return _0x5a464a='\x73\x70\x6c\x69\x74',_0x20a0e6=arguments[0x0],_0x20a0e6=_0x20a0e6[_0x5a464a](''),_0x1befb4=`\x72\x65\x76\x65\x72\x73\x65`,_0x20a0e6=_0x20a0e6[_0x1befb4]('\x76'),_0x35fa88=`\x6a\x6f\x69\x6e`,(0x14e28d,_0x20a0e6[_0x35fa88](''));});}(0x6680,0x4e04b,_0xf4cf,0xcf),_0xf4cf)&&(_0xodU=_0x2085df(0x216,'1^ru'));const _0x3d3dca=$[_0x2085df(0x271,'U9)w')]()?require(_0x2085df(0x3c2,'wKk9')):'',_0x500d2e=_0x2085df(0x26e,'(^tD'),_0x4dc1e9=$[_0x2085df(0x424,'s)Wo')]()?require(_0x2085df(0x32c,'Vl^K')):'',_0x3613a3=$[_0x2085df(0x339,'@[dd')]()?require(_0x2085df(0x378,'1zL(')):'';let _0x5eb53a=[],_0xa39281='';if($[_0x2085df(0x382,'Agbj')]()){Object[_0x2085df(0x35f,'nS(N')](_0x3613a3)[_0x2085df(0x1eb,'*vGb')](_0x1a5dcd=>{const _0x12df9c=_0x2085df;_0x5eb53a[_0x12df9c(0x26a,'YWY2')](_0x3613a3[_0x1a5dcd]);});if(process[_0x2085df(0x314,'mDY!')][_0x2085df(0x1b0,'$A$*')]&&process[_0x2085df(0x22a,'KcHV')][_0x2085df(0x193,'V1&!')]===_0x2085df(0x308,'UXHE'))console[_0x2085df(0x4c3,'#cNV')]=()=>{};}else _0x5eb53a=[$[_0x2085df(0x406,'jvc$')](_0x2085df(0x484,'yv(u')),$[_0x2085df(0x283,'$A$*')](_0x2085df(0x342,'#cNV')),..._0x152bfb($[_0x2085df(0x195,'@[dd')](_0x2085df(0x4f5,'44pZ'))||'[]')[_0x2085df(0x423,'V1&!')](_0x2a652a=>_0x2a652a[_0x2085df(0x2c7,'@[dd')])][_0x2085df(0x474,'bM!%')](_0x31dc55=>!!_0x31dc55);!(async()=>{const _0x57b656=_0x2085df,_0x42cad7={'yVzJk':function(_0x18ffeb,_0xda409d){return _0x18ffeb+_0xda409d;},'sYeiq':function(_0x74a1c9,_0x1b127e){return _0x74a1c9+_0x1b127e;},'EQSmK':function(_0x25491c,_0x529ab4){return _0x25491c+_0x529ab4;},'QZOWZ':_0x57b656(0x3cf,'s)Wo'),'DSCdU':function(_0x41e861,_0x1a0c51){return _0x41e861===_0x1a0c51;},'VfWqb':_0x57b656(0x285,')dEU'),'RJnoc':function(_0x15407e,_0x2140e6){return _0x15407e===_0x2140e6;},'pDpdn':_0x57b656(0x1d9,'V1&!'),'clSTi':_0x57b656(0x42c,'WUtb'),'XmteY':_0x57b656(0x19f,'p]$P'),'jkJQU':_0x57b656(0x37d,'bi0Y'),'xohVN':_0x57b656(0x327,'Vl^K'),'NyLda':function(_0x364355){return _0x364355();},'iTneQ':function(_0x15a3e4,_0x50e965){return _0x15a3e4==_0x50e965;},'pZELT':_0x57b656(0x28b,'KFtb'),'JPhPl':_0x57b656(0x367,'0[Ci'),'Weiho':function(_0x89bb8e,_0xa6fc16){return _0x89bb8e<_0xa6fc16;},'TGHxF':function(_0x3215b4,_0xb48e3a){return _0x3215b4!==_0xb48e3a;},'ggchU':_0x57b656(0x38e,'KFtb'),'iGjri':function(_0xf562fd,_0x21f2b8){return _0xf562fd!==_0x21f2b8;},'KTdoO':_0x57b656(0x451,'EqTe'),'Fqnqj':_0x57b656(0x449,'UXHE'),'DGdmT':function(_0x3bbc66,_0x372647){return _0x3bbc66(_0x372647);},'tXPSv':function(_0x5ec374,_0x38bdfa){return _0x5ec374+_0x38bdfa;},'RmdHz':function(_0x15023d,_0x4d582b){return _0x15023d(_0x4d582b);},'NpGGP':_0x57b656(0x463,'bi0Y'),'cOqCE':function(_0x29a000,_0xa3e43c){retu
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