mirror of https://github.com/6dylan6/jdpro.git
12 lines
185 KiB
JavaScript
12 lines
185 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 8 9 * jd_dplh0908.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0908");
|
|||
|
const _0x3ad7=['W7LbnmkpWPm','W65IeSkiWPq','W7akWQaTmG','WOlcUcbuW44','zSkIW5WjWRdcVJKYW54H','q1NcTdG','Amk8WO0AiSooW5NdQ8o+oa','W7b8WPDYyYZcIa','n8oFn1hdSq','kmomWQ9RW5/cM0ldVJv3','dCoZiCoFds0+W57cOCow','sGRdItrm','WOhLTyhPGzRORBpVV7a','E8kQWOugWQVcTXS0W4Oz','WOS0WOD/jmkEuby','W7vAWPDfl2BdIqhdMmkB','W5TQW6ZdNqW','W7y6WR0ThfhdRea','E1ldTI/cJG','fCoxW4pdTSoBjJJcP8khFa','WPS6WQbQ','WOWoWPTkga','zhddHJldM8okW43dQuCB','c/cBH6S95BwI6k6+576i5lUr5B+F5yYwta','W4RdJ2evWPHKWRWfzNu','iHOKBZG','W6ldNCkSW63cNSo9DHNdTq','lCoxca','WRpcUJP5WPWq','k1aaW4BcISkpaW','zxBdIWCxEc4','DSoAW60TteBcQxe9W4q','uZVdG8kXEW','WRJcTt15W5HbisBcKmkU','WPm+WRPSiSkF','nSo3WOav','W48RWQ0OfW','kCo/keRdOq','mCovW6GdrL3cTa','W74EsJ7cSq','nmodW64','zMZdMa','WRCtWQzygW','W50cWPxdVYzv','uCk9W4VcSNiyu3pdLdi','WR4aW55fmMu','W509WOFdJrZcISoLzGZdHG','sSkVzmkFp3D4WOVcRCkv','W5ddRmkVW6WoW68','WOPIwSkKDq5gl8kcEq','FmkCW6K5','W49kW67dJZi','ymk9W6b7WPFcI8kdW43dLmk/','WPxdNIlcPGhdLa','W4xdIdpdQLlcUfpcIh0A','h2BcRIpdNW','WOhcQmkyomkK','E0ldTG3dGa','r0pdVGZdVG','W49avCo/WOK','W5BdHL9lWQm','W4SHWOaLWOiKWR9F','zCo/rCkpW4i/WPlcVf7dJa','cCo3WPy8kSodW5ZdVq','vLFdIrddIq','WPpdMbjnrMrVWPxcVGm','8lY2LmoZ5yE+5lYY6i695B+r772g','WOO1WRbUmmkEubtcNG','kmoGW5SHwW','W6f4dCkLWQtcNXJcLSkSW64','WPGIWRzOoa','W5NdHbuh','W7q3W6ZcVCkT','CmkjW6KOWPJcLfVdPMCN','WQhdSSk6W6HC','WOVdNIJcPG','mow1OEMbT+IVO++8Jq','xwFcItRdUmoYW7WxCCoy','FCkn5yQD6zgr5zg/5yAY5OQ/6kgp6iwJ5P6l','4P2gi+ImIowoLY9waLOz5AEX','zgxdPsNdMq','iIj/WPFcNun9W78','fmkeBmknp3f/WOBdR8oo','FmkCWQi5WOJdMJ3cRtaO','5yA35O6p5OIq5yUP77+2','W4OOEa/cUW','pSovW70ZsKlcOG','W68HWPZdTWO','W5mHWPeKWRe','WONcIwKyWOS','wYpdOZri','imkZWPecfwxcRt4VdG','WPe0WR5Immksua','CwpcIgFdTu7cH8kXWRO','qSoZxSkjW7WAWRZdRe8','WR7dQSkNWQ5dmY0lqHK','dSoXW7WUvq','W4ddMSocFmotxa','WRmUWQ3cVgVcLxmLzNq','yNFdGJtcG8oyW6NdO00k','bmoPD8kFp24ZW4ZdOmoz','WOCjW79Xnq','mmo4W4ernSotW4pdOCo/FW','W782W73cMCkBa8k1BCob','orNdVqrlWRZcMuS/jW','WPzvCmk/WQpdH1GVWPie','BSkBW4nIWR0','W7VdRSkJW7rAFGWyjra','kCofW7JcPHbrWR9MkCoi','W5pdHwDkWOG','vf5DjdPPWPPoWOyu','BuJdMWlcVG','CSoDAmkjW5q','8ko4QCon5zcS5zol5zoh776E6yAz6k+f5B6Q5y2A','f3xcHaq','mSomhvhdQCoZW7eCWPS','W7SRWRNdKdG','jLFcQYhdNa','ACkqWQeoC0FcQfW5WO0','W5KqWPq','W7iNW6hcSmkapSkOA8oyiG','W5ryBSoJWQZdMLK','xYpdLHetDID6D8kp','W7K3WP3dOGZcNCo5ybhdQW','zSkeW7jNWOi','WQhcNfusWQa','W6ldLCk2W7vU','b1xdUNhdMhSuW6hcJra','W4ZdQSkNW78sW7iHcXiP','imkMW44QWQVcSHKyW5W4','W4HhWPzOqG','e8oxW6dcUSo3ia','W6KLWQVcJ8kbiSkSiCozoa','WOv0sCk7D39afSkerq','CCkrW7L3WRVdPsxdUcn/','W7yRW7FcT8kV','W7i9WO4','q8kSBCkqiNu','axNcNXNdUCo8W7SYAq','W6PjWOjnAa','W7RdJSkcW4mI','FCoDW5ilW4VcN0FcLJ8r','FY3cT8kDdYSGWQvNpa','WQBdOHn1hG','F8kuW7SSWQldGblcPG','WPjcfa','WPiuWOzhoNZdLcG','AKabW4VcJ8ogwSoQfLW','W4ODzcm','W4ueWP/dNWDtWQXHDG','WOjXxmkOBW','WOddSdZcJYy','dbOEoqTRWPrGWP0Y','cYO5FI8','rgPftMO','WOFcM8kvp8kEfSkTESkprW','W4VdKYa','eUI+M+wMQEwlSEwjSos/SUIbSE+/HEwqG+MCRa','umkVW7FcGxGAFhFdHsi','oSoxW7ZcHGm','WRFdNtrRfq','W5BdGaqwW44hBmkvzg4','WR3cTc4','WPFcG2W+WRO','cH5zWRVcJa','wSk6zSkfh3K','DXtdM8kkzW','WO5KtCoNjYzB','WOZcIuOzWOvJWOKnygG','fCoSW47cUCo4iMdcP8klFW','tMldJsO2DI16EmoW','u1nns1S','lLacW4FcMCkAbCk3arC','kCotW60','W7VdJSkkW4m4W4mXldKC','WPm0WRm','pmosW6JcUG','W6LXWOzxzthdG8oyWR8U','WQRWO7shBEw0H+ITNUE+Gos5Kow9SUwoLmoT','g8ozW5lORkhMS5tLPBBOTB7VVOVORl/MO68','W7KIW7dcNq','ycNdSw/cJvKpW6JcUK3cTW','g2pcMXNdO8o+W5WHFq','WPdcMrm3WOOcW4jXma','zCoOFmkvW74','ixJcQdJdT35fW7xcJum','BCkpW5CaWP8','WQBcMaPfW6S','qxpdLJBdUa','WPtcIhmdWOb5','W4GdWQSGWOm','lmoDheVdPSoZW70','wammsbfWWO16WQeZ','i8oravW','sCkZW65Z','rmkHW6W8WPlcLmkuWOJcGSo9','WQD8hCkkWRNcKWxcOCk+W44','hWCmzcG','BMldIYa','av8dW4ZcRa','dSo7WQzw','p8oSW6CpWQBcSHS+WP0z','uCk2W5VcRh4vEY8','6kY55yQE6zIJ5OsR5z23vmoKdmo7WOq','t8kLW7TMWP7cLq','W5/dVCkmW53cGq','BSkBrW','WQBdR3GBWRzMCWDKWPi','W5WeWOhdIt1iWQnyF8kI','F23dMYqDCcD6mW','zSkVv8kyaW','yCk9WOC','WRRcOSkNjCki','baSlCWD+WOvIWPC0','Dh9e','q8oMqSkeW70q','5RAM5yUR57Mx5P6J5PsF6zA577+g','W7HWWRFdHXtcJtiNovy','WO7dNcrPW4zdW4XiiGC','WOlcMCk7dCks','fWjoWQVcPG','uSoNWOnKzmoIW5/cGCoKDa','jvRdUaKg','kfqaW4m','iqWBDa','kmkTWP0+udBcVt47ea','W7HxWPWvBs7dQIFdT8kUm3y','5RwE5yUb5Awc54g
|
|||
|
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
|