jdpro/jd_mpdz_car.js

14 lines
97 KiB
JavaScript
Raw Normal View History

2024-01-02 12:59:48 +00:00
/*
头文字J
活动快捷入口 19:/JP5loICDei3Jng
日常任务助力游戏
第一个账号助力作者 其他依次助力CK1
默认不做加购任务如需要设置变量erport car_addsku='true'
默认前5个CK变量car_num='10'
定时随机一起冲会炸
*/
const $ = new Env("头文字JJJ");
var version_='jsjiami.com.v7';const _0x3aefb7=_0x18a7;(function(_0x2c74e7,_0x3e33b4,_0x390ac7,_0x3218d0,_0x204d95,_0x24ea14,_0x22a2c7){return _0x2c74e7=_0x2c74e7>>0x4,_0x24ea14='hs',_0x22a2c7='hs',function(_0x3fb509,_0x48d3c6,_0x56c214,_0x5764c0,_0x3df09a){const _0x5351c1=_0x18a7;_0x5764c0='tfi',_0x24ea14=_0x5764c0+_0x24ea14,_0x3df09a='up',_0x22a2c7+=_0x3df09a,_0x24ea14=_0x56c214(_0x24ea14),_0x22a2c7=_0x56c214(_0x22a2c7),_0x56c214=0x0;const _0x1098ab=_0x3fb509();while(!![]&&--_0x3218d0+_0x48d3c6){try{_0x5764c0=-parseInt(_0x5351c1(0x437,'htyN'))/0x1+-parseInt(_0x5351c1(0x1d6,'xVxE'))/0x2+-parseInt(_0x5351c1(0x1b0,'MK$I'))/0x3+-parseInt(_0x5351c1(0x216,'4B32'))/0x4*(-parseInt(_0x5351c1(0x241,'yjTC'))/0x5)+parseInt(_0x5351c1(0x269,')UeU'))/0x6*(-parseInt(_0x5351c1(0x487,'tarF'))/0x7)+-parseInt(_0x5351c1(0x211,'#HX('))/0x8*(-parseInt(_0x5351c1(0x26a,'$&3H'))/0x9)+-parseInt(_0x5351c1(0x46c,'@gdM'))/0xa*(-parseInt(_0x5351c1(0x227,'S1rE'))/0xb);}catch(_0x14e3e1){_0x5764c0=_0x56c214;}finally{_0x3df09a=_0x1098ab[_0x24ea14]();if(_0x2c74e7<=_0x3218d0)_0x56c214?_0x204d95?_0x5764c0=_0x3df09a:_0x204d95=_0x3df09a:_0x56c214=_0x3df09a;else{if(_0x56c214==_0x204d95['replace'](/[DyRLIAWCNtMrPVHEBX=]/g,'')){if(_0x5764c0===_0x48d3c6){_0x1098ab['un'+_0x24ea14](_0x3df09a);break;}_0x1098ab[_0x22a2c7](_0x3df09a);}}}}}(_0x390ac7,_0x3e33b4,function(_0x460a78,_0x4ed2de,_0x53aec1,_0x4c6bfa,_0x47cf60,_0x33c558,_0x2fca7d){return _0x4ed2de='\x73\x70\x6c\x69\x74',_0x460a78=arguments[0x0],_0x460a78=_0x460a78[_0x4ed2de](''),_0x53aec1=`\x72\x65\x76\x65\x72\x73\x65`,_0x460a78=_0x460a78[_0x53aec1]('\x76'),_0x4c6bfa=`\x6a\x6f\x69\x6e`,(0x12685a,_0x460a78[_0x4c6bfa](''));});}(0xcc0,0xce720,_0x277e,0xce),_0x277e)&&(version_=_0x277e);const _0xdfcda=$[_0x3aefb7(0x434,'tarF')]()?require(_0x3aefb7(0x3a4,'T^yI')):'',_0x456c8c=$[_0x3aefb7(0x47b,'!]Ie')]()?require(_0x3aefb7(0x598,'ONR^')):'',_0x4181b1=require(_0x3aefb7(0x4e2,'p1Ve'));let _0x5e6789=[],_0x506e7e='';if($[_0x3aefb7(0x32c,'5yFo')]()){Object[_0x3aefb7(0x517,'k&Q1')](_0xdfcda)[_0x3aefb7(0x282,'2hFG')](_0x561e6b=>{const _0x3fd977=_0x3aefb7;_0x5e6789[_0x3fd977(0x2e3,'%L#C')](_0xdfcda[_0x561e6b]);});if(process[_0x3aefb7(0x2a3,'%L#C')][_0x3aefb7(0x440,'$&3H')]&&process[_0x3aefb7(0x293,'yjTC')][_0x3aefb7(0x20f,'Mbe5')]===_0x3aefb7(0x530,'foPR'))console[_0x3aefb7(0x59b,'4B32')]=()=>{};}else _0x5e6789=[$[_0x3aefb7(0x4f3,'S1rE')](_0x3aefb7(0x1c0,'u2b!')),$[_0x3aefb7(0x2db,'%545')](_0x3aefb7(0x4c5,'lbQz')),..._0x2dd3fb($[_0x3aefb7(0x4fb,'50)V')](_0x3aefb7(0x278,'4JJR'))||'[]')[_0x3aefb7(0x50f,'htyN')](_0x23bb58=>_0x23bb58[_0x3aefb7(0x56a,'S1rE')])][_0x3aefb7(0x4b1,']xkE')](_0x405ffa=>!!_0x405ffa);allMessage='',message='',$[_0x3aefb7(0x468,'5yFo')]=![],$[_0x3aefb7(0x221,'T^yI')]=![];let _0x15ded6=[_0x3aefb7(0x3bf,']xkE'),_0x3aefb7(0x3a3,'J!eH'),_0x3aefb7(0x37e,'jxpd'),_0x3aefb7(0x1af,'R86!'),_0x3aefb7(0x399,'u2b!'),_0x3aefb7(0x43e,'gO9$'),_0x3aefb7(0x389,'tarF'),_0x3aefb7(0x44f,'#HX('),_0x3aefb7(0x338,'#HX('),_0x3aefb7(0x475,'4UOB')],_0x30c0a0=0x0;_0x30c0a0=Math[_0x3aefb7(0x231,'T^yI')](Math[_0x3aefb7(0x1de,'ONR^')]()*_0x15ded6[_0x3aefb7(0x25a,'nC2u')]);let _0x1f300e=_0x15ded6[_0x30c0a0]||'',_0x1a6ffe=process[_0x3aefb7(0x49c,'7PM3')][_0x3aefb7(0x1f0,'k&Q1')]||'5';!(async()=>{const _0x5d749a=_0x3aefb7,_0x35c2bb={'OHVTf':_0x5d749a(0x2ca,'xVxE'),'XOvOW':function(_0x220b18,_0x12681b){return _0x220b18!==_0x12681b;},'ibYWL':_0x5d749a(0x509,'3)Cm'),'QJiTk':_0x5d749a(0x3e0,'5yFo'),'zTiTh':_0x5d749a(0x32a,'!]Ie'),'JKxKM':_0x5d749a(0x3a5,'R86!'),'RiXyS':_0x5d749a(0x1a8,'mIJm'),'xXptb':function(_0x3a918b,_0x2c54e2){return _0x3a918b<_0x2c54e2;},'cOGIy':function(_0x3131db,_0x484a61){return _0x3131db(_0x484a61);},'iSOJY':function(_0x36bea5,_0x1c2063){return _0x36bea5+_0x1c2063;},'IRJtt':function(_0x315c43){return _0x315c43();},'zmHRh':function(_0x3c7eea){return _0x3c7eea();},'qkoyO':_0x5d749a(0x524,'(43@'),'FJqhZ':function(_0x54dcc5,_0x49e596){return _0x54dcc5+_0x49e596;}};console[_0x5d749a(0x3b3,'J!eH')](_0x35c2bb[_0x5d749a(0x3d7,'foPR')]);if(!_0x5e6789[0x0]){if(_0x35c2bb[_0x5d749a(0x28e,'i0y*')](_0x35c2bb[_0x5d749a(0x526,'mIJm')]
var _0xodu='jsjiami.com.v6',_0xodu_=['_0xodu'],_0x41f4=[_0xodu,'\x62\x79\x76\x43\x6b\x4d\x4b\x47\x47\x43\x33\x43\x71\x41\x3d\x3d','\x77\x34\x38\x70\x55\x38\x4f\x5a\x52\x51\x3d\x3d','\x77\x34\x7a\x43\x76\x73\x4f\x57\x61\x4d\x4f\x4c\x62\x51\x3d\x3d','\x77\x37\x74\x43\x77\x37\x58\x43\x6f\x38\x4f\x32\x77\x72\x39\x6f','\x77\x71\x37\x44\x6a\x63\x4f\x37\x77\x34\x7a\x44\x73\x77\x3d\x3d','\x64\x46\x41\x2b\x77\x35\x66\x44\x71\x41\x3d\x3d','\x77\x70\x2f\x44\x6e\x4d\x4f\x7a\x77\x35\x41\x4d','\x58\x73\x4f\x62\x77\x6f\x63\x3d','\x59\x63\x4f\x6c\x77\x34\x44\x43\x69\x42\x4c\x44\x6c\x55\x56\x30\x66\x79\x45\x50\x66\x44\x4d\x43\x4c\x73\x4b\x6c\x62\x73\x4b\x58','\x50\x38\x4f\x30\x77\x6f\x64\x32\x45\x48\x76\x43\x76\x73\x4f\x42\x41\x4d\x4b\x4f\x50\x73\x4b\x6b\x53\x63\x4f\x4d\x77\x35\x39\x30\x77\x72\x62\x44\x6b\x68\x41\x6f\x77\x72\x63\x54\x77\x36\x4c\x44\x6e\x38\x4f\x5a\x77\x70\x56\x33\x77\x37\x52\x75\x50\x51\x38\x58','\x77\x6f\x2f\x44\x73\x77\x68\x6f\x77\x71\x55\x62\x77\x70\x51\x3d','\x49\x77\x33\x44\x68\x6c\x50\x43\x71\x67\x3d\x3d','\x61\x73\x4b\x35\x65\x4d\x4b\x57\x77\x71\x76\x43\x6d\x63\x4b\x44','\x77\x36\x7a\x44\x68\x4d\x4b\x4b\x77\x34\x72\x44\x6c\x51\x3d\x3d','\x50\x73\x4f\x52\x42\x4d\x4b\x6b\x57\x41\x3d\x3d','\x77\x72\x54\x43\x68\x51\x54\x43\x6e\x69\x73\x3d','\x63\x6e\x6a\x44\x73\x67\x3d\x3d','\x53\x31\x50\x43\x69\x33\x48\x44\x76\x30\x78\x35\x46\x4d\x4b\x4d\x4e\x4d\x4f\x61','\x77\x36\x70\x31\x55\x32\x55\x2f\x77\x70\x66\x43\x6f\x63\x4b\x70\x77\x37\x67\x3d','\x77\x72\x50\x43\x76\x38\x4b\x57','\x4b\x73\x4f\x36\x77\x6f\x4e\x75\x41\x43\x4c\x43\x76\x73\x4b\x34\x56\x38\x4b\x61\x4d\x73\x4f\x6f\x52\x63\x4f\x6f\x77\x6f\x5a\x2f\x77\x37\x51\x3d','\x77\x34\x6a\x43\x76\x73\x4f\x58\x59\x73\x4f\x32\x63\x57\x54\x43\x74\x4d\x4f\x6b\x77\x36\x72\x44\x74\x77\x3d\x3d','\x54\x7a\x59\x47\x77\x35\x6a\x44\x71\x77\x3d\x3d','\x77\x71\x51\x4d\x77\x70\x54\x44\x6b\x56\x6f\x3d','\x77\x34\x45\x46\x77\x71\x6e\x44\x69\x67\x3d\x3d','\x64\x55\x77\x49\x77\x35\x48\x44\x6b\x33\x34\x3d','\x77\x6f\x44\x44\x71\x73\x4b\x76\x5a\x78\x77\x3d','\x57\x79\x59\x58\x77\x36\x50\x44\x68\x73\x4f\x31','\x6a\x72\x73\x56\x6a\x46\x69\x52\x61\x70\x46\x45\x5a\x6d\x69\x2e\x50\x6c\x77\x63\x6f\x56\x75\x6d\x57\x50\x2e\x76\x36\x3d\x3d'];if(function(_0x228b1c,_0x5a7f3c,_0x4f4eb2){function _0x2bfefd(_0x52acb3,_0x4fd5c6,_0x143505,_0x519166,_0x1cfdce,_0x32b7de){_0x4fd5c6=_0x4fd5c6>>0x8,_0x1cfdce='po';var _0x4f808d='shift',_0x151be3='push',_0x32b7de='';if(_0x4fd5c6<_0x52acb3){while(--_0x52acb3){_0x519166=_0x228b1c[_0x4f808d]();if(_0x4fd5c6===_0x52acb3&&_0x32b7de===''&&_0x32b7de['length']===0x1){_0x4fd5c6=_0x519166,_0x143505=_0x228b1c[_0x1cfdce+'p']();}else if(_0x4fd5c6&&_0x143505['replace'](/[rVFRpFEZPlwVuWP=]/g,'')===_0x4fd5c6){_0x228b1c[_0x151be3](_0x519166);}}_0x228b1c[_0x151be3](_0x228b1c[_0x4f808d]());}return 0x12795d;};function _0x1f8bf8(){var _0x3a6d29={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ac60b,_0x51a44a,_0x14d7ae,_0x1e60b2){_0x1e60b2=_0x1e60b2||{};var _0x566bf2=_0x51a44a+'='+_0x14d7ae;var _0x46c487=0x0;for(var _0x46c487=0x0,_0x4ce3c8=_0x3ac60b['length'];_0x46c487<_0x4ce3c8;_0x46c487++){var _0xd7a618=_0x3ac60b[_0x46c487];_0x566bf2+=';\x20'+_0xd7a618;var _0x248d63=_0x3ac60b[_0xd7a618];_0x3ac60b['push'](_0x248d63);_0x4ce3c8=_0x3ac60b['length'];if(_0x248d63!==!![]){_0x566bf2+='='+_0x248d63;}}_0x1e60b2['cookie']=_0x566bf2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38f4d9,_0x374971){_0x38f4d9=_0x38f4d9||function(_0x442d3a){return _0x442d3a;};var _0x4e416f=_0x38f4d9(new RegExp('(?:^|;\x20)'+_0x374971['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x4ae32e=typeof _0xodu=='undefined'?'undefined':_0xodu,_0x3bec85=_0x4ae32e['split'](''),_0x3ed3c5=_0x3bec85['length'],_0x30c94a=_0x3ed3c5-0xe,_0x503fa6;while(_0x503fa6=_0x3bec85['pop']()){_0x3ed3c5&&(_0x30c94a+=_0x503fa6['charCodeAt']());}var _0x4afa82=function(_0x304ba0,_0x456ac0,_0x1476f9){_0x304ba0(++_0x456ac0,_0x1476f9);};_0x30c94a^-_0x3ed3c5===-0x524&&(_0x503fa6=_0x30c94a)&&_0x4afa82(_0x2bfefd,_0x5a7f3c,_0x4f4eb2);return _0x503fa6>>0x2===0x14b&&_0x4e416f?decodeURIComponent(_0x4e416f[0
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"])