jdpro/jd_dplh0710.js

12 lines
144 KiB
JavaScript
Raw Normal View History

2024-07-10 01:47:44 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
10 10 10 7 * jd_dplh0710.js
*/
2024-07-10 01:58:18 +00:00
const $ = new Env("大牌0710");
2024-07-10 01:47:44 +00:00
var _0xod6='jsjiami.com.v7';const _0xb874a3=_0x2e5e;(function(_0x6868f8,_0x3a1641,_0x394523,_0x2fd3f3,_0x10dd66,_0x27d76c,_0x34ea04){return _0x6868f8=_0x6868f8>>0x6,_0x27d76c='hs',_0x34ea04='hs',function(_0x99418e,_0x2799d3,_0x100e11,_0x3bda9c,_0x4560dd){const _0x212204=_0x2e5e;_0x3bda9c='tfi',_0x27d76c=_0x3bda9c+_0x27d76c,_0x4560dd='up',_0x34ea04+=_0x4560dd,_0x27d76c=_0x100e11(_0x27d76c),_0x34ea04=_0x100e11(_0x34ea04),_0x100e11=0x0;const _0x4b6a21=_0x99418e();while(!![]&&--_0x2fd3f3+_0x2799d3){try{_0x3bda9c=-parseInt(_0x212204(0x140,'0hVo'))/0x1*(parseInt(_0x212204(0x280,'2gK$'))/0x2)+parseInt(_0x212204(0x222,'*KNY'))/0x3*(-parseInt(_0x212204(0x79f,'*kVW'))/0x4)+-parseInt(_0x212204(0x790,'9ZSg'))/0x5+-parseInt(_0x212204(0x53c,'MkD#'))/0x6+-parseInt(_0x212204(0x2ce,'vFR7'))/0x7+parseInt(_0x212204(0x1c1,'ER^^'))/0x8+parseInt(_0x212204(0x17d,'w*ey'))/0x9;}catch(_0x448d0d){_0x3bda9c=_0x100e11;}finally{_0x4560dd=_0x4b6a21[_0x27d76c]();if(_0x6868f8<=_0x2fd3f3)_0x100e11?_0x10dd66?_0x3bda9c=_0x4560dd:_0x10dd66=_0x4560dd:_0x100e11=_0x4560dd;else{if(_0x100e11==_0x10dd66['replace'](/[OtewRTEqfNbYIBFAdCWh=]/g,'')){if(_0x3bda9c===_0x2799d3){_0x4b6a21['un'+_0x27d76c](_0x4560dd);break;}_0x4b6a21[_0x34ea04](_0x4560dd);}}}}}(_0x394523,_0x3a1641,function(_0x22002d,_0x38c8ab,_0x5bae90,_0x36058c,_0x563260,_0x5abb35,_0x48f914){return _0x38c8ab='\x73\x70\x6c\x69\x74',_0x22002d=arguments[0x0],_0x22002d=_0x22002d[_0x38c8ab](''),_0x5bae90=`\x72\x65\x76\x65\x72\x73\x65`,_0x22002d=_0x22002d[_0x5bae90]('\x76'),_0x36058c=`\x6a\x6f\x69\x6e`,(0x177ff2,_0x22002d[_0x36058c](''));});}(0x30c0,0x35939,_0x3fc0,0xc5),_0x3fc0)&&(_0xod6=0xc5);const _0x23b290=$[_0xb874a3(0x200,'MkD#')]()?require(_0xb874a3(0x792,'ZxAD')):'',_0x5c62ab=$[_0xb874a3(0x51e,'K&P3')]()?require(_0xb874a3(0x717,']lrP')):'',_0x19dce=require(_0xb874a3(0x42d,'E!!@')),_0x57844f=require(_0xb874a3(0x24a,'GSCG')),_0x20e0c3=require(_0xb874a3(0x47a,'MkD#')),_0x236ef7=require(_0xb874a3(0x5df,'(y*K'));let _0x42e52a=[],_0x1f34c0='',_0x3ec825='',_0x355a74='',_0xeaa181='3';if(process[_0xb874a3(0x777,'QcyS')][_0xb874a3(0x39d,'9ZSg')]){const _0x572d90=require(_0xb874a3(0x36d,'n2wy'));$[_0xb874a3(0x4c9,'0hVo')]=_0x572d90[_0xb874a3(0x3aa,'uF)u')]($[_0xb874a3(0x740,']lrP')][_0xb874a3(0x383,'uF)u')]($)),$[_0xb874a3(0x40a,'Haqt')]=_0x572d90[_0xb874a3(0x536,'KDxH')]($[_0xb874a3(0x1a7,'D1Ba')][_0xb874a3(0x662,'ZxAD')]($));}if($[_0xb874a3(0x145,'XLsF')]()){Object[_0xb874a3(0xf7,'ih(w')](_0x23b290)[_0xb874a3(0x48a,'*kVW')](_0x3137d4=>{const _0x1e89da=_0xb874a3;_0x42e52a[_0x1e89da(0x57a,'zfYp')](_0x23b290[_0x3137d4]);});if(process[_0xb874a3(0x411,'n2wy')][_0xb874a3(0x4eb,'ZLTH')]&&process[_0xb874a3(0x447,'(y*K')][_0xb874a3(0x469,'*kVW')]===_0xb874a3(0x2bb,'*#rj'))console[_0xb874a3(0x10a,'0hVo')]=()=>{};}else _0x42e52a=[$[_0xb874a3(0x106,'30Wb')](_0xb874a3(0x560,'(y*K')),$[_0xb874a3(0x3a3,'v6!#')](_0xb874a3(0x108,'FQ*p')),...jsonfomat($[_0xb874a3(0x677,'zxcX')](_0xb874a3(0x42a,'zFA7'))||'[]')[_0xb874a3(0x18d,']lrP')](_0x41a248=>_0x41a248[_0xb874a3(0x6eb,'XLsF')])][_0xb874a3(0x782,'w*ey')](_0x3c1599=>!!_0x3c1599);let _0x3fc37d=process[_0xb874a3(0x550,'30Wb')][_0xb874a3(0x315,'sbo]')]||_0xb874a3(0x730,'*KNY'),_0x4ed190=process[_0xb874a3(0x1cf,'5k(B')][_0xb874a3(0x5f4,'C^8i')]||_0xb874a3(0x353,'sbo]'),_0x320a1a=_0xb874a3(0x376,'XLsF');$[_0xb874a3(0x4ab,'ZxAD')]=_0xb874a3(0x475,'K&P3'),$[_0xb874a3(0x5ef,'uAa7')]=$[_0xb874a3(0xf3,'NbtS')][_0xb874a3(0x3a4,'CzhC')](/oC[0-9a-z]+/)[0x0],$[_0xb874a3(0x285,'*#rj')]=$[_0xb874a3(0x136,'R8h2')][_0xb874a3(0x18b,'a2hC')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0xb874a3(0x182,'2gK$')]=_0xb874a3(0xf8,'*#rj'),$[_0xb874a3(0x321,'uAa7')]=_0xb874a3(0x76c,']lrP'),$[_0xb874a3(0x5d7,'0hVo')]=![];let _0x72f996=[_0xb874a3(0x396,'K&P3')];$[_0xb874a3(0x4f8,'R8h2')]=_0x72f996[_0xf53da8(0x0,_0x72f996[_0xb874a3(0x5bf,'0hVo')])],$[_0xb874a3(0x666,'KDxH')]=process[_0xb874a3(0x6b1,'*kVW')][_0xb874a3(0x20e,'XLsF')]||'',$[_0xb874a3(0x29c,'(y*K')]=![],!(async()=>{const _0x4e526b=_0xb874a3,_0x4bd88={'dJtXk':function(_0x4e977a,_0x4d69b6){return _0x4e977a||_0x4d69b6;},'qYSgD':_0x4e526b(0x3db,'uAa7'),'IzyFH':_
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