mirror of https://github.com/6dylan6/jdpro.git
12 lines
186 KiB
JavaScript
12 lines
186 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 13 9 * jd_dplh0913.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0913");
|
|||
|
const _0x256a=['WOZdICorFmol','CCoXcCk1xW','WPpcUuBcGJ4','W5JcUYqxWQ0','ESkeqNS','WPaiW4KCWO91W44tqZ4','vSkSDGRdMsO','kgGYW6tcLq','CvpdJCobWQy','ymomW70','W6hcKHe','uCkDxXRdSW','y8oytmoOWOVdM1jSqmoJ','WOJcHKJcPmkc','WRuJW7C','W7FcRGm','W4bFECo+o8oPDshdImk2','WPpcLCo2W5C','CmkhhvZcQCkfvq','hCoJWOmv','WRtdP097v8kKW5KQqCkX','rvFdSmoxWOu','W6rGmW','W6lcNbi','xSkoWOLoWRnqfcldPM0','W77dJrJdJmoIyf3cGSkIlG','iwjM','W6eqW4zLthtcGa','z8k0DsRdMq','W4z7D8oOdG','W5mBdd3cGCkxW7xcOMHy','oW1TWPeE','W4WTWRRcMSotWQq3W4VdPdu','WQFdTgzKya','WRpcQmkpWQec','WOVcOMJcNeGtnmk6Cce','WPG4WRRdJSoSW6qSW7K','W45FzmoWm8oY','umkpW7DEWQ8','tSkCq8kJWQe','ySkauXVdJa','bM4bW4hcQG','WOZdM8kiWOqGp8os','ocVcOvnAWPGu','DmkSWOLLWQLitwxcRhi','gSk+WPapsG','jaVcJSoXW7W','tZNcPsC','nYVcVerKWP4oWOH1WP0','F1Svnmk7','WQJcSuxcVsa','r+woTUs4GEMwQEwiS+I3HeFdRvC','WRCHW5m3WQjUW7y1p1W','W4RcPbikWPu','W4xdLMRcH8ox','tuGxtwhdQfZcNSo9Ba','WQPDmCkpwq','WQOZEmkkngm','dfukW5NcTa','Fmkcy35a','z8oytSoHWPFdVgy','ACoYgmkxiSkfguiBeW','W7tdI1lcSCo0AHyYWQS9','W7SfW6O2WRjkW7yLmfm','cmk5WQSJymovqSkaW5e','WQVdS8ksWRS8','gSoSWOOvWPxdSty','W6VcSrS7h8kTW6eXF8kgWO/dOa','W7JdLudcSmo5vH0','WRyHW7CHWQfcW7O','5y2d57QK5A+R5P+C5BQM5l215zoC776I6k2h5ysO','WRtcN1RcJCkEuMxcSW','amohWOC6WRO','ASkbfKNcNmkVxKJdOZq','vKmOf8kuW7NdO8kpc8ot','yrVcIaxdKq','W73dV3NcHmoH','EmkkdvdcP8kJr1pdMsO','8yM1Md8','kd7cUSoPW5q','W6OejadcUG','uCkMWRyvz8oRw8kmW4G4','WRTdW7hcKHO','WOPLWO/cOmkf','W4pcNbe7W7pcJ8oJfcdcMG','pmkyW7BcPu8','wKeHvmoiWQpcUCoStCki','bd9HWRVdTa','r0uQha','WPGRW6S5WQLaW6Wlva','rKqRc8kqW7NdO8k1fCov','hmkRWR4xCq','CSosuSoWWOJdGq','WQ8PWQRdH8oY','cJFcTmo1W7e','kwX1W6y','vd8PW7a+iSotxuD8','B2Oh','q0OcEwNdML4','W4BdUKBcTSox','mgiYW77cKSodmG','W6pcMGyTWRxdKmk2','W6ddRhtcT8ov','W6hcT0ZcHmkpC2i','WQOToG','W5j2WQtdI8o7W7iZW7FcUre','W57cTmoCFCo5W5iocCoX','WQzqnCkt','ja5U','gwvcW6BdNG','W6bqhCo5WOy','WPK3WQRdU8orW7a5','bmkPW4BcGh5oW7/dVW','WPuQmSod','44gK5O6356s644ob6k6i5ysA6iYu5y+Nquq','W6FdNJldHmo5WQGYWRlcQmoO','WOZcVMxcGqmalCkKFG','xL4yw2RdLG','WOtdJNrDsW','WPldL8k4wmk6','qCoMzmowWOm','W7WVW4JdJmoM','jazVWRqy','WQ7dUCo9Bq','WR7cL03cH8kesNJcSW','kmkJW4RcP2feW6ddTxDs','WQRdUMDV','W7ZdLNxcSSoRWQzQ','57My5AYG5OIa5yMH','w1pdGW','z8kDsxjMgmk0vW','paXwWPy8','bcRcR8oiW5C0W6PtzCoM','qYZcPtBdRqZcMfFcR8kq','p0zXW7xdQG','WQX3W7NdT1DanCosW4DZ','x8olW7xdKW','FmocW73dHIpdJ8oSWOO','jY9JWOCO','DCoBrmojWO3dHNy','W4uUW6ZdNCoV','jM4XW7hcNmovoCorWR9q','zSkJW5lcP3jdW6dcOL9v','W5pdJNBcS8oA','jmkLWPhdTI4dWQtcOGOf','W41gESo/','W6mzW5nqug/cHLqFbq','AsnhW7/dUqDCW6tdPmkG','imk4W6hcOh5oW7/cSq','WRm8A8kkcgLbm8kYWPe','x8keW75AWPe','FCkuwNHY','eWj0WPekjSolxLbO','WPyTW7WCWQLgW7qY','WPJcPgJcLGq7ia','W6CDhSka','5Q2ivGBLT43OOQ7PM6VLIi/VV6BORB7OV4i','Bmkmwh0','FXf7Ca','WR9xvK/dUH3dTMRcJa','W6GPW7b9Bq','W4eaFSoOoCoL','uCoGcCkgzW','EHjSDCoVWReEDSomWOS','imoQWOea','5Q+egHpLTR/OOyVPMQtLIRFVV4FOR6NOV7y','WQZdQSoMyq','WQZdIufUW6RcK8o6ks7cMq','j2ujW7VcH8kpyCkvW5Kk','WQGJWQBdVmoX','xuOCwxC','WPOoW5CrWRy','dtviWROM','W4ddJL8','zCoqW5xdKXxdImovWO7cK0C','FczyuqHWW7Ojp8kF','AmkLrSkGWR8','WPFdP8kACSkc','iCkHW43cJxHbW7JdQv1c','WRlcHeRcVte','WQxcUSoWW4OOoCoSW49VW4C','W7RdJNhcISo3WQy','W5mhestcJSktW6JcRwC','D8otd8kCqW','yJzJq8oy','A8kEqSk1WOFdSq','W7atW5nWsuVcGvidmG','pCkt5yQC6zc85zg+5ysR5OUX6kkJ6iE75PYp','W5iwdIZcICkAW4/cVNm','WQ1AjG','W58KW5O','oJlcT05WWPyiWOq','E23cTfvDWPqoWOLmWPy','W6zJgmoQWPJcSCkFhSktW5O','5lQz5PAI5Rki5yIA5yIx5zk6FW','vCk/W5rNWOPrqhtdPHa','hCoRWO0BW5a','tXy9W6brASkpveWq','j2KH','ASowW6VdTZC','d3FcT8ouW4OxWRqaDCoV','bmo7W4aOW4LgWRu','W5yQW755zG','WQpcIK/cMmk/wfBcUCklbW','W57cVZ0bWPpdR8kDfWZcOq','cY5sWP7dTHzyW7K','DCkghNZcO8k4','l8kSW4JcG15DW43dNffD','WPyBlmkUySk5kgC','u8kVW5eX','W6VcNs0pWOq','jCkLW7JcMxK','jSoJWOyhWQC','aLusewBdLftdHq','uf42fmkdW5ddUmk1dCoV','dsJcIejz','W7NdTmoWW4ddLtZcVmkSW5nV','oCkqWQ3cJupcKmk2W4FcQMS','W7epW4jJBh8','WQqxdmoxW60','o8kVW67cJ0y','q8kOBdRdNYRcUq','tmk5Bb7dHx3dSY5VWRu','WPVcLmkyWPNcRW','quPRgSkvW77dLmk9eCoi','a3LSW7pdHG','B8kEvq','aCoTW5u7','W6RcVdGKWR4','FCkXW4e','W4pcR8ogDmo1W7mbj8oHW4i','WRyVWPFdV8oU','pcb+WRVdQG','W7hdOejIqSoXW4rusmk9','ACkKr8kQWP8','pabtWOpdKW','W6FdVmo7W4rs','WQtdIePMra','eHxcNhPz','WOhcU
|
|||
|
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
|