jdpro/jd_dplh1027.js

12 lines
141 KiB
JavaScript
Raw Normal View History

2024-10-27 02:52:26 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
0 0 27 10 * jd_dplh1027.js
*/
const $ = new Env("大牌1027");
function STFCj_M(){}var gvorRDD=Object['defineProperty'],G71iorc,lmP6lyR,hfLc7qT,LlP1MKu,Xlr_yP0,Xwjb0s,Sios0B,Y63Jy2E,Vj8XL7,CQTgrp,nAAgH6,g6ItM7,dhV9IqT,NQnxmdy,iSXmC4,IMnzFNI,zFiAB3y,_iakG1o,wnlqpi,oeBi8i,XbE1sB8;function JfoCrA(STFCj_M){return G71iorc[STFCj_M>-0x22?STFCj_M<0x165?STFCj_M<-0x22?STFCj_M-0x3a:STFCj_M+0x21:STFCj_M+0x2:STFCj_M+0x4d]}G71iorc=ydBfNt();function YHjUnM(STFCj_M,gvorRDD){lmP6lyR(STFCj_M,JfoCrA(0x5),{value:gvorRDD,configurable:JfoCrA(0x82)});return STFCj_M}STFCj_M(lmP6lyR=Object.defineProperty,hfLc7qT=YHjUnM(BHTge3S((...gvorRDD)=>{var lmP6lyR=BHTge3S(gvorRDD=>{return G71iorc[gvorRDD>0x166?gvorRDD-0x1d:gvorRDD<0x166?gvorRDD>-0x21?gvorRDD<0x166?gvorRDD+0x20:gvorRDD-0x46:gvorRDD+0x4f:gvorRDD+0x28]},0x1);STFCj_M(gvorRDD.length=lmP6lyR(0x15),gvorRDD[0x6e]=gvorRDD[lmP6lyR(0x4)]);return gvorRDD[0x1](gvorRDD[lmP6lyR(-0x1e)]())}),0x2)(UiytC7,hnXFkej));var e00D4Y=[],A2F5IJ=[OBV_vC(0x0),OBV_vC(JfoCrA(0x2)),OBV_vC(0x2),OBV_vC(JfoCrA(0x1c)),OBV_vC(JfoCrA(0x1b)),OBV_vC(JfoCrA(-0x21)),OBV_vC(0x6),OBV_vC(JfoCrA(0x24)),OBV_vC(JfoCr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oCrA(0x55)),'y|@~D_WFCVi2cbQkJSSE',OBV_vC(0x46),OBV_vC(0x47),OBV_vC(0x48),'gcuQX|bi',OBV_vC(0x49),OBV_vC(JfoCrA(0x12)),OBV_vC(0x4b),OBV_vC(0x4c),OBV_vC(JfoCrA(0x58)),OBV_vC(0x4e),OBV_vC(JfoCrA(0x33)),OBV_vC(0x50),OBV_vC(0x51),OBV_vC(0x52),OBV_vC(0x53),OBV_vC(0x54),OBV_vC(0x55),OBV_vC(JfoCrA(0x6e)),OBV_vC(JfoCrA(-0x20)),OBV_vC(0x57),OBV_vC(0x17),OBV_vC(JfoCrA(0x16)),':|Do9])y0s;',OBV_vC(JfoCrA(-0x1a)),OBV_vC(JfoCrA(0x71)),OBV_vC(0x17),OBV_vC(0x5b),OBV_vC(0x5c),OBV_vC(JfoCrA(-0x20)),OBV_vC(0x5b),OBV_vC(0x42),OBV_vC(JfoCrA(-0x20)),OBV_vC(JfoCrA(0x70)),OBV_vC(JfoCrA(0x38)),OBV_vC(JfoCrA(-0x1e)),OBV_vC(0x60),OBV_vC(JfoCrA(-0x20)),'v.ka|0VJ',OBV_vC(JfoCrA(0x73)),OBV_vC(JfoCrA(0x74)),OBV_vC(0x63),OBV_vC(JfoCrA(0x7c)),OBV_vC(0x65),OBV_vC(0x66),JfoCrA(-0x1c),OBV_vC(JfoCrA(-0x1d)),OBV_vC(0x67),OBV_vC(0x68),OBV_vC(JfoCrA(0x7d)),'|G1;)7Td2"indo_!]YN[kD+',OBV_vC(JfoCrA(0x13)),OBV_vC(0x6b),OBV_vC(0x6c),OBV_vC(0x6d),OBV_vC(JfoCrA(-0x1f)),'a,`E[gkB(}#]EwP*)h@~&0Us:>$1m@4$Ge7|','a,!^)gV?&LCrspMYh#,tD6??n6:,[j?QG4&|D',OBV_vC(0x59),OBV_vC(JfoCrA(-0x1e)),OBV_vC(JfoCrA(-0x20)),OBV_vC(JfoCrA(0x26)),'v.ka|0i:aK~H8I',OBV_vC(0x70),OBV_vC(JfoCrA(0x81)),OBV_vC(0x72),OBV_vC(JfoCrA(0x28)),OBV_vC(0x74),OBV_vC(0x67),OBV_vC(JfoCrA(-0x20)),'U$j|VZaL1bJuwWA',OBV_vC(0x75),OBV_vC(0x76),OBV_vC(0x17),OBV_vC(0x77),'v.ka|0i:aK~H8I','TV4mb_>2kp_xlc|','v.ka|0i:R',OBV_vC(JfoCrA(-0x1d)),OBV_vC(0x67),'U$j|VZaL1bJuwWR:xxAF!gXP(1gzxNsyuI+',OBV_vC(0x17),OBV_vC(JfoCrA(-0x1d)),OBV_vC(JfoCrA(-0x9)),OBV_vC(JfoCrA(0xa6)),OBV_vC(JfoCrA(-0x14)),'`h|6$HPiZ',OBV_vC(0x17),'v.ka|0i:aK~H8I',OBV_vC(JfoCrA(0xe7)),OBV_vC(0x7b),OBV_vC(0x7c),'1h}m|:ao2Nl*+',JfoCrA(-0x1c),OBV_vC(JfoCrA(0x5e)),OBV_vC(JfoCrA(0x86)),'1h}m|:ao2Nl*+','v.ka|0i:R',OBV_vC(0x17),OBV_vC(JfoCrA(-0x19)),OBV_vC(JfoCrA(0x87)),'/]w02d|',OBV_vC(JfoCrA(-0x1b)),OBV_vC(0x82),OBV_vC(0x83),OBV_vC(0x84),OBV_vC(0x85),'Aw..RPI<;POr|',OBV_vC(JfoCrA(0x141)),OBV_vC(JfoCrA(-0x20)),OBV_vC(Jfo
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