faker3/jd_car_sign.js

13 lines
76 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
车管家签到
cron:55 12 * * * jd_car_sign.js
*/
const $ = new Env('车管家签到')
var il='jsjiami.com.v7';var i1Ii11=iii1II;function iii1II(_0x107cf8,_0x58d9e4){var _0xc4d869=Iii11l();return iii1II=function(_0x449e5a,_0x544566){_0x449e5a=_0x449e5a-0x1aa;var _0x54122d=_0xc4d869[_0x449e5a];if(iii1II['RKjkCt']===undefined){var _0x1f5c5f=function(_0x3013d4){var _0x2cf505='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x606457='',_0x58c5e1='';for(var _0x20f414=0x0,_0x138372,_0x4e016c,_0x396d88=0x0;_0x4e016c=_0x3013d4['charAt'](_0x396d88++);~_0x4e016c&&(_0x138372=_0x20f414%0x4?_0x138372*0x40+_0x4e016c:_0x4e016c,_0x20f414++%0x4)?_0x606457+=String['fromCharCode'](0xff&_0x138372>>(-0x2*_0x20f414&0x6)):0x0){_0x4e016c=_0x2cf505['indexOf'](_0x4e016c);}for(var _0x263c86=0x0,_0x33aedf=_0x606457['length'];_0x263c86<_0x33aedf;_0x263c86++){_0x58c5e1+='%'+('00'+_0x606457['charCodeAt'](_0x263c86)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58c5e1);};var _0x455734=function(_0x1ff1cf,_0x6ed0a2){var _0x38940f=[],_0x29ce5a=0x0,_0x407275,_0x2ef744='';_0x1ff1cf=_0x1f5c5f(_0x1ff1cf);var _0x34a8ea;for(_0x34a8ea=0x0;_0x34a8ea<0x100;_0x34a8ea++){_0x38940f[_0x34a8ea]=_0x34a8ea;}for(_0x34a8ea=0x0;_0x34a8ea<0x100;_0x34a8ea++){_0x29ce5a=(_0x29ce5a+_0x38940f[_0x34a8ea]+_0x6ed0a2['charCodeAt'](_0x34a8ea%_0x6ed0a2['length']))%0x100,_0x407275=_0x38940f[_0x34a8ea],_0x38940f[_0x34a8ea]=_0x38940f[_0x29ce5a],_0x38940f[_0x29ce5a]=_0x407275;}_0x34a8ea=0x0,_0x29ce5a=0x0;for(var _0x532727=0x0;_0x532727<_0x1ff1cf['length'];_0x532727++){_0x34a8ea=(_0x34a8ea+0x1)%0x100,_0x29ce5a=(_0x29ce5a+_0x38940f[_0x34a8ea])%0x100,_0x407275=_0x38940f[_0x34a8ea],_0x38940f[_0x34a8ea]=_0x38940f[_0x29ce5a],_0x38940f[_0x29ce5a]=_0x407275,_0x2ef744+=String['fromCharCode'](_0x1ff1cf['charCodeAt'](_0x532727)^_0x38940f[(_0x38940f[_0x34a8ea]+_0x38940f[_0x29ce5a])%0x100]);}return _0x2ef744;};iii1II['zNMLWG']=_0x455734,_0x107cf8=arguments,iii1II['RKjkCt']=!![];}var _0x570f8d=_0xc4d869[0x0],_0x365464=_0x449e5a+_0x570f8d,_0x13a181=_0x107cf8[_0x365464];return!_0x13a181?(iii1II['gwJUfc']===undefined&&(iii1II['gwJUfc']=!![]),_0x54122d=iii1II['zNMLWG'](_0x54122d,_0x544566),_0x107cf8[_0x365464]=_0x54122d):_0x54122d=_0x13a181,_0x54122d;},iii1II(_0x107cf8,_0x58d9e4);}(function(lillI,Il11i,illl11,iiI1,Il11l,l1iiil,l1ilI){return lillI=lillI>>0x3,l1iiil='hs',l1ilI='hs',function(IIi1,illl1i,l1iiii,iiiIi1,illl1l){var l1ili=iii1II;iiiIi1='tfi',l1iiil=iiiIi1+l1iiil,illl1l='up',l1ilI+=illl1l,l1iiil=l1iiii(l1iiil),l1ilI=l1iiii(l1ilI),l1iiii=0x0;var Il11I=IIi1();while(!![]&&--iiI1+illl1i){try{iiiIi1=parseInt(l1ili(0x330,'rxeC'))/0x1*(-parseInt(l1ili(0x2b8,'abgT'))/0x2)+parseInt(l1ili(0x266,'xFzI'))/0x3+parseInt(l1ili(0x23a,'Xcc0'))/0x4+-parseInt(l1ili(0x1d6,'wle]'))/0x5+parseInt(l1ili(0x34f,'9G4)'))/0x6*(-parseInt(l1ili(0x1e7,'^LHA'))/0x7)+parseInt(l1ili(0x2c4,'Fdrl'))/0x8*(parseInt(l1ili(0x1ed,'*45%'))/0x9)+-parseInt(l1ili(0x2f3,'lAZk'))/0xa*(parseInt(l1ili(0x2aa,'u^Mf'))/0xb);}catch(li1lll){iiiIi1=l1iiii;}finally{illl1l=Il11I[l1iiil]();if(lillI<=iiI1)l1iiii?Il11l?iiiIi1=illl1l:Il11l=illl1l:l1iiii=illl1l;else{if(l1iiii==Il11l['replace'](/[YtfFuBwVDlHQLqEOyIAKGxN=]/g,'')){if(iiiIi1===illl1i){Il11I['un'+l1iiil](illl1l);break;}Il11I[l1ilI](illl1l);}}}}}(illl11,Il11i,function(lill1,IiIIl,IiIIi,li1lli,iiiIl1,I1i1I,IIl1){return IiIIl='\x73\x70\x6c\x69\x74',lill1=arguments[0x0],lill1=lill1[IiIIl](''),IiIIi=`\x72\x65\x76\x65\x72\x73\x65`,lill1=lill1[IiIIi]('\x76'),li1lli=`\x6a\x6f\x69\x6e`,(0x163aee,lill1[li1lli](''));});}(0x5f0,0x2d0fa,Iii11l,0xc0),Iii11l)&&(il=`\x6f3`);const jdCookie=require(i1Ii11(0x1ab,'Xf7e')),notify=require('./utils/Rebels_sendJDNotify'),common=require(i1Ii11(0x29c,'Dzj@')),{H5st}=require(i1Ii11(0x2b4,'fsR%')),isNotify=![];let cookie='';const cookiesArr=Object['keys'](jdCookie)['map'](llli1l=>jdCookie[llli1l])[i1Ii11(0x3cb,'msjk')](lI1ii1=>lI1ii1);!cookiesArr[0x0]&&($[i1Ii11(0x1c4,'@[9)')]($[i1Ii11(0x23b,'Dzj@')],i1Ii11(0x30f,'Fdrl')),process['exit'](0x1));!(async()=>{var l1iill=i1Ii11,llli1i={'RXYZg':function(iiI1l1,i11lI1){return iiI1l1<i11lI1;},'jofbW':function(liliiI,ilIIiI){return liliiI+ilIIiI;},'xQuzd':function(lIl1ii
// prettier-ignore
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