mirror of https://github.com/6dylan6/jdpro.git
12 lines
140 KiB
JavaScript
12 lines
140 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 24 10 * jd_dplh102403.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌102403");
|
|||
|
function Oe9OGCf(){}var mWuy7T=Object['defineProperty'],gelQg1,uWrqoZ,x3YofN,duDrfY,cKGr2Q,EcIRbA,R3plXT,iYA_ud,U_eUHU,nmSAbtf,EH2vKL,gQ0tzo,XlZw6_,AX3bCNl,uqfGwr,HilmkO,cUU4tPo,LUfMtFq,ms2NPGY,aTzsjM;function VoNanO(Oe9OGCf){return gelQg1[Oe9OGCf>0x165?Oe9OGCf-0x43:Oe9OGCf>-0x1a?Oe9OGCf>-0x1a?Oe9OGCf+0x19:Oe9OGCf+0x4f:Oe9OGCf+0x43]}gelQg1=dblvLpj();function Jill7h1(Oe9OGCf,mWuy7T){uWrqoZ(Oe9OGCf,'length',{value:mWuy7T,configurable:VoNanO(0x29)});return Oe9OGCf}Oe9OGCf(uWrqoZ=Object.defineProperty,x3YofN=Jill7h1(BboZpWI((...mWuy7T)=>{var uWrqoZ=BboZpWI(mWuy7T=>{return gelQg1[mWuy7T>0x10?mWuy7T<0x10?mWuy7T+0x56:mWuy7T-0x11:mWuy7T+0x3b]},0x1);Oe9OGCf(mWuy7T.length=uWrqoZ(0x43),mWuy7T.zYPzFW=-VoNanO(0xe5));if(mWuy7T.zYPzFW>mWuy7T.zYPzFW+0x8a){return mWuy7T[0x5f]}else{var x3YofN=BboZpWI(mWuy7T=>{return gelQg1[mWuy7T>0x30?mWuy7T>0x30?mWuy7T>0x30?mWuy7T>0x1af?mWuy7T-0x26:mWuy7T-0x31:mWuy7T-0x51:mWuy7T-0x3e:mWuy7T+0x5e]},0x1);return mWuy7T[x3YofN(0x51)](mWuy7T[VoNanO(0x8)]())}}),0x2)(UdGm2p,oQbWPBo));var etDtud=[],_mF_gL=[OcIcIYV(0x0),OcIcIYV(0x1),OcIcIYV(0x2),OcIcIYV(0x3),OcIcIYV(0x4),OcIcIYV(0x5),OcIcIYV(VoNanO(0xd)),OcIcIYV(VoNanO(0xf)),OcIcIYV(VoNanO(0x14)),OcIcIYV(0x9),OcIcIYV(0xa),OcIcIYV(VoNanO(0x15)),OcIcIYV(VoNanO(0x157)),OcIcIYV(VoNanO(0x1)),OcIcIYV(VoNanO(0x20)),OcIcIYV(0xf),OcIcIYV(0x10),OcIcIYV(0x11),OcIcIYV(0x12),OcIcIYV(0x13),OcIcIYV(0x14),OcIcIYV(0x15),OcIcIYV(VoNanO(0x34)),OcIcIYV(0x17),OcIcIYV(0x18),OcIcIYV(VoNanO(0x59)),OcIcIYV(0x1a),OcIcIYV(0x1b),OcIcIYV(0x1c),OcIcIYV(VoNanO(-0x9)),OcIcIYV(0x1e),OcIcIYV(0x1f),OcIcIYV(0x20),OcIcIYV(0x16),OcIcIYV(VoNanO(0x37)),OcIcIYV(VoNanO(0x38)),OcIcIYV(VoNanO(0x39)),OcIcIYV(0x24),OcIcIYV(VoNanO(0x1d)),OcIcIYV(VoNanO(0x9a)),OcIcIYV(VoNanO(0x65)),OcIcIYV(0x28),'>n^[6c1r*P~9_Z0`hN!$ZFnihbfo*JfND%vPkGK(qfyE7Z/>E"Sf0O}P6b@E??0`4$QOs&!aiP|vnJy60}Ko6GE}zPs|nF86|=/T7]a+zU54Y9?,{!/T5V."gfUfI&yH."Doz:X"v?s|xCy6fhhW','`*7fN|L','aWXl>|L',OcIcIYV(0x29),OcIcIYV(VoNanO(0x46)),OcIcIYV(0x2b),OcIcIYV(VoNanO(0x12)),OcIcIYV(VoNanO(0xa6)),OcIcIYV(0x2e),OcIcIYV(VoNanO(0x160)),OcIcIYV(VoNanO(0x92)),OcIcIYV(VoNanO(0x1c)),OcIcIYV(VoNanO(0x4c)),OcIcIYV(0x32),OcIcIYV(0x33),OcIcIYV(VoNanO(0x27)),OcIcIYV(0x17),OcIcIYV(VoNanO(0x4f)),'Qi@_|?J01v!n/+BSiH:pW=a',OcIcIYV(VoNanO(0x3a)),OcIcIYV(VoNanO(0xcc)),'l)M})BtEu|:~q6,ILz<?+A0j=xd^}q7^Ryw[E8L',OcIcIYV(VoNanO(0x13)),OcIcIYV(0x39),OcIcIYV(0x3a),OcIcIYV(0x3b),OcIcIYV(0x3c),OcIcIYV(0x3d),OcIcIYV(0x3e),OcIcIYV(0x3f),OcIcIYV(0x40),OcIcIYV(0x41),OcIcIYV(VoNanO(0x126)),OcIcIYV(VoNanO(0x51)),OcIcIYV(VoNanO(0xb)),OcIcIYV(VoNanO(0x45)),OcIcIYV(VoNanO(0x82)),OcIcIYV(0x47),OcIcIYV(VoNanO(0x2f)),OcIcIYV(0x49),OcIcIYV(0x4a),OcIcIYV(0x4b),OcIcIYV(VoNanO(0x56)),OcIcIYV(0x4d),OcIcIYV(VoNanO(-0x2)),OcIcIYV(VoNanO(0x87)),'t5Xl>|L',OcIcIYV(0x50),OcIcIYV(VoNanO(0xa)),OcIcIYV(VoNanO(0x58)),OcIcIYV(VoNanO(-0x14)),OcIcIYV(VoNanO(-0x11)),OcIcIYV(0x55),OcIcIYV(VoNanO(0x77)),OcIcIYV(0x57),OcIcIYV(0x58),OcIcIYV(0x17),'!D)`wgs]sT!{u#=$yqWn4G@Ocr%G3mE&dhJ,$WH?"|F~AQD&D#9g$|"OMN8>J<b@[L',OcIcIYV(0x17),'"S0}^|&p`rET]tz*JNx,ZV_8}%',OcIcIYV(0x59),OcIcIYV(0x5a),OcIcIYV(VoNanO(0x49)),OcIcIYV(VoNanO(-0x19)),OcIcIYV(0x5c),OcIcIYV(0x5d),OcIcIYV(VoNanO(-0x19)),OcIcIYV(VoNanO(0x61)),OcIcIYV(0x42),OcIcIYV(0x17),OcIcIYV(0x5f),OcIcIYV(0x60),OcIcIYV(0x61),OcIcIYV(0x62),OcIcIYV(VoNanO(-0x19)),OcIcIYV(VoNanO(0x60)),OcIcIYV(0x64),OcIcIYV(0x65),OcIcIYV(0x66),OcIcIYV(0x67),OcIcIYV(0x68),OcIcIYV(0x69),OcIcIYV(0x6a),OcIcIYV(0x6b),OcIcIYV(0x6c),OcIcIYV(0x6d),'xP/tZ#1`~F+$`%OM(E.Y@Hk?6i*P5f"Ex;Z@]O{pXrr;<lH$8c1>s2o(+kc7>"~SiHYYxD?kaFD`h+=${qKM7|E>HrJG3m{nhG|}',OcIcIYV(0x6e),'{*,lk|NC',OcIcIYV(0x6e),'{*,lk|NC',OcIcIYV(VoNanO(0x130)),OcIcIYV(0x70),OcIcIYV(VoNanO(0x67)),'qmK|b@Sw9^"hZTo+H4mJX~wwB~.m/jwAu#9&X',OcIcIYV(0x59),'>NXuL1|O',OcIcIYV(0x72),OcIcIYV(VoNanO(-0x19)),'Y5@lBGcFoQQ|@5?D^a',OcIcIYV(VoNanO(-0x17)),OcIcIYV(VoNanO(0x63)),OcIcIYV(VoNanO(-0x15)),OcIcIYV(0x6a),OcIcIYV(0x6b),OcIcIYV(VoNanO(-0x19)),OcIcIYV(0x74),OcIcIYV(0x75),OcIcIYV(VoNanO(-0x19)),VoNanO(-0x10),OcIcIYV(0x64),OcIcIYV(0x76),OcIcIYV(0x69),OcIcIYV(VoNanO(-0x18)),OcIcIYV(VoNanO(-0xd)),OcIcIYV(VoNanO(0x43)),OcIcIYV(0x17),OcIcIYV(VoNanO(-0
|
|||
|
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
|