jdpro/jd_dplh0906.js

12 lines
202 KiB
JavaScript
Raw Normal View History

2024-09-06 08:56:47 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
0 0 6 9 * jd_dplh0906.js
*/
const $ = new Env("大牌0906");
const _0xaf7c=['qaBcImo+W43dKmkhW7VdTu0','eSoUtXxcU8kJWPW','WPZdNmkrcLSRoSkc','WQNcQWLkAGbFW5X3WPK','WOyQW4NcV8kq','i8oBWO/dKge','vColt8oTWPC','iSo0zHir','kKOCWRG+','8yMLUCoi','W47cHrBcNXpdS3C','WOS6qmkzzG','ymolWPVcSIS','WOnJeSohdmotWO/dTSormG','hw87W6tcMLtdOG','j8olzW','bSosWOtdSw1e','W5hOVjxLP5ZLI5FLIyBKV6JOGlJVVltLKz/PNiq','emkLnmowoa','W4FcUmo7tSo9dHPLqh0','WOtcV8k2gcZdK8oY','qGXWWPSECa','WR5qFgpdGq','WP8bWQOFWPG','WRyAWPSnWRtdM1nSkby','ECozASk4gffX','8jcgN8oq','smkLDCkgxdu','WRKLWQaoWOq','WOuTvCkQu8kFWQddU8oakq','WPWxW4NcImovW6pdPmoMWRbb','g1qUWOK9n3FcGG','WQpdUSkVjcxdN8o5W7JcGmkl','W4BdIb0NeG','q/c0HilcIow3P+wTUUAiGEweIEAZOUs5HUwiPW','cSoHrxC','nCo3rd4j','fINdMG','xwGroCo3','WQPQWPxdMqS','W7ddVsBcOmkAWRddHcXm','imodFmonz8ktyG55W68','CSkNW73cSJhdS8oKWRe5bq','EMOjeSoWW6y5','iHhdOx3cVq','aCoSW6i','o3m0W4hcTG','WP/dG8kt','pHpdSmkcW5q','smkZWRBdHG','W7ybWOK4jq','W5ddS8kLW54u','jG/dOmk3W4e','w8o0WPZdOqu','W7pcJrZcSbFdOW','smkyWRBcP3GVo8onbG','W7hdISkkW4yMuSoGWPRdO8ks','W5pdQXBcVCkB','ku/dOgBdLW','i8kJeSohia','fSoCWRldUq','lSk0l8o5gW','CZjCdmo4W7KdyLTG','v8kkWOm','W60xWPe','wbGYWRxcNq','WOxcKCky','otldLSkkW6qY','oSocWQiqWQO','owG3W4xcOvldUmkwBCkP','f8oiWRddUwG','WPNcKCkCgHO','e8oewKqx','zNiwW51kiq','bmoHEsVcVG','WOe+umo/Aa','kCkJmCofia','jSoDBCogwCkFyG4','WOSDW5tcSSkdW7lcV8oIWRa','AYqEWR7cI8om','uCoMxmoZorFdU8oxmG','q/c0HilcIow3P+wTUUAiGEwlMUI0P+s5HUwiPW','n1pdVW','xCkmW5ldMha','W6tdRtdcKSkBWRBdHs1zja','wXpcMSojW5FdJ8kOW7hdSLW','W7RcHWpcHZm','bSoEW6ZcSgXu','iqhdL23cOW','d8o2xINcOCoQW4FcGmoUwW','WPbiWRJdM0zbhmotWQ8s','idldI8kz','C30BfG','d8oQCMSi','eCk3sSo1hJFdMSoogGe','Bmk0WR7cVL0','W5tcGLtdVCkH','W6ldRcdcKmkpWRddMq','BCkZxSkWsW','8jArPJlPUjVORORLVyFLJAFVVOlLHR7PLBpdVq','W6ORWPibaq','WR1zA1hdPSk1','z3ymW5Lw','ySkFjbnmkSoMjxuc','W4tcI2ddK8kkmCoE','E8ojASkBbG','muRcUJ87Cx4M','pZJdKCkdW4y/WRldTSkRWRW','WPJcR8krosi','r8o9r8oNeJZdQCoMdfC','W6BdKr4Wh8o6W49ivaS','WOBcI8kBWOLFqmo4W7FcGY0','wCoSCCowWQTWcCoZoG','W6DsDq','WRzzy3ddPW','WOXeWRBdKrXshW','W4BcVSoV','WRpcMbRdPbhcQxDDWQSQ','hCoBWQddLgPtbG','d8oft8oSzG','W7ZdHCkiW44','D8oyW4NdLfeSWRxdQHP2','yCkFW5hdIdFcRmk1W5nIsW','Ew4xba','WOmBWOqqWPq','mfNcVdeDrwSWW4dcTW','hCoWWRGAWPJcM28','bSoLcgpdOG','WRJcK8k7W4XR','W5BdVcldQW','WOhcISklW5DpfCk6W7FcGYa','W4hdHaRcSCkJ','WOWWxmkLbamZeCkHuG','WOqIuSkmtSkwWR/dQSoqdW','hZtdJ1ZdImoOWRf0dSka','ACo2FCoEWQDMcq','WOOCW4tcTSkjW4VcVSoUWRPq','WRxcSdjyCW','WOpdHCkUWRC','z3ilW4LFlSoy','W5WHWQSImG','DmkWxmkkra','dmomWRGRWQq','tsuFWRlcGq','fCkWaSoXktRdO8ok','hvW5WO0l','6ygd6l+Y6iAk5PYC5yYO6i2C5y+nomoyjG','W5GWx8oHxa','W4/cO8o6uSoMlbfvrM8','rCkDWOtcUKe','y3erWOftjSozWONcJfe','WQ04q8ojv1f0','5Q6sWRpcTUw2HUIJPUMBOowkOE++KEITL+I8GW','WRZcUSkBW69l','WOniWRhdGtbocSom','WRyAWPSnWRtdM1n7jbu','W5pdRcFcQSkB','xg8nW494','xSkYW77dJ10','mSovtYhcHa','z8kBWR7cRMGQW4tdLhFdMG','igKWW54','bSofWRmoWO5MC8oVWPm2','gfeUWRihlgW','gdBdM8onW58jW7ZdISoUW78','FMeobmoJW6qVEefk','WR5gAxRdL8kMyCo9DCom','WODYatPxFgCJxY48WR0','b8otWQldVwvjhmkQW5O','f8obW6RdUhqxWR3dNN/dSq','WRVdNMa8smoOWR9vfG','W6ddNJpcKmk6','W7udWRWieq','WRZdNMm8tSoOWRXvfW','W4dcSmkZW6mG','WPDCWRhdQaZdPe7cUmoNWP4','WOBdGmk+WQq0e1WRse4','W5POWRldLc4','p0OiW6dcKq','CmkLECkMqa','FMemcmoLW6qsEv8','WQjtB3VdUSkJx8oWvSoA','kL3dV0ddVSkoDJNdKJS','DJewWRhcTCooWPlcQa','WOCsW6BcPSka','bxqV','W4lcVSo4','f2ZdLNxdPW','rI8AWRZcKSkA','W47dOtZcNCkhWQhdHG','a27cRcGv','afJcQYXcswKMW53cOG','W48VWRr/zmkeuSoAC8o6','W7NdLX0Yfa','bmoTrtlcU8k1','fmowWQGv','pmorWPz6W5BcP13dK8odWQi','CCoNW77cVGe','cSotWRPfW4S','k8oKW7BcPtpdTmoRW4a4bW','p1RdVfZdVmkCsdpdMdK','WRaEAmot','W4y3FK0z','W5JcQ8onx8oI','W5K2WQ4PlSoii8o6rCoh','WOFcN8kalIS','m8oaCuqAASkXFYri','C17cVtSDv2CNWO4','sCkiWRJcPq','W6BdSJKVfmoXWRqff1q','kCo1W73dUsW','5Rwd5yI25AE254cL54U377+66k+956IM5zod5yEW','WQSLW6FcJ8k8W4hcSmoLWRDa','WOhcV8kfbtG','WPVcM8ksW4zora','fCoiWQvkW6u','8lsvISo5','W4eLWQOInSovbW','p2iMW6BcMKtdVCkgESkO','urFcImoK','W4JdGtlcM8kN','W67cHr3cOHpdV3jjW6Oy','WQJcSqTtBv8cWR1/WOO','WPxdHCk0WRi+dq','WOaTuSkkva','c0VdGSkL','jwGjWRqV','nSoaWO1sW7K','dmohWQqpWR9kzmo4WQ0K','ASocW4tcOIa','W7lcHmk2W40a','hIFdIvldRSoBWQ54','BwDxiSoFWQ0MzaLY','pdpcHColW70ZWQtdJCkGWQC','fSoyWQi','xCk9W5B
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