mirror of https://github.com/6dylan6/jdpro.git
12 lines
145 KiB
JavaScript
12 lines
145 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 24 10 * jd_dplh102401.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌102401");
|
|||
|
function L4dC03(){}var n_hWQg8=Object['defineProperty'],W0LFz1m,Bc3SpZh,jFwFj1h,uXUbjM,mjgCAP,gFv_sA,ctKoXf,kohu7w,HlUJ4e,MTliZ9,YLCUNiJ,DxM0M9A,kLRpi7,xGirDk,uK1Qn1,CEcCXY,mmuQFjv,gHrVaOa,aqgHyYr,fSmLkt,xmRjys9,mkY966;function ZyT5jxv(L4dC03){return W0LFz1m[L4dC03>-0x4a?L4dC03>-0x4a?L4dC03+0x49:L4dC03+0x4c:L4dC03+0x6]}W0LFz1m=zB7_u1();function GQpohFG(L4dC03,n_hWQg8){Bc3SpZh(L4dC03,'length',{value:n_hWQg8,configurable:!0x0});return L4dC03}L4dC03(Bc3SpZh=Object.defineProperty,jFwFj1h=GQpohFG(F39VW9J((...n_hWQg8)=>{var Bc3SpZh=F39VW9J(n_hWQg8=>{return W0LFz1m[n_hWQg8<0x13e?n_hWQg8<-0x48?n_hWQg8+0xf:n_hWQg8<0x13e?n_hWQg8>-0x48?n_hWQg8+0x47:n_hWQg8+0x24:n_hWQg8-0x30:n_hWQg8-0x62]},0x1);L4dC03(n_hWQg8[ZyT5jxv(-0x18)]=ZyT5jxv(-0x4),n_hWQg8.XGkX8ZE=-Bc3SpZh(-0x17));return n_hWQg8.XGkX8ZE>-0xe?n_hWQg8[-0x91]:n_hWQg8[n_hWQg8.XGkX8ZE+0x81](n_hWQg8[0x0]())}),0x2)(jKgcoBZ,XMOfr5f));var HdT0A0q=[],nMgkxn=[MD7U0n(0x0),MD7U0n(0x1),MD7U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DjjFibtE"h)_CrmWpIh|_&3.`t##6K/I7}K>kp~EN+:R|Hu_tjBx95NLkxHA',ZyT5jxv(-0x47),MD7U0n(0x62),ZyT5jxv(-0x47),MD7U0n(0x63),MD7U0n(0x64),'D^!*}2U8<W`|efJhQ)0',MD7U0n(0x65),MD7U0n(ZyT5jxv(0x53)),'8xXpSh2$,#n_=u|.bT',MD7U0n(ZyT5jxv(-0x6)),MD7U0n(ZyT5jxv(0x3a)),'E3|cKzv$',MD7U0n(0x68),MD7U0n(0x69),MD7U0n(0x11),MD7U0n(ZyT5jxv(0x41)),MD7U0n(ZyT5jxv(0x42)),MD7U0n(ZyT5jxv(0x20)),MD7U0n(0x6d),'IhHR2mZzpOr]b%e|e(TR',MD7U0n(ZyT5jxv(0x24)),MD7U0n(0x5e),MD7U0n(ZyT5jxv(-0x16)),MD7U0n(0x6f),MD7U0n(ZyT5jxv(-0x46)),'kBpnhfy~F2dx.]AJ;;VNi+5i}|@K;[o0xqG',MD7U0n(0x70),MD7U0n(0x58),MD7U0n(ZyT5jxv(0x4a)),MD7U0n(ZyT5jxv(-0x42)),MD7U0n(0x73),MD7U0n(ZyT5jxv(-0x45)),MD7U0n(0x3f),MD7U0n(0x6f),MD7U0n(0x74),MD7U0n(ZyT5jxv(-0x46)),MD7U0n(0x3f),MD7U0n(0x6f),MD7U0n(0x75),MD7U0n(0x76),MD7U0n(ZyT5jxv(0xd2)),MD7U0n(ZyT5jxv(-0x46)),MD7U0n(0x78),MD7U0n(ZyT5jxv(0x47)),'XbZ!z/~CPG|dfkJ',MD7U0n(ZyT5jxv(-0x44)),MD7U0n(0x7a),MD7U0n(0x7b),MD7U0n(0x7c),MD7U0n(ZyT5jxv(0x9)),MD7U0n(ZyT5jxv(0x4c)),MD7U0n(ZyT5jxv(0x4d)),M
|
|||
|
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
|