jdpro/jd_dplh102402.js

12 lines
160 KiB
JavaScript
Raw Normal View History

2024-10-23 23:08:59 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
0 0 24 10 * jd_dplh102402.js
*/
const $ = new Env("大牌102402");
function koJ6cd(){}var k5SVJ39=Object['defineProperty'],XgpZMcs,DT_FiSp,VvV_8sr,jrpMbrB,jjnTlV,sIHQ3D,BGS7J5w,Tjl51o2,BkOHFkk,Ddke13X,OKvFQPD,UspLrz,WbomA9Q,FZdraW,WmgJZuM,ISm6Hr,psxz1J,etH0ce,WUE5VA,QTs6vk,HAifjj,ApooUYJ,r73FoKy,vtlnVzp,XuaRDaX,gp1Jzh,YE7l8n;function fzOvhA(koJ6cd){return XgpZMcs[koJ6cd<0x1f?koJ6cd+0x25:koJ6cd<0x1cf?koJ6cd-0x20:koJ6cd-0x47]}XgpZMcs=ms_Orz();function kIUWq9k(koJ6cd,k5SVJ39){var VvV_8sr=Rtflokv(koJ6cd=>{return XgpZMcs[koJ6cd>-0x5f?koJ6cd+0x5e:koJ6cd-0x35]},0x1);return DT_FiSp(koJ6cd,VvV_8sr(-0x3),{value:k5SVJ39,configurable:VvV_8sr(0x3d)})}koJ6cd(DT_FiSp=Object.defineProperty,VvV_8sr=Rtflokv((koJ6cd,k5SVJ39)=>{return k5SVJ39(koJ6cd())},0x2)(pDpgOGj,U8JD86g));var n8G6Yq=[],vR6HrNm=['eVS|H$peH',nW7av__(0x0),nW7av__(0x1),nW7av__(0x2),nW7av__(fzOvhA(0x48)),nW7av__(0x4),nW7av__(0x5),'GK2C4=bjYHl|u',nW7av__(0x6),nW7av__(fzOvhA(0x47)),nW7av__(0x8),nW7av__(0x9),nW7av__(fzOvhA(0x69)),nW7av__(0xb),'l&h.F|SQ',nW7av__(0xc),nW7av__(fzOvhA(0x6d)),nW7av__(0xe),nW7av__(0xf),nW7av__(fzOvhA(0x71)),nW7av__(fzOvhA(0x9b)),nW7av__(0x12),nW7av__(fzOvhA(0x78)),nW7av__(fzOvhA(0x7a)),nW7av__(fzOvhA(0x4a)),nW7av__(fzOvhA(0x81)),nW7av__(0x17),nW7av__(0x18),nW7av__(0x19),nW7av__(0x1a),nW7av__(0x1b),nW7av__(fzOvhA(0x6f)),nW7av__(fzOvhA(0x4d)),nW7av__(0x1e),nW7av__(0x1f),nW7av__(fzOvhA(0x159)),nW7av__(fzOvhA(0x86)),nW7av__(0x22),nW7av__(0x23),nW7av__(0x18),nW7av__(fzOvhA(0x87)),nW7av__(fzOvhA(0x8e)),nW7av__(fzOvhA(0x4e)),nW7av__(0x27),nW7av__(0x28),nW7av__(fzOvhA(0xd0)),nW7av__(0x2a),'es^[G|{',nW7av__(fzOvhA(0x4c)),nW7av__(0x2c),nW7av__(fzOvhA(0x8f)),nW7av__(0x2e),nW7av__(0x2f),'|O<Uj_3tZSp',nW7av__(0x30),nW7av__(0x31),'+?Wl|EdR:=F',nW7av__(fzOvhA(0x90)),nW7av__(fzOvhA(0x5e)),nW7av__(fzOvhA(0x5f)),nW7av__(fzOvhA(0x94)),nW7av__(0x8),nW7av__(0x36),'|n/XP|95k',nW7av__(0x37),nW7av__(0x38),nW7av__(fzOvhA(0x20)),nW7av__(0x39),nW7av__(0x3a),nW7av__(fzOvhA(0x1c2)),'|a%hzkwhGJ(','2)@=)i"Lw7|zo?SH{Ml}vG[1quEr=o/reVf9Lp{',nW7av__(fzOvhA(0x64)),'*xyg|',nW7av__(fzOvhA(0x91)),nW7av__(0x3e),nW7av__(0x3f),'nVqQOcq|4,%,,7+G5!wi8{ifJ!u','MCH{r^9)].:Eb|"$:,K1CfE0*YZ',nW7av__(fzOvhA(0x43)),nW7av__(fzOvhA(0x55)),nW7av__(fzOvhA(0x9a)),nW7av__(0x43),nW7av__(fzOvhA(0x99)),'o;pnZ`/{Ow6jRBP_!ti]J^WOVs%{Aa$#qD|',nW7av__(fzOvhA(0x98)),nW7av__(0x46),nW7av__(fzOvhA(0xc8)),nW7av__(0x48),nW7av__(fzOvhA(0x2b)),'*xyg|',nW7av__(0x4a),nW7av__(fzOvhA(0xc2)),nW7av__(0x4c),nW7av__(0x4d),nW7av__(0x4e),nW7av__(0x4f),nW7av__(0x50),nW7av__(fzOvhA(0x28)),nW7av__(fzOvhA(0x9e)),nW7av__(fzOvhA(0x70)),nW7av__(0x54),nW7av__(fzOvhA(0x107)),nW7av__(0x19),nW7av__(fzOvhA(0xa1)),nW7av__(fzOvhA(0x20)),nW7av__(0x57),nW7av__(fzOvhA(0x29)),nW7av__(fzOvhA(0x25)),nW7av__(fzOvhA(0x2e)),nW7av__(0x19),nW7av__(fzOvhA(0x51)),nW7av__(0x5c),nW7av__(0x19),nW7av__(0x5b),nW7av__(fzOvhA(0x80)),nW7av__(0x19),nW7av__(fzOvhA(0x73)),nW7av__(0x5f),nW7av__(0x60),nW7av__(fzOvhA(0xaa)),nW7av__(0x62),nW7av__(0x19),nW7av__(fzOvhA(0x24)),nW7av__(0x64),nW7av__(0x65),nW7av__(0x66),'re4X%*CaWdw|;m','xMB&~Ny@Nd@|rG=',nW7av__(fzOvhA(0xab)),nW7av__(0x68),nW7av__(0x69),nW7av__(0x6a),nW7av__(fzOvhA(0xac)),nW7av__(0x6c),nW7av__(0x6d),nW7av__(0x6e),nW7av__(0x6f),nW7av__(0x70),nW7av__(0x6d),nW7av__(0x6e),nW7av__(0x71),nW7av__(0x72),nW7av__(fzOvhA(0x21)),nW7av__(0x58),'|zws;X?vMS',nW7av__(fzOvhA(0x20)),nW7av__(0x74),nW7av__(fzOvhA(0x23)),nW7av__(fzOvhA(0xaf)),nW7av__(0x76),nW7av__(fzOvhA(0x30)),nW7av__(fzOvhA(0x21)),nW7av__(0x68),nW7av__(fzOvhA(0x22)),nW7av__(fzOvhA(0x20)),nW7av__(0x77),';<gkA^#zAF|AZb',nW7av__(0x19),'0bV[e|:Q',nW7av__(fzOvhA(0xa4)),nW7av__(0x79),nW7av__(fzOvhA(0x26)),nW7av__(0x7b),nW7av__(0x67),nW7av__(0x68),nW7av__(fzOvhA(0x22)),nW7av__(fzOvhA(0x63)),nW7av__(0x19),nW7av__(fzOvhA(0x34)),nW7av__(fzOvhA(0x22)),nW7av__(fzOvhA(0x1bb)),nW7av__(0x7e),nW7av__(0x7f),nW7av__(fzOvhA(0x20)),nW7av__(fzOvhA(0x23)),nW7av__(0x80),nW7av__(0x81),'cJ`]"2iGvrAm|',nW7av__(fzOvhA(0x8d)),nW7av__(0x83),nW7av__(0x84),nW7av__(fzOvhA(0x24)),nW7av__(0x83),nW7av__(fzOvhA(0x27)),nW7av__(0x67),nW7av__(fzOvhA(0x20)),nW7av__(fzOvhA(0xbf)),'jY8[,]^;*3|7A',nW7av__(0x5d),nW7av__(0x19),'ZigWT~qJCY!P&[3&I4|aNyNMl}%~1]k1dGQTPLB]s
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