mirror of https://github.com/6dylan6/jdpro.git
12 lines
161 KiB
JavaScript
12 lines
161 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
20 9 1 8 * jd_dplh0801.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0801");
|
|||
|
var _0xodY='jsjiami.com.v7';const _0xf6f34a=_0x26b4;(function(_0x551caf,_0x5b22d4,_0x264ebb,_0x48603b,_0xd98d0c,_0x4ea94a,_0x25b87c){return _0x551caf=_0x551caf>>0x9,_0x4ea94a='hs',_0x25b87c='hs',function(_0x22fd3c,_0x46fcb5,_0x4e29f7,_0x268c7f,_0x151782){const _0x297712=_0x26b4;_0x268c7f='tfi',_0x4ea94a=_0x268c7f+_0x4ea94a,_0x151782='up',_0x25b87c+=_0x151782,_0x4ea94a=_0x4e29f7(_0x4ea94a),_0x25b87c=_0x4e29f7(_0x25b87c),_0x4e29f7=0x0;const _0x5722b8=_0x22fd3c();while(!![]&&--_0x48603b+_0x46fcb5){try{_0x268c7f=-parseInt(_0x297712(0x804,'gGO6'))/0x1+parseInt(_0x297712(0x172,'3%O*'))/0x2*(parseInt(_0x297712(0x136,'OK2J'))/0x3)+parseInt(_0x297712(0x296,'m]B#'))/0x4*(-parseInt(_0x297712(0x70f,'Fc%B'))/0x5)+parseInt(_0x297712(0x118,'DzAg'))/0x6+parseInt(_0x297712(0x71a,'YzKz'))/0x7*(-parseInt(_0x297712(0x482,'o6UU'))/0x8)+-parseInt(_0x297712(0x474,'qlxc'))/0x9*(-parseInt(_0x297712(0x6ac,'4nIt'))/0xa)+parseInt(_0x297712(0x399,'nqRE'))/0xb*(parseInt(_0x297712(0x314,'*LKz'))/0xc);}catch(_0x318ce6){_0x268c7f=_0x4e29f7;}finally{_0x151782=_0x5722b8[_0x4ea94a]();if(_0x551caf<=_0x48603b)_0x4e29f7?_0xd98d0c?_0x268c7f=_0x151782:_0xd98d0c=_0x151782:_0x4e29f7=_0x151782;else{if(_0x4e29f7==_0xd98d0c['replace'](/[FJQXnfLKqhMOStUgdbD=]/g,'')){if(_0x268c7f===_0x46fcb5){_0x5722b8['un'+_0x4ea94a](_0x151782);break;}_0x5722b8[_0x25b87c](_0x151782);}}}}}(_0x264ebb,_0x5b22d4,function(_0x3f7b65,_0x24599d,_0x514939,_0x4f947d,_0x41e290,_0x15c385,_0x2b15c8){return _0x24599d='\x73\x70\x6c\x69\x74',_0x3f7b65=arguments[0x0],_0x3f7b65=_0x3f7b65[_0x24599d](''),_0x514939=`\x72\x65\x76\x65\x72\x73\x65`,_0x3f7b65=_0x3f7b65[_0x514939]('\x76'),_0x4f947d=`\x6a\x6f\x69\x6e`,(0x17bd58,_0x3f7b65[_0x4f947d](''));});}(0x18600,0x49f00,_0x57d8,0xc5),_0x57d8)&&(_0xodY=0xc5);const _0x2d5e62=$[_0xf6f34a(0xa4,'iq1W')]()?require(_0xf6f34a(0x3c7,'gIP5')):'',_0x18094e=$[_0xf6f34a(0x320,'nqRE')]()?require(_0xf6f34a(0x24a,'gIP5')):'',_0x57cd6a=require(_0xf6f34a(0x185,'nDLn')),_0x1efbf4=require(_0xf6f34a(0x10e,'OK2J')),_0x5a9993=require(_0xf6f34a(0x723,'iI5q')),_0xd3f8c=require(_0xf6f34a(0x54c,'I2Z%'));let _0x1693af=[],_0x15175c='',_0x25a6f4='',_0x191957='',_0x44f3e1='3';if(process[_0xf6f34a(0x6c6,'y!6e')][_0xf6f34a(0x4cb,'tK9y')]){const _0xa5db01=require(_0xf6f34a(0x194,'AfuN'));$[_0xf6f34a(0x273,'y!6e')]=_0xa5db01[_0xf6f34a(0x325,'DzAg')]($[_0xf6f34a(0x7e8,'Nkg@')][_0xf6f34a(0x384,'ikof')]($)),$[_0xf6f34a(0x6a6,')DMx')]=_0xa5db01[_0xf6f34a(0x3c6,'I2Z%')]($[_0xf6f34a(0x295,'7e2a')][_0xf6f34a(0x157,'I2Z%')]($));}if($[_0xf6f34a(0x63a,'tK9y')]()){Object[_0xf6f34a(0x62b,'gIP5')](_0x2d5e62)[_0xf6f34a(0x2e0,'YzKz')](_0xa5b11e=>{const _0x5ca941=_0xf6f34a;_0x1693af[_0x5ca941(0x6fe,'CT3m')](_0x2d5e62[_0xa5b11e]);});if(process[_0xf6f34a(0x833,'cFCs')][_0xf6f34a(0x7a3,'OK2J')]&&process[_0xf6f34a(0x39f,'194)')][_0xf6f34a(0x4de,'1WOY')]===_0xf6f34a(0x3be,'tC*h'))console[_0xf6f34a(0x546,'*LKz')]=()=>{};}else _0x1693af=[$[_0xf6f34a(0x7fa,'Fc%B')](_0xf6f34a(0xde,'%kCS')),$[_0xf6f34a(0xd9,'AsTq')](_0xf6f34a(0x51d,'0G$r')),...jsonfomat($[_0xf6f34a(0x7e5,'![G0')](_0xf6f34a(0x56a,'7e2a'))||'[]')[_0xf6f34a(0x3d7,'cFCs')](_0x1b0d88=>_0x1b0d88[_0xf6f34a(0x83b,'%kCS')])][_0xf6f34a(0x55c,'AsTq')](_0x3ea0f3=>!!_0x3ea0f3);let _0x254687=process[_0xf6f34a(0x3a0,'medW')][_0xf6f34a(0x132,'%izu')]||_0xf6f34a(0x17f,'YzKz'),_0x1c94b9=process[_0xf6f34a(0x5c3,'TpUz')][_0xf6f34a(0x176,'Yl&1')]||_0xf6f34a(0x3c8,'medW'),_0x2cbc01=_0xf6f34a(0x442,'194)');$[_0xf6f34a(0x49a,'iI5q')]=_0xf6f34a(0x239,'DzAg'),$[_0xf6f34a(0x26f,'gIP5')]=$[_0xf6f34a(0x778,'AsTq')][_0xf6f34a(0x46b,'m]B#')](/oC[0-9a-z]+/)[0x0],$[_0xf6f34a(0x238,'0G$r')]=$[_0xf6f34a(0x513,'cFCs')][_0xf6f34a(0x6a3,'Y1NV')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0xf6f34a(0x31e,'gGO6')]=_0xf6f34a(0x5bf,'%izu'),$[_0xf6f34a(0x2fd,'c0h1')]=_0xf6f34a(0x200,'*LKz'),$[_0xf6f34a(0x4f7,'i1bO')]=![];let _0x341e83=[_0xf6f34a(0x5a4,'OK2J')];$[_0xf6f34a(0x19c,'Yl&1')]=_0x341e83[_0x32b34e(0x0,_0x341e83[_0xf6f34a(0xb8,'*LKz')])],$[_0xf6f34a(0x806,'m]B#')]=process[_0xf6f34a(0x9f,'gGO6')][_0xf6f34a(0x563,'I2Z%')]||'',$[_0xf6f34a(0x7b0,'tC*h')]=![],!(async()=>{const _0x27609a=_0xf6f34a,_
|
|||
|
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueF
|