jdpro/jd_dplh0810.js

12 lines
152 KiB
JavaScript
Raw Normal View History

2024-08-09 23:53:04 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
20 8 10 8 * jd_dplh0810.js
*/
const $ = new Env("大牌0810");
var _0xodw='jsjiami.com.v7';const _0x3aa2bf=_0x432a;(function(_0x15f879,_0x38c613,_0x5cc959,_0x589833,_0x2a9b5b,_0x392c25,_0x37b261){return _0x15f879=_0x15f879>>0x9,_0x392c25='hs',_0x37b261='hs',function(_0x574199,_0x22a298,_0x187682,_0xf7a9bf,_0x410343){const _0x129c0b=_0x432a;_0xf7a9bf='tfi',_0x392c25=_0xf7a9bf+_0x392c25,_0x410343='up',_0x37b261+=_0x410343,_0x392c25=_0x187682(_0x392c25),_0x37b261=_0x187682(_0x37b261),_0x187682=0x0;const _0x39ef9b=_0x574199();while(!![]&&--_0x589833+_0x22a298){try{_0xf7a9bf=-parseInt(_0x129c0b(0x528,'2Xhk'))/0x1+-parseInt(_0x129c0b(0x13b,'Uz1B'))/0x2*(-parseInt(_0x129c0b(0x2be,'&MHX'))/0x3)+parseInt(_0x129c0b(0x70b,'u@dg'))/0x4+parseInt(_0x129c0b(0x7dc,'mBJJ'))/0x5*(-parseInt(_0x129c0b(0x7d4,'S@3U'))/0x6)+parseInt(_0x129c0b(0x154,'L8Ox'))/0x7+parseInt(_0x129c0b(0x194,'Jy6K'))/0x8*(-parseInt(_0x129c0b(0x79e,'L8Ox'))/0x9)+parseInt(_0x129c0b(0x7f8,'2Xhk'))/0xa;}catch(_0x5526ae){_0xf7a9bf=_0x187682;}finally{_0x410343=_0x39ef9b[_0x392c25]();if(_0x15f879<=_0x589833)_0x187682?_0x2a9b5b?_0xf7a9bf=_0x410343:_0x2a9b5b=_0x410343:_0x187682=_0x410343;else{if(_0x187682==_0x2a9b5b['replace'](/[AQkeOunyxIKDPSqtTpJWh=]/g,'')){if(_0xf7a9bf===_0x22a298){_0x39ef9b['un'+_0x392c25](_0x410343);break;}_0x39ef9b[_0x37b261](_0x410343);}}}}}(_0x5cc959,_0x38c613,function(_0x5fe118,_0x3fd8b2,_0x1c8c53,_0xa60ba0,_0x579235,_0x2b1e80,_0x2f650f){return _0x3fd8b2='\x73\x70\x6c\x69\x74',_0x5fe118=arguments[0x0],_0x5fe118=_0x5fe118[_0x3fd8b2](''),_0x1c8c53=`\x72\x65\x76\x65\x72\x73\x65`,_0x5fe118=_0x5fe118[_0x1c8c53]('\x76'),_0xa60ba0=`\x6a\x6f\x69\x6e`,(0x17d27d,_0x5fe118[_0xa60ba0](''));});}(0x18a00,0x94eaf,_0x3eb5,0xc7),_0x3eb5)&&(_0xodw=0xc7);const _0x206154=$[_0x3aa2bf(0x1a7,'T(Qu')]()?require(_0x3aa2bf(0x348,'n6rz')):'',_0x463aff=$[_0x3aa2bf(0x2de,'bGu0')]()?require(_0x3aa2bf(0x4a3,'O&3J')):'',_0x1009d0=require(_0x3aa2bf(0xbd,'UbNu')),_0x432f4b=require(_0x3aa2bf(0x499,'S(F7')),_0x594c33=require(_0x3aa2bf(0x64e,'3%)R')),_0x4720c0=require(_0x3aa2bf(0x5b3,'pH^h'));let _0x5c7f53=[],_0x30eb2b='',_0x9758a7='',_0x5cfe69='',_0xed56a3='3';if(process[_0x3aa2bf(0x4b7,'L8Ox')][_0x3aa2bf(0x4a5,'UbNu')]){const _0x152e8c=require(_0x3aa2bf(0x738,'1Zl6'));$[_0x3aa2bf(0x5fe,'&MHX')]=_0x152e8c[_0x3aa2bf(0xc3,'x#Zp')]($[_0x3aa2bf(0x227,'3%)R')][_0x3aa2bf(0x2c8,'O&3J')]($)),$[_0x3aa2bf(0x271,'S(F7')]=_0x152e8c[_0x3aa2bf(0x408,'aS&x')]($[_0x3aa2bf(0x518,'[S21')][_0x3aa2bf(0x1ba,'&pz)')]($));}function _0x3eb5(){const _0x4283c6=(function(){return[...[_0xodw,'KuTjuQsjiaAOWmqkiqDe.IhAcxyoPmq.Svnp7JSt==','WQfYWRlcTSoe','WOyboq','z2PzW5RcQtNdOCoZW5RcKhfTWPWYeNKjWQhdJJHegLBdPfNdHSkeW7CMW7u6','W4qJW7pcGZa','lSkncCoYW60LxW','WOjvWPtcJCoEW6WPs8omyXqPW7ncWQpdP8k/oa0XWPfyWQPNWPz9vmoSWRJcGmo7hSo0','W6FdJCkDWQxdGqhdT8k2mmk7WRBcRfBcNSoAWONcRW','WRKGe1tdMa','W4BcSLNdMw8kgX9tj2JdKdW','iCkYidTk','BNTAW7xcRZBdRmoIW5dcI0WQWPKX','rWKnecq','u8o1WRmWWOa','wCo4WPTBWQtcRaNcTmojW7W','nMyBW4RdSsBcTmo7WOa','q8o7WPW+WQa','W5zOyx48','WPD6WR4CEG','WQFdIY3dIbm','sK/cHq','WRddVSk7uf4','hwX+mmo2FW','gSoQWROnAa','zWtcO8onoa','8jw1OSoc','W6xdJMRdU8obW71zW78YcSkEr27cKmkgwSkz','m8kFWPtdSMap','W5n6DN8qEW','8lA4RtpLKzhLKixLKypVVy7PH7JOR6ZLVBBLJOa','ANvo','W5xcNq5knq','DSoBWO0WWPe','swP/omoHENSOWPdcHw/cGCkiW6jwlmkxW7FcV8k2WQeEW57cGSomWRSKpCoNlSkyaaD2ACkhBSopWRFcVx1nW7TeW4pdJCkt','DMHaW4ZcPrtdOCoQW5y','s1xdNgZdKG','kmoQjLVdPq','W63dHgDFfa','W73cHxu','W7e2WOuEW4u7ta','W7FdSeRcKry','W6L7EMOWCq','umohWPKPWO0U','nWtdQa','WOhdHwSCwW','y8kxsI5d','WQddTWxdQIG','hmkUWPJdKMK','WRZcTmk+xtC','vCkSvZviESokW6eK','WR/dI0JdTYfvA0JdGmknAKy','k8oBkN/dTG','WQhcS2JdVCoB','WRNdTg/dTGy','W7tcTWO','W7ZcUaHecq','W77dRHD7WOeN','qCo4WPPPWQu','WRLYWPehxva','df5NbCoQ','beHkuha','WQJdPvyOtW','W6xdQmkDs1G','WRhdRqVdTc0','WOVdP3aHCCo5ur0','g8kJpCo7W4m','WOhdSrxcHsGvW6LvtmktW5NdQsncW6u','vCktxWTa','W7VdIbPuWOu','i8knWOBdS2Kj','WQP8WOCXyq','i15MAuW','W7xdOSk4Ff5MzW0','BCoYWRGYFmkJW6JcQbv/lg1YFSkjnZpdV04yWRpcTmo/WODXy3hcJhrZWOqvb8kFWPTTWPy+d8kJE8kjWOW9WOtdRsJdOHyomuaqgWFcG1mtwq5tBb/cSCk9uCoSkMlcVx7cOmkioSozW6tdGh/cJKddKKnpecagxZRdPr/cOSoDuMv/WQ/cJSkFW5tdO8o3gCorhGhdTKRdO8oaW4ldNvhcH8kifmoShGVdLW7cIxmmabFdI1fXW
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