jdpro/jd_dplh0809.js

12 lines
146 KiB
JavaScript
Raw Normal View History

2024-08-13 01:01:55 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
20 8 9 8 * jd_dplh0809.js
*/
const $ = new Env("大牌0809");
2024-08-13 06:25:00 +00:00
var _0xodD='jsjiami.com.v7';function _0x3ae3(){const _0x54da7e=(function(){return[...[_0xodD,'eAgjwsujRWHiXhJamVFiK.cMHboDMemP.TCvx7JT==','h1VcPSkVWOm','BehdNYjDnv7dMHqTy8kG','hSkHrvxdPW','W4PsrLag','WPeEeSoBW7/cTa','tHfxqfq','WP7cQdPOWQq','W5jgobG6','W5Pbmbq0','W5lXIQsUW4FLTP3LRkhMIjVLHPpMS63KUlJLIyhcMW','dCkyCKJdGSkibCoBEcDl','qwddNZ5n','WQhcKSki','W5BcOCkTWRP4','W7tdTCo7n08','WR/dPK98W7xdPH8','WPRLJ6pKU5dPLB3LI6BOT43dQfH4','W5BdKJe0Ca','FxhcOdZcOa','rWNcRuldGG','x3JcKIdcHq','WQNKUy/OSAhXJBEi','gSkyt0/dHmkthSoF','WQFcV8k/W4RdPmkxgCokW4GwW4SO','x3JcLdtcHG','WOOLW5ZdPmkMW6VcNL8','WQ7cISk/WRXF','n8oGfIRdJSkxW7/dR8kOaIRdQmkWqmohWQxdIZFcKbf4WQzycHitemkPmCoSvSoR','kSkIW5Xfp8kG','WPmVW7ZdO8k1W6xcLq','gedcKCk/','W6PxksRcQKeDWO9otmoZW4xdLCoBhSkTW5a','WRHym8k0WPKbWRBdVJRcL0xcImoMW4u','W5RdT8omcgK','pNRcLmkoWRW','uvVcSLtdIa','iCktzfRdMa','yq/cLgpdJq','WRpdLmoB','W53cVmoSWOldPmof','cedcSSoQytq','W5JcOCok','p33dVW','W7brmJ/cUuCAWPjlD8oYW5ddUCoZ','WPLFo8kvWPq','WRtcJCkxWO9c','WPZdGKPYW4m','lsxdPKldSCo0WQdcT8oEpmkCnCkZ','n8kWW5zE','b0ZdJCom','WOzdwapcNa','WQaYW73cQJNdUZDVWOOVnSk1rb9QwCkvod/cJCkqW75nW6ldKSoqW5ikW7JdT1JdN8kFj8oMWOZdQvVcPr19W5PguNpdNmkWFSkMg8o9BCkkWOK+W7/cMCovW5a7y8ooW7Tp','yIVcQ0/dOa1yW6ni','W44tCmkHW58cfW','zvhcSKRdNq','rbhcOgup','WRe9W4lcIqm','W5a9EMe7W5eOBs/cP8k/','W63cGLpcQa','5RsW5yUT5P+35BYM5AwFstFcTW','W4HQkte8rmkWWRC','WR/cPwlcOIm','ss5BDvm','WQtcPmosb1ivnGO','5y6d6iop5Rgf5RoUW4RMJzdKUOZMLANPLQJLHQ/OR5/ORQa','z17dHIbIm1hdIHGWrmoRlMuLWQzIiKJcPWH8W5ZcUSkOW5FdRa3dRCkFWRi','W5xdMmoWdwu','W7K2WRq2pSkVWQa','gxhcHCo+za','zSoJW79mWQO','WO/cOM/cGZu','WOJcICksW6hdK8kykCo+','eeRcQmoX','oX3dRZ/dHq','nfJdSSojpa','fSkmiw4','WOORW5tcRYq','cvdcOSo8AdpdHG','e3/dQSobhW','zc7cM0RdTq8','W5CCzSk3W4i','W7bmpZZcRfyhWPvA','h8kmiwX8','BgdcVq/cOCkpW7NcO8o0','WPerW5hcGIu','WOyxW4pcLX/dHaHPWQaleG','ESokwWai','WQJcNmkeWQjv','s8oTmxxdIW','o3pcRCkEWOe','WQRdL8kVWOi8vea','W542EG','WQhcJ8kvWQX4','W4ykDCk2W4mjfc0','W4VcQ8oGWPtdLCobW5VcPHGQW5e','tXJcU3uws1G','WOFcH8kuW43dOq','BmoWeG','bSk5g2LL','ESouW6v6WPG','W4GyqSkcW5m','CrX4sv4','tuBdStrZ','jN/dNCkCW5DlW5hdIGXvBbK5hCoNrrvkWPBcOWBcL38xW6OQWO8SW5PvEZFcUa/dOSoiW5JdNmoIWR1Nxa7dRG','W4CSWR4QnW','W5RdGSodp30','axNdUSo0dq','WP3cL8kNWP5w','qLRcSf3dMa','W4iknG','mGZdUZFdLq','W50OjGSV','WQT3CdJcLmknwNC','W6zCe8k7W6e','uulcTZVcOW','WOFdS8kNW4pdKq','pfRdQCoiW7K','WRZcNd5g','ymklWQSAW70','W6ZcGCkDWPXd','WQpcKSkfWOf2oSoZ','W7xdRWD8WRC','ru7dLCoea8k3W78adxVdJCoqjmo/W5nRESkPlSk0rmogkd8WW6aMe11bW4hdVmk4qSodtfm7vSoroCkgWOZdGqjDoG','WRtcSKRcGbVdHq','W7tdPSomdNKgaYqrymoVWOBcKW','bbpdKsFdSCkUv8ovvq','qmoJW5DTWQ47W4VcPG','WQ9dgCkrWPK','ogpcICofya','W408xxOB','W7mTWQmsjCkuWQ8ap8oSWPC','rXPJu3W','W6JdOmoW','WOJcRSk/WOb9','W4m9EMyl','WOddISkPW4RdKq','emkengf8','W5f6lJO4','W7ldVmoFe0O4','W6OFAMGq','t1XqWRFcQa','WRCtW4ddKCkm','WRrQetGSA8kZ','j1NcK8kUWQe','i3BcQ8ogxq','W4hdVrn5WO0','WQVcIcLeWRdcRCom','WP/cQuS','DCoovt0Fyqy2W4np','bSkcbNTMWOxdRCkY','W6nEbHKqzCkeWOq+W4pcU3tdUCkVbNK','W5pdVa9F','v8oFyG','jfhdPmoIW6W','WQ/dU8k0WPKv','ng7dS8o4W4q','CSoRgM/dI8kwW6/cVSoNw27dTmonfW','WR5NmCkLWRq','WQFdHCooW7/dJZe','5Q+kdchLTPFOO4JPMjZLIy7VVOhOR7NOVzHfWQpLIl7PK6ZLKjZLHBRMI7VOOy/OHjhMNR8F','WRRcVKRcGW','W6HJtvmm','WPSQbCoBW4a','W7JdUSokbhKPhZKmyCoYWOxcHN3cSCo5lG','W6FcLSkjWRb5','yuVdGHHIpvu','tehcUa','A8oRAHWD','WRhdN8kWWOqWDeG','WOiqW4BcJqldJIHuWROq','W4lcU8ofWRddGa','W6RcSMRcO8oU','W745WR02','W7FdKtO2AuS+','tq/cVx4fDvBdLXn0DSk2oa','W73dOCo1gG','efBdTe7cKW','WRzEoG','sHZcUMah','mSkWW5fonmkO','5RsW5yQ05AE754gs54QT77+j6kYN56M75zo05yss6kYL','tbZcU3a','ASoopMBdVG','W7JcLSky','W5RdQWe','WQOgxLTsl8ooW5L8WOxdVN8','WPCKW6VdTCkSW43cLG','zvZdJZX/pX3dLai','WQhdVSkPW6tdLa','gWJdHa','WQVcMcLiWRVcUSoZW5xcSe3cKHJcRd0','W7vjfSkEW6O','W4j5xK0H','EsHiDxW','WOSgW6xdV8kD','sefcWRhcPq','WOpdG8kAW7xdSa','w8oaW6PNWPq','beJdJq','WQNcTmk0W4NdHG','WRaWWQqNnSktW7XzECoYWOCFrvFdMCkewI1CAWfgsSkYpCoyhWddI0rBE2WfWO0bhmkhiCopWQtdNNuTW41+d8kWcXNcPLxcNtrpW7iEgeVcP04GWPNdQvLYWPtdS3ZcVhNdPmkdWOjFWOqxhgZcKdxdKSkNgmkVyCoQWRPNW6NcNmkFzqZcUSo/qXddGJjpkNXDzIpcGCoVoaJcVSofBmkrrgOQWQjRW7NdG8oEdYDGW4G','w0RcKrdcIG','W5zScGJcJW','WO5qoq','eW7dKc3dSmk8umohF8oVW7JcG8kWzG','W
2024-08-13 01:01:55 +00:00
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