jdpro/jd_dplh102404.js

12 lines
143 KiB
JavaScript
Raw Normal View History

2024-10-23 23:08:59 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
0 0 24 10 * jd_dplh102404.js
*/
const $ = new Env("大牌102404");
function M7VkFU(){}var _Nx6mDw=Object['defineProperty'],tRMjGa,CbV7dK,E0Dcy2P,f30MwM,Nnb3jM,HIGS575,R8H26q6,rH6h2__,ADRPZQk,mIDEfpV,H7SObM,aOACuH,jAydZlm,lkHoXo,mudaceB,zx0ZSA,RTK0uH,hWbQcjJ,jegaZQh;function vywIDl(M7VkFU){return tRMjGa[M7VkFU>0x161?M7VkFU-0x4d:M7VkFU>-0x6?M7VkFU>-0x6?M7VkFU>0x161?M7VkFU+0x3d:M7VkFU+0x5:M7VkFU-0x33:M7VkFU-0x29]}tRMjGa=ANXyX0();function pgg8y1W(M7VkFU,_Nx6mDw){return CbV7dK.call(null,M7VkFU,'length',{value:_Nx6mDw,configurable:vywIDl(0x86)})}M7VkFU(CbV7dK=Object.defineProperty,E0Dcy2P=ptdew2W((M7VkFU,_Nx6mDw)=>{return _Nx6mDw(M7VkFU())},0x2)(Er0KRQo,RGz60T));var Qy0MyI=[],e1IahWS=[RxC44c(0x0),RxC44c(vywIDl(0x1d)),RxC44c(0x2),RxC44c(0x3),RxC44c(vywIDl(0x1c)),RxC44c(vywIDl(0x1a)),RxC44c(vywIDl(0x23)),RxC44c(0x7),RxC44c(0x8),RxC44c(vywIDl(0x70)),RxC44c(vywIDl(0x4b)),RxC44c(0xb),RxC44c(vywIDl(0x25)),RxC44c(vywIDl(0x3e)),RxC44c(0xe),RxC44c(0xf),RxC44c(0x10),RxC44c(vywIDl(0x4e)),RxC44c(vywIDl(0x26)),RxC44c(0x13),RxC44c(vywIDl(0x7c)),RxC44c(0x15),RxC44c(0x16),RxC44c(vywIDl(-0x5)),RxC44c(0x18),RxC44c(vywIDl(0x6)),RxC44c(vywIDl(0x32)),RxC44c(vywIDl(0x55)),RxC44c(vywIDl(0x56)),RxC44c(0x1d),RxC44c(0x1e),RxC44c(0x1f),RxC44c(vywIDl(0x59)),RxC44c(0x16),RxC44c(vywIDl(0x2a)),RxC44c(0x22),RxC44c(vywIDl(0x93)),RxC44c(0x24),'~dLz]ey(/SF&ACbfGU>*CIdpGqh,/QhUVW$SYcs5)h"2MC|~2k@hb;vS]qa2ttbf%*w;PB>OpSr$dQ"]bvs,]c2v!SPrdI`]r<|KM1Oj!{#%.&(HZ]z`V~CHn:l4`BzuA4Q,lI*UT>C!uB`])%hE3fn',RxC44c(vywIDl(0xa0)),RxC44c(0x26),RxC44c(vywIDl(0x5a)),RxC44c(0x28),RxC44c(vywIDl(0xb2)),RxC44c(vywIDl(0x43)),RxC44c(0x2b),RxC44c(0x2c),'[JGsXpq=Aua7=QNt#**MQ6Efl&A"U#M`f;wDGHS+7w3[%[Nf>Ht>_;8i<{xH:eKFA>|,_"8:X>;2/xS',RxC44c(vywIDl(0x5c)),RxC44c(0x2e),RxC44c(vywIDl(0x5d)),RxC44c(0x30),RxC44c(vywIDl(0x2f)),RxC44c(0x32),RxC44c(vywIDl(-0x5)),RxC44c(0x33),RxC44c(vywIDl(0x38)),RxC44c(vywIDl(0x29)),RxC44c(0x36),RxC44c(0x37),RxC44c(vywIDl(0x1)),RxC44c(vywIDl(0x158)),'G8{dt<%JNDFxCt;ed2qJNliC57b}gU)V)b[KDs_24K.u/M[2RLSQW6qQKLRZybdZ"pt)OUpJM|ShOkpe+23.c)O','~dLz]ey(/ShMR;WthU|>dbM^}3F',RxC44c(0x3a),RxC44c(vywIDl(-0x4)),RxC44c(0x3c),'XU|Ky@n',RxC44c(0x3d),RxC44c(vywIDl(0x61)),RxC44c(vywIDl(0x24)),RxC44c(0x40),RxC44c(0x41),RxC44c(vywIDl(0x27)),RxC44c(0x43),RxC44c(0x44),RxC44c(vywIDl(0x36)),RxC44c(0x46),RxC44c(vywIDl(0x68)),RxC44c(vywIDl(0x6a)),'|)3>v6^+X:$iO',RxC44c(0x49),RxC44c(vywIDl(0x16)),RxC44c(vywIDl(0xb9)),RxC44c(vywIDl(0x6b)),RxC44c(vywIDl(-0x1)),'GUpSs9T|k',RxC44c(vywIDl(-0x3)),RxC44c(vywIDl(0x6c)),RxC44c(0x50),RxC44c(vywIDl(0x72)),RxC44c(0x17),RxC44c(vywIDl(0x74)),RxC44c(0x53),'85|g`Q&K!5pM]wke:L.JiSO',RxC44c(0x54),RxC44c(0x17),RxC44c(0x55),RxC44c(0x56),RxC44c(vywIDl(0x8)),RxC44c(vywIDl(-0x5)),RxC44c(vywIDl(0x3d)),'TdIK|;n',RxC44c(0x17),RxC44c(0x58),'XU|Ky@n',RxC44c(0x17),RxC44c(0x59),RxC44c(vywIDl(0x82)),RxC44c(0x5b),RxC44c(vywIDl(-0x4)),RxC44c(vywIDl(-0x5)),RxC44c(vywIDl(0x7a)),RxC44c(vywIDl(0x37)),RxC44c(0x5e),RxC44c(0x5f),RxC44c(vywIDl(0x79)),RxC44c(0x61),RxC44c(0x62),'n|}D@xW9x%90_]h',RxC44c(vywIDl(0x7b)),RxC44c(0x43),RxC44c(vywIDl(0x9)),'ol,B|9XY];vy=R]"',RxC44c(0x65),RxC44c(vywIDl(0x63)),'XU|Ky@GHk','?S|mC:yfFIj*fW;i523.aHYtt|','uZFZsP8].[),SV|A9tL{O;u/[v','ap|QpJTK"5^2Dh[ed2qJNl260b','eR|g!zBTrK.MS(pe5zi.JvO',RxC44c(vywIDl(0x7d)),'B>6d)GxJt/p}dCylR|5Z_#s4AV?vU5<?S";k',RxC44c(0x68),RxC44c(0x69),RxC44c(vywIDl(0x4f)),RxC44c(vywIDl(0x9e)),RxC44c(vywIDl(-0x5)),RxC44c(vywIDl(0x2)),RxC44c(vywIDl(0x84)),RxC44c(0x6e),RxC44c(vywIDl(0x83)),RxC44c(0x43),RxC44c(0x64),RxC44c(vywIDl(-0x5)),'<Gl?Us7D|b8hqMkeZZwJLf^LaW}@Z3,ThEO',RxC44c(0x70),RxC44c(0x71),RxC44c(0x72),RxC44c(vywIDl(0x85)),RxC44c(0x74),RxC44c(0x75),RxC44c(0x5e),RxC44c(0x76),RxC44c(0x77),RxC44c(vywIDl(0x77)),RxC44c(0x64),RxC44c(0x79),RxC44c(0x72),RxC44c(0x43),RxC44c(0x64),RxC44c(0x7a),RxC44c(0x7b),RxC44c(vywIDl(0x8c)),RxC44c(vywIDl(-0x5)),RxC44c(0x7d),RxC44c(vywIDl(0x8d)),RxC44c(vywIDl(0x8e)),'|!R>?e7WF3#%O',RxC44c(0x6f),RxC44c(vywIDl(0x21)),RxC44c(0x81),RxC44c(0x82),',p}qd|.lG5bH,!#m=f',RxC44c(0x83),'|!R>?e7WF3#%O',RxC44c(vywIDl(0x73)),RxC44c(vywIDl(-0x5)),RxC44c(vywIDl(0x6e)),RxC44c(0x86),RxC44c(0x87),RxC44c(0x72),'A}3y1;</HUV&*bq*S@[QaNa!6tP;^ek^wT81&25e>fascKVIcGGI|<',RxC44c(vy
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