mirror of https://github.com/6dylan6/jdpro.git
12 lines
139 KiB
JavaScript
12 lines
139 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 8 11 * jd_dplh1108.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌1108");
|
|||
|
function PbnDIA(){}var lCkjbHW=Object['defineProperty'],MmDLzqs,GtyNkO,J9mLbVh,pm5ijd,SBAMeW2,oatT38h,c1d1Qz,No2flH,lOTR4Ds,MON7pii,MzEYQC6,AlWv9Y,zh38Rex,qk_EqUZ,xLdaIh,troQmA,Rt0IdPE,Ib4jeIt,BupsLa,xnwOU6,OPquWm;function sttAAc(PbnDIA){return MmDLzqs[PbnDIA<0x1a4?PbnDIA-0x4a:PbnDIA-0x2d]}MmDLzqs=ehL6BWK();function U9WSOg(PbnDIA,lCkjbHW){var J9mLbVh=VWmc71z(PbnDIA=>{return MmDLzqs[PbnDIA>0x152?PbnDIA+0x5:PbnDIA+0x8]},0x1);return GtyNkO(PbnDIA,J9mLbVh(0x3c),{value:lCkjbHW,configurable:!0x0})}PbnDIA(GtyNkO=Object.defineProperty,J9mLbVh=VWmc71z((PbnDIA,lCkjbHW)=>{return lCkjbHW(PbnDIA())},0x2)(skNrPMG,hAGvSZ));var NozLjDT=[],PMCGts=[Joa9sy(sttAAc(0x6c)),Joa9sy(0x1),Joa9sy(0x2),'z!lQI;"f|,CqA',Joa9sy(sttAAc(0x88)),Joa9sy(0x4),Joa9sy(sttAAc(0x8f)),'99[=/4y|','{exd=v[|','k2$*@Zy|',Joa9sy(0x6),Joa9sy(0x7),Joa9sy(sttAAc(0x5b)),Joa9sy(sttAAc(0x7f)),Joa9sy(sttAAc(0x74)),Joa9sy(sttAAc(0xa1)),Joa9sy(sttAAc(0x6f)),Joa9sy(sttAAc(0x84)),Joa9sy(0xe),Joa9sy(0xf),Joa9sy(0x10),Joa9sy(0x11),Joa9sy(0x12),Joa9sy(0x13),Joa9sy(0x14),Joa9sy(sttAAc(0xa5)),Joa9sy(sttAAc(0xa6)),Joa9sy(sttAAc(0x187)),Joa9sy(sttAAc(0x79)),Joa9sy(sttAAc(0xa9)),Joa9sy(0x1a),Joa9sy(0x1b),Joa9sy(0x1c),Joa9sy(0x11),'T};awiiw_F/PC<|>',Joa9sy(sttAAc(0xab)),Joa9sy(0x1e),Joa9sy(sttAAc(0xaf)),Joa9sy(0x20),Joa9sy(sttAAc(0x18e)),Joa9sy(sttAAc(0xb0)),Joa9sy(sttAAc(0xa0)),'~[64RvW|',Joa9sy(0x24),'i2J(/eB|',Joa9sy(0x25),Joa9sy(sttAAc(0xf0)),Joa9sy(sttAAc(0x77)),Joa9sy(0x28),Joa9sy(sttAAc(0xb1)),Joa9sy(sttAAc(0xc7)),Joa9sy(0x2b),Joa9sy(0x2c),Joa9sy(sttAAc(0x75)),'cNQ+I,U.{K|Gw','S9y4",s|',Joa9sy(sttAAc(0xb5)),Joa9sy(0x2f),Joa9sy(0x30),'v:eH+v[|',Joa9sy(0x12),'%}a/==uC2xB2vEu,oFvV05P]Us#"9Lgm5B[QjzKj+NC`|qk:3"AgW~b$LhhE}BT.Bms:9Cw',Joa9sy(0x31),Joa9sy(sttAAc(0x4a)),'|P%+<','}|:@f%e3UbS?Qfv,@mK3U].Q<4+lCN9g9+Z=b~^mO=VysEZmxpHDRkKD=px[G+@[/hf9wNh3EXH(wah,>m;V"9w',Joa9sy(sttAAc(0x98)),':3F=}O5|',Joa9sy(0x34),Joa9sy(0x35),Joa9sy(0x36),Joa9sy(sttAAc(0xb2)),Joa9sy(sttAAc(0x4e)),Joa9sy(0x39),Joa9sy(sttAAc(0xb3)),Joa9sy(0x3b),Joa9sy(sttAAc(0xb6)),Joa9sy(0x3d),Joa9sy(sttAAc(0xb7)),Joa9sy(0x3f),sttAAc(0x4c),Joa9sy(0x40),Joa9sy(sttAAc(0x4a)),'|P%+<',Joa9sy(0x41),Joa9sy(sttAAc(0xb8)),sttAAc(0x67),Joa9sy(0x43),Joa9sy(sttAAc(0xcb)),'9+_a{O>|',Joa9sy(sttAAc(0xba)),Joa9sy(sttAAc(0xe0)),Joa9sy(sttAAc(0x161)),Joa9sy(0x48),'p[J(O(b|',Joa9sy(sttAAc(0x4f)),Joa9sy(0x12),'XOq1#Z<u<GX@s}>6[QzINiUdrJ|i;eh3olat6zPA%c~fkYO3O}4Z6c%dV",Wag+U?/',Joa9sy(sttAAc(0x4b)),Joa9sy(sttAAc(0xbb)),Joa9sy(0x4b),'2SE(g{N|',Joa9sy(0x4c),Joa9sy(sttAAc(0x171)),Joa9sy(0x12),Joa9sy(0x4e),Joa9sy(0x4f),'2SE(g{N|',Joa9sy(0x4c),Joa9sy(sttAAc(0x4b)),Joa9sy(0x50),Joa9sy(sttAAc(0x76)),Joa9sy(sttAAc(0x4b)),Joa9sy(sttAAc(0xc5)),Joa9sy(0x52),Joa9sy(sttAAc(0x95)),Joa9sy(sttAAc(0x94)),Joa9sy(sttAAc(0x50)),Joa9sy(0x12),Joa9sy(sttAAc(0x194)),Joa9sy(0x57),Joa9sy(0x58),Joa9sy(0x59),Joa9sy(0x5a),Joa9sy(0x5b),Joa9sy(sttAAc(0x4d)),Joa9sy(0x3f),sttAAc(0x4c),'p[J(5{F|','OeE4u.|ojBXY+Qjg',Joa9sy(sttAAc(0xcd)),Joa9sy(sttAAc(0xc9)),Joa9sy(sttAAc(0x53)),'$FDM.Pw^];*v^p=Q5R76B,/bXKLF`>UR$2.Ba=A|}::2I[,vnywNW4k5*/y%NU]rK,66$Yb/(;Y^J*#vA0OQ%xRN,:c!3~AtJ!xE',Joa9sy(sttAAc(0xbf)),Joa9sy(0x61),Joa9sy(0x62),Joa9sy(0x63),Joa9sy(0x64),Joa9sy(sttAAc(0xcc)),Joa9sy(0x66),Joa9sy(0x67),Joa9sy(sttAAc(0x4b)),'V1W4l"C|',sttAAc(0x54),Joa9sy(sttAAc(0x9b)),Joa9sy(0x68),Joa9sy(0x5c),Joa9sy(0x3f),'aP;d="6|',Joa9sy(sttAAc(0x4b)),'%}]nN~4bX+|(KEa,[[M3p6opWRlJ[;&j(Pw',Joa9sy(0x69),Joa9sy(0x12),Joa9sy(0x6a),sttAAc(0x52),Joa9sy(0x4c),'{sW4n*N|',Joa9sy(sttAAc(0xd4)),Joa9sy(sttAAc(0xd5)),Joa9sy(0x5c),Joa9sy(0x3f),'aP;d="6|','%}]nN~4bX+|(KEa,[[_:.lrYcXlJ[;&j(Pw',Joa9sy(sttAAc(0x4b)),Joa9sy(0x3f),sttAAc(0x4c),Joa9sy(sttAAc(0xd6)),'$u"=|xU.a',Joa9sy(sttAAc(0x56)),Joa9sy(0x12),Joa9sy(0x57),Joa9sy(0x6f),'B9lkNO5|','Yu%+D&y|',Joa9sy(sttAAc(0x199)),Joa9sy(0x71),Joa9sy(0x5c),Joa9sy(0x56),Joa9sy(sttAAc(0xd9)),Joa9sy(0x70),Joa9sy(0x71),Joa9sy(sttAAc(0x4d)),Joa9sy(0x12),Joa9sy(0x73),Joa9sy(0x74),Joa9sy(0x39),Joa9sy(0x75),Joa9sy(sttAAc(0xaa)),Joa9sy(0x12),'rl;Gqv%s0Ng#2+K2HJZDWUWukf5vo,aoMj|q#m<,d6W~"=gT"}}TX%',Joa9sy(sttAAc(0x4e)),Joa9sy(sttAAc(0x4b)),Joa9sy(0x77),'Z%F4"v)o$tOmGcnscsy46Ow<3yG
|
|||
|
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
|