jdpro/jd_dplh1105.js

12 lines
136 KiB
JavaScript
Raw Normal View History

2024-11-04 22:48:52 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
0 0 5 11 * jd_dplh1105.js
*/
const $ = new Env("大牌1105");
function UA1BBgV(){}var nVSFpf=Object['defineProperty'],NabTZua,B2FG3Q,SwSyTMV,QOwQw9,du11txL,Q3QGExo,WcVEXbc,Io7whx,b1t_QG,U8djx5,zJNBwyj,yK0rYJ,zSrJhJM,Sj_27pa,sWV5x_,o8fvdMq,rbDQa6s,x92E0f,du4Kb3;function Gi6Pd8(UA1BBgV){return NabTZua[UA1BBgV<0x107?UA1BBgV>-0x63?UA1BBgV>0x107?UA1BBgV+0xd:UA1BBgV+0x62:UA1BBgV+0x43:UA1BBgV-0x1d]}NabTZua=rd7pbW_();function TjrcDt(UA1BBgV,nVSFpf){B2FG3Q(UA1BBgV,Gi6Pd8(-0x62),{value:nVSFpf,configurable:Gi6Pd8(0x15)});return UA1BBgV}UA1BBgV(B2FG3Q=Object.defineProperty,SwSyTMV=TjrcDt(r2cFoy6((...nVSFpf)=>{var B2FG3Q=r2cFoy6(nVSFpf=>{return NabTZua[nVSFpf>-0x42?nVSFpf<-0x42?nVSFpf-0x46:nVSFpf+0x41:nVSFpf-0x4e]},0x1);UA1BBgV(nVSFpf[B2FG3Q(-0x41)]=B2FG3Q(-0x40),nVSFpf[0x3]=nVSFpf[0x1]);return nVSFpf[0x3](nVSFpf[Gi6Pd8(-0x3a)]())}),0x2)(HkxqyDH,n8VMAV));var cmBVHO=[],ssWz_By=['3Jbs`+j|V',zMsdbP(0x0),zMsdbP(Gi6Pd8(-0x3b)),zMsdbP(Gi6Pd8(-0x61)),zMsdbP(Gi6Pd8(-0x3f)),zMsdbP(0x4),'1HM~5j|R','sw&2B]|R',zMsdbP(0x5),zMsdbP(0x6),zMsdbP(Gi6Pd8(-0x3c)),zMsdbP(Gi6Pd8(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(0x67),zMsdbP(Gi6Pd8(-0x22)),'>6|5:G%R',zMsdbP(0x69),zMsdbP(0x6a),zMsdbP(Gi6Pd8(0x10)),zMsdbP(0x6c),zMsdbP(Gi6Pd8(0x12)),zMsdbP(Gi6Pd8(0x13)),'g*N/$Ga|zdj#Kljn:.:?',zMsdbP(0x6f),zMsdbP(0x70),zMsdbP(0x52),zMsdbP(0x71),zMsdbP(0x59),zMsdbP(Gi6Pd8(-0x5b)),zMsdbP(Gi6Pd8(0x3a)),zMsdbP(0x5f),zMsdbP(Gi6Pd8(-0x5a)),zMsdbP(0x3e),zMsdbP(Gi6Pd8(-0x5f)),zMsdbP(0x74),zMsdbP(Gi6Pd8(0x18)),zMsdbP(0x76),zMsdbP(Gi6Pd8(-0x5d)),zMsdbP(Gi6Pd8(0x19)),zMsdbP(Gi6Pd8(-0x50)),zMsdbP(Gi6Pd8(-0x5b)),'(NLoR_7X;w_ds|4',zMsdbP(0x79),zMsdbP(Gi6Pd8(-0x5a)),zMsdbP(0x3e),zMsdbP(0x7a),zMsdbP(Gi6Pd8(-0x5f)),zMsdbP(0x7b),zMsdbP(Gi6Pd8(-0x5c)),zMsdbP(0x7c),zMsdbP(0x7d),zMsdbP(0x7e),zMsdbP(Gi6Pd8(-0x5f)),zMsdbP(Gi6Pd8(0xfd)),zMsdbP(Gi6Pd8(-0x36)),zMsdbP(Gi6Pd8(0x1c)),zMsdbP(0x82),zMsdbP(Gi6Pd8(0x1b)),zMsdbP(0x83),zMsdbP(0x84),zMsdbP(Gi6Pd8(-0x57)),zMsdbP(Gi6Pd8(0xd)),zMsdbP(Gi6Pd8(-0x5f)),zMsdbP(0x86),zMsdbP(0x87),zMsdbP(Gi6Pd8(0x9)),zMsdbP(0x12),zMsdbP(0x88),zMsdbP(Gi6Pd8(-0x8)),zMsdbP(0x12),zMsdbP(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