mirror of https://github.com/6dylan6/jdpro.git
12 lines
132 KiB
JavaScript
12 lines
132 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
1 1 1 1 * jd_dplh1201.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌1201");
|
|||
|
function Bzpalsp(){}var gqmAv1=Object['defineProperty'],ejYGtz5,sW_5Io,zUtwqS,Wwx0koW,t0jyF5,ZDgHLsP,iduJWf1,u7AvJw,wMaX1ZE,BKP89qS,jdZSTxm,wVoZWe,IXDbqVr,vXfAqJ,QnhfQ9G,OfIdYRq,k_gbdbV,H5_Y7b,GbKT5ej,WFMK9aQ,tsD5dLj,TkcpV8F;function LMx8cbH(Bzpalsp){return ejYGtz5[Bzpalsp<0xf8?Bzpalsp<-0xb?Bzpalsp+0x5b:Bzpalsp<0xf8?Bzpalsp>-0xb?Bzpalsp+0xa:Bzpalsp+0x57:Bzpalsp-0x51:Bzpalsp-0x31]}ejYGtz5=uCLbFR();function _Lyx71(Bzpalsp,gqmAv1){return sW_5Io(Bzpalsp,LMx8cbH(0x2),{value:gqmAv1,configurable:!0x0})}Bzpalsp(sW_5Io=Object.defineProperty,zUtwqS=rairXub((Bzpalsp,gqmAv1)=>{return gqmAv1(Bzpalsp())},0x2)(YONBQ4,mtngg4));var Qej8n_=[],eU7OhXb=[qI01KA(0x0),qI01KA(0x1),qI01KA(0x2),qI01KA(0x3),qI01KA(0x4),qI01KA(LMx8cbH(0x3)),qI01KA(0x6),qI01KA(0x7),qI01KA(0x8),qI01KA(0x9),qI01KA(LMx8cbH(0x35)),qI01KA(0xb),qI01KA(0xc),qI01KA(0xb),qI01KA(0xc),qI01KA(0xd),qI01KA(0xb),qI01KA(LMx8cbH(0x16)),qI01KA(0xf),qI01KA(0x10),qI01KA(0x11),qI01KA(LMx8cbH(0x18)),qI01KA(0x13),qI01KA(0x14),qI01KA(0x15),qI01KA(0x16),qI01KA(0x17),qI01KA(0x18),qI01KA(0x19),qI01KA(LMx8cbH(0x11)),'LQAjK.p<lVg4WO%p|]]Yqe/2Q','(#5s9.S|_VDT6K.EVcY%%~VgQ',qI01KA(0x1b),qI01KA(LMx8cbH(0x22)),qI01KA(LMx8cbH(0x29)),qI01KA(0x1e),qI01KA(LMx8cbH(0xa)),qI01KA(LMx8cbH(0x14)),qI01KA(0x21),qI01KA(0x22),qI01KA(0x23),qI01KA(LMx8cbH(-0xa)),'?#qBpK:ZSY<f48v}<e|6#!f5;k)',qI01KA(0x25),qI01KA(0x6),qI01KA(0x26),qI01KA(0x27),qI01KA(0x28),qI01KA(LMx8cbH(-0xa)),qI01KA(0x29),'|^k6_n5Us,T/H',qI01KA(0x2a),qI01KA(0x2b),LMx8cbH(-0x2),qI01KA(0x2c),qI01KA(0x6),qI01KA(LMx8cbH(0x66)),qI01KA(0x2e),qI01KA(0x2f),qI01KA(LMx8cbH(0x2f)),qI01KA(0x31),qI01KA(0x32),qI01KA(0x33),'Dlt?}wrGO3&fp|YKG~,]V}s4E4^MGZ+osH',qI01KA(0x34),qI01KA(0x35),qI01KA(0x36),qI01KA(LMx8cbH(0x3a)),qI01KA(0x2c),qI01KA(0x38),qI01KA(0x23),qI01KA(0x39),qI01KA(0x2c),qI01KA(0x36),qI01KA(0x36),qI01KA(0x3a),qI01KA(0x3b),qI01KA(0x3c),qI01KA(0x3d),qI01KA(0x3e),'|G46tK]H',qI01KA(0x3f),qI01KA(0x40),qI01KA(LMx8cbH(0x40)),'i;k:C8wS~e+lX!yXYI9m0=0Gn}r85Kg5VuJCloMK6W0A3(+.3``.|w',qI01KA(0x28),qI01KA(0x42),qI01KA(LMx8cbH(0x42)),qI01KA(0x44),qI01KA(LMx8cbH(0x21)),'bG|nZ.>J',qI01KA(0x45),qI01KA(0x46),qI01KA(0x47),qI01KA(0x48),qI01KA(0x49),qI01KA(0x4a),qI01KA(0x4b),qI01KA(0x4c),qI01KA(0x4d),qI01KA(0x4e),qI01KA(0x4f),qI01KA(0x50),qI01KA(0x51),qI01KA(0x52),qI01KA(LMx8cbH(0x4d)),qI01KA(0x54),qI01KA(0x55),'],6tx|DM','|G46tKBUg','|G46tK]H',qI01KA(0x56),qI01KA(0x57),qI01KA(0x58),qI01KA(0x59),qI01KA(0x5a),'Pth<|',qI01KA(LMx8cbH(-0x9)),qI01KA(0x5c),qI01KA(0x5d),qI01KA(0x5e),qI01KA(0x5f),qI01KA(0x60),qI01KA(0x61),qI01KA(0x62),qI01KA(LMx8cbH(0x56)),qI01KA(0x64),qI01KA(0x65),qI01KA(0x66),qI01KA(0x67),qI01KA(0x68),'|Q[de/AE(YUlgN',qI01KA(0x69),qI01KA(0x6a),qI01KA(0x6b),qI01KA(0x6c),qI01KA(LMx8cbH(0x59)),qI01KA(0x6e),qI01KA(0x6f),qI01KA(0x70),qI01KA(LMx8cbH(0x5c)),qI01KA(LMx8cbH(0x5e)),qI01KA(0x73),'{0|WX2z>|>TdP',qI01KA(0x2c),qI01KA(0x2c),qI01KA(0x74),qI01KA(LMx8cbH(-0x7)),qI01KA(0x76),qI01KA(0x77),qI01KA(LMx8cbH(0x4f)),qI01KA(0x79),qI01KA(LMx8cbH(0x6)),'N#^|,',qI01KA(0x7b),qI01KA(0x7c),qI01KA(0x7d),qI01KA(0x7e),qI01KA(0x7f),qI01KA(0x80),qI01KA(0x81),qI01KA(0x82),'J?GS|>EbuD[<uR;t',qI01KA(0x83),qI01KA(0x84),qI01KA(LMx8cbH(0x60)),qI01KA(0x86),qI01KA(0x87),qI01KA(0x88),qI01KA(0x7d),qI01KA(0x89),'t|IA:U9L#Hj_G.`.oNr',qI01KA(LMx8cbH(0x52)),qI01KA(0x8b),qI01KA(0x8c),qI01KA(LMx8cbH(-0x9)),qI01KA(0x5c),qI01KA(0x84),qI01KA(0x8d),qI01KA(0x8e),qI01KA(0x8f),'U&%<!|P0#,,*%&M2FA',qI01KA(0x90),qI01KA(0x91),qI01KA(0x92),qI01KA(0x93),qI01KA(0x94),qI01KA(0x95),qI01KA(0x96),qI01KA(0x97),qI01KA(0x98),qI01KA(LMx8cbH(-0x8)),qI01KA(LMx8cbH(0x67)),qI01KA(LMx8cbH(-0x8)),qI01KA(0x7e),qI01KA(0x9a),qI01KA(LMx8cbH(0x69)),qI01KA(0x84),qI01KA(0x3d),qI01KA(0x9c),qI01KA(0x7e),qI01KA(0x23),qI01KA(0x84),qI01KA(0x9d),qI01KA(0x9e),qI01KA(0x9f),qI01KA(0xa0),qI01KA(0xa1),qI01KA(0xa2),qI01KA(0xa3),'w`NteAaj|!J<yfgK""p]/;i%s|;I"k&u<OH',qI01KA(0xa4),'9w_a38z5?E*o:stSsS>aW*HMb>:o_4Ze*cA&aKgWaVK7M}P1AG0aq3X|rkpl:0em@S63iapEKy|',qI01KA(0xa5),qI01KA(0xa6),'z1bK$gTuZh1XD+]/JUybV|H',qI01KA(0xa7),qI01KA(LMx8cbH(0x6e)),qI01KA(0xa9),qI01KA(0xaa),qI01KA(0x42),qI01KA(0xab),qI01KA(LMx8cbH(0x6f)),qI01KA(0xad),qI01KA(LMx8cbH
|
|||
|
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
|