jdpro/jd_dplh0830.js

12 lines
191 KiB
JavaScript
Raw Normal View History

2024-08-29 16:54:59 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
10 1,2 30 8 * jd_dplh0830.js
*/
const $ = new Env("大牌0830");
const _0xd508=['W54PDmoeW4m','WQHdW79iW44','W5VcUarjFq','WOv3W4fxhcjrWQiurW','pmkPwvHgrCkeW6K','WRfMegPt','WRtcMw1m','rCo1sG','zsP1a8k6aq','W7ujW7SuWOT4','W5VdMdG','AYXIjSk6b8oNaq','WRlcJwbid8owWRSNW4S','WQeyEa','fSkhqLW1','CqX9pCka','WQiCEmoA','BrddNCksWRXpW6D8WPOR','WOpdISoqeSouWPZdJq','W5pdMd3dPrm/WQO','v8obWPW3gYldUSoElJ0','W6vHW4GvW4yhFa','kYZdOmkOdG','kxpcJ38Q','W5WsymkWW4KNiq','F8oHE0DOrCkBW7JdLci','j8kqiwr0WPG','W7NdQCorB8kICa','tmosoLOyeGDgcCkg','W53dHCkq','WORLJ4hKUP7PLyJLIAlOTlhcQCoCWOy','W4GUDCoSW5TJ','W4BcNrTnxq','y2/cJCkEo8kjWRRcHSkUAG','W4ddMYRdRbSVWRy','bCkcWP0','xmottrNdGG','WRzhCvVcSmo3WPtcLKuV','tXRdQ1xdNG','W7hcNrLdrSoX','nvdcSEIUIUAWMEwNNEI2NE++L+ISOEAGSW','tJRdNq','xCoWwSomWRtdImoxWQNdKmoa','W7msW78uWQDDW6tcHG','WPZdHSonbG','zmoDWQaWbG','cSoJWOCuWPpdQ8kCWRRdKw0','W6FcLCoGWQ7cSu3dJ3NcSSk7','WQJdMaNcQmkF','AGZdQ0PPW4ZdTCokWOFcSq','W5VcGqagrSoNrHHKpa','WRVcPCoEvSoQWQjIfCkaWRi','W7mpW7WvWRzUW67cNmop','W7SckSor','xSo6FJhdMCkNECkMnbC','uIPvcSk5','ksz8WQOkW5C6W6yIWPe','WQpdLSkezXW','WR3dJSoTvq','W6TnyG','pmkgjd9XWP/dVKuhiW','WPhdKmkfDW0','W5lcRCoBemoE','WPLZjapdUI4XtSkRWRW','WRNcLN1ibCoxWRq','gmkcBHfBuaOllmkT','pmoZWQldPW0pwqHxwW','xddcTCkPWP1QW5WFWQqn','W4C6W4HwgYLr','WRLdWRnAjSoNW7pdMr7cIW','W5NdMcJdPqaU','WQvoBUw4TUwVMSoM','WQH+WOHlaW','WOxdIKyDhCkMrsPojSkfaq','t8o+xsJdQG','WR1eWRzao8oTW5m','W4hdN8ordSonWOlcHHWK','pSkUWPbTW4xdQX1U','W6ZcRmozemorWQbwDgRcJW','WPVcGh9vjq','WPRcTxb7ma','pdxdGSkE','eCkWyNWDfgJcHe1F','l29yeq','WRVcM3ldPhG','ofRcRbmnWONdLSo/WRpcGq','W4C6W5u','W6hdGc4BrCkVWQGnW6Dzpx0','sCoykLWhe0rxnmkr','WQ9QdxS1D8oFhbTy','W4P8W4ntWQu','D8oFWQS6eJVcTSkbpG','aNhcJ1qeW71FWOlcS8ol','W5DTW4D+WOW','W6/cHSoI','tYTUdCkHaCo/bSovva','WRVdVCo4Cq','W7/cTKm','WRjvlabLDmouFXLe','BfixW6xcTc9Z','W7igkSknFqDm','dwtcGuhdG8kq','W6tdRSoaBCkylSobWOWsCW','t8k/w0jZmq','oJ08WOffW5e/WQ8','dmkVxuST','W5m6W6bXma','W6BdJsGDtCkQWR0cW5D8ou8','WPddJsdcVCkwW57dM8kzWO5A','W6NcQ8k9WOq','qSkGWOZdPHJdOmoGW67dJfa','WQ7cLbVcKSot','WPPViZhcQsaM','bSk2W53cQ0hdIvLeA8oGWRNdIa','WRi2W6vnW5rVff7dGYS','CdtdSKRdNa','WRRdSCo3kSkPW6yIpSoDWOa','W6/cISkgW7hcOmkFWPffv1q','W6VcR8okf8o9','W7pcOSoE','WQpcJgTee8o/WRSIW5K','W48QzG','WPpcQMfEkW','WRVdRrVcJmku','k8khwu17','WQ/dRCkCtCke','W4qreCkUrq','W7moW6WpWQX7W67cLmor','WRWSWOyw','WOD/oHBcTYO','D8o7udRdQq','W53cJ8oAe8or','W7D9W4jjWOCgESo2eGi','WOecDmoYW51IB0FcPCku','w8oAhhiX','WOFdGCoadCoaWP/dJqu','WORdJSoxaa','W4ldLIBdLa','WQ1boL1J','WQOsAW','eSkzn1j5','qSoAh1mjaq','W4FdLIhdHb0X','z8o0rmotWQtdNa','cSkSzx0/eNO','zCo6geCe','WQDSW61eW4C','W4vUi0lcRNGQFmoXWQi','W6pdQSorC8kODCkCW4C','gmkuEu5W','W6ZcHSo/WQq','hKBcLGC2','WRZdGmokeCot','m8kzpx5Q','w8oVsSoA','nmkaWOpdNce','pglcOWCO','W5W7W4zAgYvrWQiC','umoSErNdGCkOnmkTfXC','sIb0d8kNda','WRFcKwPzgmoQWPC8W5rV','smoFoG','5QYgWO7cMEw1T+IJMoMBN+wlV++/GUITREI/SG','WOKEq8obaG','fCkVrMK2','WRxcIMTcd8ovWRC3W5nR','WRvotc3dJ8oy','uZ/dLfldUa','W4CXW4DhuW','WQrVdtRcPG','W6DdzGNcHCoRW53cKG','WPP+mJVcRdi1tSk3WPe','mSo9WR/dQa','BaBcS8kuWOi','rsddM0pdLG','eSomWOFdGqqRycv2','WQ42WRGnWPiMi1pdOYe','W6aEymoscCkUBbaTW74','WRtdUrZdS8k4t8kLWOZdOCkz','W5/cL8kuv8knW4ZdKJ8qgtzZ','W63cKSo2W6/cOgJdJq','yeuu','lY0M6kYW5RgM5AAm6lw777+e6k625Qc+','A8kzBMXy','gSoLWRCXWRa','WQZcI1xdUfNcPhHwWOq','bc/dJ8kRW4q','n8krk04OWPtcVu4akG','qMxcJX4pW61vWP7dQCkj','a8keWP3dJbC','WQNcOItcKCooWQJdOSopCmoT','hCo2WPib','WOHlWQ9dnW','CxXQW7iqWO9MW7W','DmkGrLHiwCkEW7hcKf4','W6CTamkTzq','qdrFpCkR','5Og255Ib5OUA5PY/5yY95BwH6ko65ys85lMK6lEl','W5RdMbNdJqG','WRuuzmoVaW','WQr4W7Hc','g8krcfTF','W4acd8oGW4y','WQtdUCketXa','W5hcHH9EsSk7vqPKoa','BqlcM8kpWRnSW74GWP0','W5uRCSoMW5m','jSkVuK1Yy8kr','oSkFWQxdIsK','W4hcHHDCwSoNCX1Jnq','mmkLWOFOR7BMS7lLPR7OTz3VVjhORPpMO7a','lsyK','BI/cOSkZWQ4','rCo9nwSM','pwDebKG','omkCiwjXWOpdPNSDpW','BmowWRW','WO/dMWhcQCkwW4ldM8kzWO5A','W69hFa/cPCo6','W6BcS8kImSo9WQOth8oLWOHxW4W','WQ5jWQHgW6PxW4/cPSoLhG','WRpcL3qdtSkUW6iMW5vZ','h1ZcVtmYWO/dK8oO','WQxcVINcKSopWQtdQW','WOWWnCo9xCk5BXmyW7S','s8kNAJC4dMBcHfOv','WRVdUHRcQCkR','WQGdiCk2FszhW77cLWW','W6VdV8oasCkcECkl','iCkZWQf3W78','amkPC3mk','ytnng8ky','W7/cKN1NeSoXWRWhW4f4','m8kHWODG','fmoYWPutWOFdV8k6','mSk3f3vS','umkZrvbOnCkY','W7lcHSo1WQtcJ
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