This commit is contained in:
2024 committed 2024-08-19 22:31:26 +08:00
1 parent 081eb17f2a
commit c7c94832c4
1 file changed
+2 -2
+2 -2
View File
@@ -1,6 +1,6 @@
/*
33 3,16 * * * jd_plantBean_help.js
*/
const $ = new Env('种豆得豆内部互助');
var _0xodF='jsjiami.com.v7';const _0x92fef6=_0xddd4;(function(_0x55264d,_0x16505d,_0x4a5f04,_0x3d7308,_0x3e50db,_0x227674,_0x5508a7){return _0x55264d=_0x55264d>>0x2,_0x227674='hs',_0x5508a7='hs',function(_0x53785d,_0x5d9de2,_0x1b3142,_0x38fa45,_0x3e7180){const _0x4aaad2=_0xddd4;_0x38fa45='tfi',_0x227674=_0x38fa45+_0x227674,_0x3e7180='up',_0x5508a7+=_0x3e7180,_0x227674=_0x1b3142(_0x227674),_0x5508a7=_0x1b3142(_0x5508a7),_0x1b3142=0x0;const _0x537784=_0x53785d();while(!![]&&--_0x3d7308+_0x5d9de2){try{_0x38fa45=parseInt(_0x4aaad2(0x34d,'BnnZ'))/0x1+parseInt(_0x4aaad2(0x3da,'*8Qe'))/0x2+parseInt(_0x4aaad2(0x199,'&KxS'))/0x3+parseInt(_0x4aaad2(0x3d0,'2PnR'))/0x4*(-parseInt(_0x4aaad2(0x24b,'BnnZ'))/0x5)+parseInt(_0x4aaad2(0x3b9,'Kvi4'))/0x6+-parseInt(_0x4aaad2(0x117,'44fW'))/0x7+-parseInt(_0x4aaad2(0x331,'ZD8c'))/0x8*(parseInt(_0x4aaad2(0x2d2,'&KxS'))/0x9);}catch(_0x41a2cb){_0x38fa45=_0x1b3142;}finally{_0x3e7180=_0x537784[_0x227674]();if(_0x55264d<=_0x3d7308)_0x1b3142?_0x3e50db?_0x38fa45=_0x3e7180:_0x3e50db=_0x3e7180:_0x1b3142=_0x3e7180;else{if(_0x1b3142==_0x3e50db['replace'](/[uMJwGLWXFEqnOtNSKbf=]/g,'')){if(_0x38fa45===_0x5d9de2){_0x537784['un'+_0x227674](_0x3e7180);break;}_0x537784[_0x5508a7](_0x3e7180);}}}}}(_0x4a5f04,_0x16505d,function(_0x510d9a,_0x1a0b02,_0x1b2b6a,_0x4e196d,_0x52c6c2,_0x423049,_0x44026b){return _0x1a0b02='\x73\x70\x6c\x69\x74',_0x510d9a=arguments[0x0],_0x510d9a=_0x510d9a[_0x1a0b02](''),_0x1b2b6a=`\x72\x65\x76\x65\x72\x73\x65`,_0x510d9a=_0x510d9a[_0x1b2b6a]('\x76'),_0x4e196d=`\x6a\x6f\x69\x6e`,(0x1779f2,_0x510d9a[_0x4e196d](''));});}(0x300,0xa5120,_0x1aea,0xc2),_0x1aea)&&(_0xodF=`\x074`);const _0x334733=(function(){const _0x40771d=_0xddd4,_0x4b499c={'qoopu':function(_0x4717fb,_0xae08bc){return _0x4717fb===_0xae08bc;},'ABBDG':_0x40771d(0x1ad,'BnnZ')};let _0xd9dd29=!![];return function(_0x177759,_0x2dfdf0){const _0x3ebb95=_0x40771d,_0x4e5c34={'eKREe':function(_0x5d8c1f,_0x4a1c47){const _0x4ac289=_0xddd4;return _0x4b499c[_0x4ac289(0x122,'Jj7U')](_0x5d8c1f,_0x4a1c47);},'FuAaS':_0x4b499c[_0x3ebb95(0x313,'Kvi4')]},_0x4a2fc6=_0xd9dd29?function(){const _0x2098a0=_0x3ebb95;if(_0x2dfdf0){if(_0x4e5c34[_0x2098a0(0x3e5,')mG&')](_0x4e5c34[_0x2098a0(0x344,'vtt)')],_0x4e5c34[_0x2098a0(0x11a,'2PnR')])){const _0x2de897=_0x2dfdf0[_0x2098a0(0x26f,'Jj7U')](_0x177759,arguments);return _0x2dfdf0=null,_0x2de897;}else{if(_0x264cf){const _0xc3f288=_0x4afa9a[_0x2098a0(0x2bb,'$T6c')](_0x597bcd,arguments);return _0x5396b6=null,_0xc3f288;}}}}:function(){};return _0xd9dd29=![],_0x4a2fc6;};}()),_0x227c4e=_0x334733(this,function(){const _0x54734a=_0xddd4,_0x1f8658={'BEQyO':_0x54734a(0x408,'$T6c')};return _0x227c4e[_0x54734a(0x40f,'j8Dk')]()[_0x54734a(0x3bd,'Jj7U')](_0x1f8658[_0x54734a(0x2e7,'&r54')])[_0x54734a(0x1d1,'iVha')]()[_0x54734a(0x309,'0w8S')](_0x227c4e)[_0x54734a(0x15b,'Jy8U')](_0x1f8658[_0x54734a(0x109,'44fW')]);});_0x227c4e();let _0x233a3f=!![],_0x4cabc4=[],_0xbd4f2a='',_0x5f0e7d,_0x35bb1f=[],_0x37544f=[],_0x34fee9=[];const _0x57df0f=require('fs'),_0x1f2753=require(_0x92fef6(0x233,'s4&Q')),_0x4e1305=_0x92fef6(0x3d6,'xkW*'),_0x16fb84=process[_0x92fef6(0x376,'2PnR')][_0x92fef6(0x362,'6Wdz')]?process[_0x92fef6(0x1db,'0w8S')][_0x92fef6(0x307,'!T!x')]*0x1:0x7d0;let _0xc12e0b=new Date()[_0x92fef6(0x30e,'&r54')](),_0x53ea98=!![];$[_0x92fef6(0x14b,'j8Dk')]()&&process[_0x92fef6(0x297,'*8Qe')][_0x92fef6(0x317,'Jj7U')]&&(process[_0x92fef6(0x410,'ualj')][_0x92fef6(0x154,'!DLk')]==_0x92fef6(0x373,'cSzD')&&(_0xc12e0b>0x9&&(_0x53ea98=![],console[_0x92fef6(0x1d7,'DKHq')](_0x92fef6(0x361,'e@^H')))));$[_0x92fef6(0x262,'oEmX')]=0x1,!(async()=>{const _0x2427de=_0x92fef6,_0x3cba9e={'pTohT':function(_0x65352e,_0x394e13){return _0x65352e(_0x394e13);},'voCnS':_0x2427de(0x354,'*8Qe'),'umVNC':function(_0x5bce34){return _0x5bce34();},'sKYkW':_0x2427de(0x2fd,'ntuq'),'LknTj':_0x2427de(0x2c4,'BnnZ'),'oQTcx':function(_0x55b020,_0x6eaa7){return _0x55b020<_0x6eaa7;},'jDbvi':function(_0x1cee3c,_0x546f57){return _0x1cee3c+_0x546f57;},'Bbbcy':function(_0x4755f8,_0x2b36bb){return _0x4755f8(_0x2b36bb);},'OPWle':_0x2427de(0x217,'Kvi4'),'XOupf':function(_0x3f37ae,_0x5edfdd){return _0x3f37ae===_0x5edfdd;},'FThuX':_0x2427de(0x374,'u^te'),'ZSvmB':function(_0x98edc8){return _0x98edc8();},'yGjiG':function(_0x3f06f9,_0x143d86){return _0x3f06f9==_0x143d86;},'qHOJf':function(_0x84ea79,_0x5f2ebb){return _0x84ea79===_0x5f2ebb;},'KReZq':_0x2427de(0x402,')mG&'),'RVIoB':_0x2427de(0x35b,'oEmX'),'fDenI':function(_0x4e7670){return _0x4e7670();}};await _0x3cba9e[_0x2427de(0x377,'!DLk')](_0xe540f9);if(!_0x4cabc4[0x0]){$[_0x2427de(0x2f1,'u^te')]($[_0x2427de(0x2b8,'ZD8c')],_0x3cba9e[_0x2427de(0x34c,'ZCfh')],_0x3cba9e[_0x2427de(0x24c,'$T6c')],{'open-url':_0x3cba9e[_0x2427de(0x3a6,'m!pj')]});return;}for(let _0x2967c3=0x0;_0x3cba9e[_0x2427de(0x37e,'m!pj')](_0x2967c3,_0x4cabc4[_0x2427de(0x3d8,'2caz')]);_0x2967c3++){if(_0x4cabc4[_0x2967c3]){_0xbd4f2a=_0x4cabc4[_0x2967c3],$[_0x2427de(0x3e3,'Kvi4')]=_0x3cba9e[_0x2427de(0x311,'0w8S')](decodeURIComponent,_0xbd4f2a[_0x2427de(0x15aLine truncated
const $ = new Env('种豆得豆互助');
var _0xodN='jsjiami.com.v7';const _0x4bc5ac=_0x5aec;(function(_0x3d9db1,_0xda35ea,_0xa289bb,_0x4228e3,_0x17a2ce,_0x5c88f3,_0xaca285){return _0x3d9db1=_0x3d9db1>>0x4,_0x5c88f3='hs',_0xaca285='hs',function(_0x5637e4,_0x53c1ab,_0x24ce2a,_0x17fb32,_0xa93494){const _0x2cf07b=_0x5aec;_0x17fb32='tfi',_0x5c88f3=_0x17fb32+_0x5c88f3,_0xa93494='up',_0xaca285+=_0xa93494,_0x5c88f3=_0x24ce2a(_0x5c88f3),_0xaca285=_0x24ce2a(_0xaca285),_0x24ce2a=0x0;const _0x969c0=_0x5637e4();while(!![]&&--_0x4228e3+_0x53c1ab){try{_0x17fb32=-parseInt(_0x2cf07b(0x311,'f(J6'))/0x1*(parseInt(_0x2cf07b(0x325,'T1q$'))/0x2)+parseInt(_0x2cf07b(0x130,'zprv'))/0x3*(parseInt(_0x2cf07b(0x287,'b6Qo'))/0x4)+parseInt(_0x2cf07b(0xe6,'!I2r'))/0x5+parseInt(_0x2cf07b(0x392,'4GOY'))/0x6+-parseInt(_0x2cf07b(0xae,'pN$q'))/0x7*(parseInt(_0x2cf07b(0x160,'pN$q'))/0x8)+-parseInt(_0x2cf07b(0x235,'hkw7'))/0x9*(-parseInt(_0x2cf07b(0x2a1,'kyRy'))/0xa)+-parseInt(_0x2cf07b(0xb6,'E*SQ'))/0xb*(-parseInt(_0x2cf07b(0x2b6,'yhUw'))/0xc);}catch(_0x5b9817){_0x17fb32=_0x24ce2a;}finally{_0xa93494=_0x969c0[_0x5c88f3]();if(_0x3d9db1<=_0x4228e3)_0x24ce2a?_0x17a2ce?_0x17fb32=_0xa93494:_0x17a2ce=_0xa93494:_0x24ce2a=_0xa93494;else{if(_0x24ce2a==_0x17a2ce['replace'](/[EQDAkfMOTWYbRdFtUxBrugp=]/g,'')){if(_0x17fb32===_0x53c1ab){_0x969c0['un'+_0x5c88f3](_0xa93494);break;}_0x969c0[_0xaca285](_0xa93494);}}}}}(_0xa289bb,_0xda35ea,function(_0x3da248,_0x5a9615,_0xff1abb,_0xd3ee38,_0x9b14,_0x302ddf,_0x43f5f3){return _0x5a9615='\x73\x70\x6c\x69\x74',_0x3da248=arguments[0x0],_0x3da248=_0x3da248[_0x5a9615](''),_0xff1abb=`\x72\x65\x76\x65\x72\x73\x65`,_0x3da248=_0x3da248[_0xff1abb]('\x76'),_0xd3ee38=`\x6a\x6f\x69\x6e`,(0x17eee6,_0x3da248[_0xd3ee38](''));});}(0xc80,0xdb287,_0x5007,0xca),_0x5007)&&(_0xodN=_0x5007);const _0x252ba5=(function(){let _0x1b69b4=!![];return function(_0x284817,_0xdbd147){const _0x1fec91=_0x1b69b4?function(){const _0x3168c2=_0x5aec;if(_0xdbd147){const _0xc92dd8=_0xdbd147[_0x3168c2(0x221,'dtr)')](_0x284817,arguments);return _0xdbd147=null,_0xc92dd8;}}:function(){};return _0x1b69b4=![],_0x1fec91;};}()),_0x50a548=_0x252ba5(this,function(){const _0x309444=_0x5aec,_0x367be6={'yPEpa':_0x309444(0x323,'x)Ti')};return _0x50a548[_0x309444(0x174,'UC)i')]()[_0x309444(0xc2,'Jz9S')](_0x367be6[_0x309444(0x1b4,'Y7y6')])[_0x309444(0x2b5,'E^!W')]()[_0x309444(0x28f,'2v]E')](_0x50a548)[_0x309444(0x3b6,'yhUw')](_0x367be6[_0x309444(0x309,'kyRy')]);});_0x50a548();let _0x2bfb75=!![],_0x51dd75=[],_0x2e5723='',_0x501c90,_0x2d659d=[],_0x4e17c2=[],_0x1866a7=[];const _0x408f74=require('fs'),_0x4ca228=require(_0x4bc5ac(0x274,'x)Ti')),_0xe85a22=_0x4bc5ac(0x3c2,'k1nL'),_0x4d94e9=process[_0x4bc5ac(0x1a2,'Khbt')][_0x4bc5ac(0x124,'v0yf')]?process[_0x4bc5ac(0xaa,')tDX')][_0x4bc5ac(0x2d9,'yhUw')]*0x1:0x7d0;let _0xe70e52=!![];function _0x5aec(_0x2d6349,_0xd61937){const _0xeb748f=_0x5007();return _0x5aec=function(_0x15d717,_0x2416c5){_0x15d717=_0x15d717-0x76;let _0x500701=_0xeb748f[_0x15d717];if(_0x5aec['OLsxTA']===undefined){var _0x5aec51=function(_0x280809){const _0x319e75='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56d6e9='',_0x11237d='',_0x520908=_0x56d6e9+_0x5aec51;for(let _0x31cc5d=0x0,_0x37736c,_0x2c8791,_0x5e2daf=0x0;_0x2c8791=_0x280809['charAt'](_0x5e2daf++);~_0x2c8791&&(_0x37736c=_0x31cc5d%0x4?_0x37736c*0x40+_0x2c8791:_0x2c8791,_0x31cc5d++%0x4)?_0x56d6e9+=_0x520908['charCodeAt'](_0x5e2daf+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37736c>>(-0x2*_0x31cc5d&0x6)):_0x31cc5d:0x0){_0x2c8791=_0x319e75['indexOf'](_0x2c8791);}for(let _0x22779d=0x0,_0x2593f4=_0x56d6e9['length'];_0x22779d<_0x2593f4;_0x22779d++){_0x11237d+='%'+('00'+_0x56d6e9['charCodeAt'](_0x22779d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11237d);};const _0x39e572=function(_0x5e732f,_0x534fab){let _0x571f77=[],_0x13c972=0x0,_0x12b686,_0x16f67e='';_0x5e732f=_0x5aec51(_0x5e732f);let _0x26d57b;for(_0x26d57b=0x0;_0x26d57b<0x100;_0x26d57b++){_0x571f77[_0x26d57b]=_0x26d57b;}for(_0x26d57b=0x0;_0x26d57b<0x100;_0x26d57b++){_0x13c972=(_0x13c972+_0x571f77[_0x26d57b]+_0x534fab['charCodeAt'](_0x26d57b%_0x534fab['length']))%0x100,_0x12b686=_0x571f77[_0x26d57b],_0x571f77[_0x26d57b]=_0x571f77[_0x13c972],_0x571f77[_0x13c972]=_0x12b686;}_0x26d57b=0x0,_0x13c972=0x0;for(let _0x470853=0x0;_0x470853<_0x5e732f['length'];_0x470853++){_0x26d57b=(_0x26d57b+0x1)%0x100,_0x13c972=(_0x13c972+_0x571f77[_0x26d57b])%0x100,_0x12b686=_0x571f77[_0x26d57b],_0x571f77[_0x26d57b]=_0x571f77[_0x13c972],_0x571f77[_0x13c972]=_0x12b686,_0x16f67e+=String['fromCharCode'](_0x5e732f['charCodeAt'](_0x470853)^_0x571f77[(_0x571f77[_0x26d57b]+_0x571f77[_0x13c972])%0x100]);}return _0x16f67e;};_0x5aec['OEFAom']=_0x39e572,_0x2d6349=arguments,_0x5aec['OLsxTA']=!![];}const _0x1af8d3=_0xeb748f[0x0],_0x22109b=_0x15d717+_0x1af8d3,_0x34cb7d=_0x2d6349[_0x22109b];if(!_0x34cb7d){if(_0x5aec['mXIbvV']===undefined){const _0x265176=function(_0x5a4a4c){this['XxmhbA']=_0x5a4a4c,this['WMqAsa']=[0x1,0x0,0x0],this['DmugGd']=function(){return'newState';},this['SYMvTLine truncated
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated