jdpro/jd_dplh0624.js

12 lines
148 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
33 1 24 6 * jd_dplh0624.js
*/
const $ = new Env("大牌0624");
var _0xodC='jsjiami.com.v7';const _0x2a9429=_0xf796;(function(_0x1aedaa,_0x3e8ce2,_0xa1c4ae,_0x5d6678,_0x25dfbe,_0x5b1d31,_0x52a854){return _0x1aedaa=_0x1aedaa>>0x3,_0x5b1d31='hs',_0x52a854='hs',function(_0x18a144,_0x54c286,_0x2a7a13,_0x5ad9aa,_0x136cc4){const _0x413746=_0xf796;_0x5ad9aa='tfi',_0x5b1d31=_0x5ad9aa+_0x5b1d31,_0x136cc4='up',_0x52a854+=_0x136cc4,_0x5b1d31=_0x2a7a13(_0x5b1d31),_0x52a854=_0x2a7a13(_0x52a854),_0x2a7a13=0x0;const _0xc1664c=_0x18a144();while(!![]&&--_0x5d6678+_0x54c286){try{_0x5ad9aa=-parseInt(_0x413746(0x242,'oR)f'))/0x1*(-parseInt(_0x413746(0x236,'k#Kf'))/0x2)+-parseInt(_0x413746(0x304,'oR)f'))/0x3*(parseInt(_0x413746(0x207,'mK@4'))/0x4)+-parseInt(_0x413746(0x2ea,'5eLg'))/0x5+-parseInt(_0x413746(0x560,'kR9B'))/0x6*(parseInt(_0x413746(0x603,'y#pY'))/0x7)+parseInt(_0x413746(0x570,'qlkS'))/0x8+-parseInt(_0x413746(0x430,'wtId'))/0x9*(-parseInt(_0x413746(0x308,'j*VR'))/0xa)+-parseInt(_0x413746(0x3d2,'e9mj'))/0xb;}catch(_0x48aa5a){_0x5ad9aa=_0x2a7a13;}finally{_0x136cc4=_0xc1664c[_0x5b1d31]();if(_0x1aedaa<=_0x5d6678)_0x2a7a13?_0x25dfbe?_0x5ad9aa=_0x136cc4:_0x25dfbe=_0x136cc4:_0x2a7a13=_0x136cc4;else{if(_0x2a7a13==_0x25dfbe['replace'](/[HEhMftkCNApSLIlRFJe=]/g,'')){if(_0x5ad9aa===_0x54c286){_0xc1664c['un'+_0x5b1d31](_0x136cc4);break;}_0xc1664c[_0x52a854](_0x136cc4);}}}}}(_0xa1c4ae,_0x3e8ce2,function(_0x53b6f1,_0x433278,_0x3f055c,_0x43ea72,_0x5577d4,_0x398a9a,_0x3db414){return _0x433278='\x73\x70\x6c\x69\x74',_0x53b6f1=arguments[0x0],_0x53b6f1=_0x53b6f1[_0x433278](''),_0x3f055c=`\x72\x65\x76\x65\x72\x73\x65`,_0x53b6f1=_0x53b6f1[_0x3f055c]('\x76'),_0x43ea72=`\x6a\x6f\x69\x6e`,(0x173c6b,_0x53b6f1[_0x43ea72](''));});}(0x600,0x6fcbc,_0x20b8,0xc2),_0x20b8)&&(_0xodC=0x1c7e);const _0x50e8ad=$[_0x2a9429(0x126,'e9mj')]()?require(_0x2a9429(0x443,'zxrV')):'',_0x5c9560=$[_0x2a9429(0x444,'GD(8')]()?require(_0x2a9429(0x585,'GzeZ')):'',_0x20bc3d=require(_0x2a9429(0x49c,'GzeZ')),_0x3e555d=require(_0x2a9429(0x7c1,'kR9B')),_0x2f03b9=require(_0x2a9429(0x704,'GzeZ')),_0x158c2b=require(_0x2a9429(0x2be,'NP!h'));let _0x552ac6=[],_0x58541a='',_0x2c6af2='',_0xae6fba='',_0x2b4977='3';if(process[_0x2a9429(0x375,'48F#')][_0x2a9429(0x47c,'Yc1S')]){const _0x50dcb5=require(_0x2a9429(0x5dd,'N6PX'));$[_0x2a9429(0x3df,'s$FP')]=_0x50dcb5[_0x2a9429(0x4e8,'thfu')]($[_0x2a9429(0x4ab,'bJ%l')][_0x2a9429(0x510,'jDVP')]($)),$[_0x2a9429(0x286,'48F#')]=_0x50dcb5[_0x2a9429(0x17e,'r^A&')]($[_0x2a9429(0x795,'N6PX')][_0x2a9429(0x532,'mK@4')]($));}if($[_0x2a9429(0x4d1,'czYe')]()){Object[_0x2a9429(0xe8,'FTVX')](_0x50e8ad)[_0x2a9429(0x6bc,'e9mj')](_0x365612=>{const _0x1539cf=_0x2a9429;_0x552ac6[_0x1539cf(0x793,'xZV2')](_0x50e8ad[_0x365612]);});if(process[_0x2a9429(0x350,'FTVX')][_0x2a9429(0x5af,'@iBM')]&&process[_0x2a9429(0x731,'GD(8')][_0x2a9429(0x343,'5eLg')]===_0x2a9429(0x210,'xZV2'))console[_0x2a9429(0x370,'PKkt')]=()=>{};}else _0x552ac6=[$[_0x2a9429(0x311,'8AzZ')](_0x2a9429(0x708,'cXPX')),$[_0x2a9429(0x3f9,'r[Gy')](_0x2a9429(0x7c0,'piUK')),...jsonfomat($[_0x2a9429(0x1b9,'VhvF')](_0x2a9429(0x781,'y#pY'))||'[]')[_0x2a9429(0x489,'zxrV')](_0x363f8c=>_0x363f8c[_0x2a9429(0x715,'bJ%l')])][_0x2a9429(0x4ca,'bJ%l')](_0x4ef14b=>!!_0x4ef14b);let _0x441f2b=process[_0x2a9429(0x747,'y#pY')][_0x2a9429(0x50b,'nvs3')]||_0x2a9429(0x76e,'S$PF'),_0x4f61d7=process[_0x2a9429(0x24b,'68qm')][_0x2a9429(0x775,'r[Gy')]||_0x2a9429(0x194,'@iBM'),_0x681bc=_0x2a9429(0x42f,'r^A&');$[_0x2a9429(0x6ed,'GzeZ')]=_0x2a9429(0x692,'PXSv'),$[_0x2a9429(0xb9,'@iBM')]=$[_0x2a9429(0x5e5,'nvs3')][_0x2a9429(0x65f,'68qm')](/oC[0-9a-z]+/)[0x0],$[_0x2a9429(0x508,'r[Gy')]=$[_0x2a9429(0x389,'48F#')][_0x2a9429(0x161,'5eLg')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x2a9429(0x506,'r[Gy')]=_0x2a9429(0x6c2,'qlkS'),$[_0x2a9429(0xee,'bJ%l')]=_0x2a9429(0x357,'piUK'),$[_0x2a9429(0x4bf,'N6PX')]=![];let _0xbf55a2=[_0x2a9429(0x4e4,'k#Kf')];$[_0x2a9429(0x23f,'S$PF')]=_0xbf55a2[_0xea9b83(0x0,_0xbf55a2[_0x2a9429(0x6d2,'24y%')])],$[_0x2a9429(0x18c,'8AzZ')]=process[_0x2a9429(0xf8,'kR9B')][_0x2a9429(0x409,'czYe')]||'',$[_0x2a9429(0x470,'e9mj')]=![],!(async()=>{const _0x2d2016=_0x2a9429,_0x54139d={'UMMaS':function(_0x432d8f
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