jdpro/jd_dplh0701.js

12 lines
149 KiB
JavaScript
Raw Normal View History

2024-07-01 01:17:50 +00:00
/*
一次性手动执行
自行运行有水无水自测
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
33 1 1 7 * jd_dplh0701.js
*/
const $ = new Env("大牌0701");
2024-07-01 01:45:31 +00:00
var _0xodb='jsjiami.com.v7';const _0x30b4ef=_0xd82b;(function(_0x359c40,_0x41c028,_0x2fa8b9,_0x3a339c,_0x1d8fb1,_0x18476e,_0x1d41fd){return _0x359c40=_0x359c40>>0x1,_0x18476e='hs',_0x1d41fd='hs',function(_0x5d669a,_0x5a7721,_0x2e4e80,_0x37091a,_0x401267){const _0x1983ee=_0xd82b;_0x37091a='tfi',_0x18476e=_0x37091a+_0x18476e,_0x401267='up',_0x1d41fd+=_0x401267,_0x18476e=_0x2e4e80(_0x18476e),_0x1d41fd=_0x2e4e80(_0x1d41fd),_0x2e4e80=0x0;const _0x209100=_0x5d669a();while(!![]&&--_0x3a339c+_0x5a7721){try{_0x37091a=parseInt(_0x1983ee(0x6f6,'EdDp'))/0x1+-parseInt(_0x1983ee(0x195,'3QcQ'))/0x2+parseInt(_0x1983ee(0x73f,'l*CS'))/0x3*(-parseInt(_0x1983ee(0x4f2,'RLcS'))/0x4)+-parseInt(_0x1983ee(0x272,'[IA3'))/0x5*(-parseInt(_0x1983ee(0x33d,'4E%X'))/0x6)+-parseInt(_0x1983ee(0x5e2,'FstI'))/0x7+parseInt(_0x1983ee(0x6cd,'$D[U'))/0x8*(parseInt(_0x1983ee(0x16b,'G)YL'))/0x9)+-parseInt(_0x1983ee(0x271,'nupp'))/0xa*(-parseInt(_0x1983ee(0x5ad,'[IA3'))/0xb);}catch(_0x1368e3){_0x37091a=_0x2e4e80;}finally{_0x401267=_0x209100[_0x18476e]();if(_0x359c40<=_0x3a339c)_0x2e4e80?_0x1d8fb1?_0x37091a=_0x401267:_0x1d8fb1=_0x401267:_0x2e4e80=_0x401267;else{if(_0x2e4e80==_0x1d8fb1['replace'](/[YEtCObSrgGXuMUykLeQF=]/g,'')){if(_0x37091a===_0x5a7721){_0x209100['un'+_0x18476e](_0x401267);break;}_0x209100[_0x1d41fd](_0x401267);}}}}}(_0x2fa8b9,_0x41c028,function(_0x4803fd,_0x41f7ec,_0x186cf2,_0x55c872,_0x40ce20,_0x2ceef0,_0x922059){return _0x41f7ec='\x73\x70\x6c\x69\x74',_0x4803fd=arguments[0x0],_0x4803fd=_0x4803fd[_0x41f7ec](''),_0x186cf2=`\x72\x65\x76\x65\x72\x73\x65`,_0x4803fd=_0x4803fd[_0x186cf2]('\x76'),_0x55c872=`\x6a\x6f\x69\x6e`,(0x174e7a,_0x4803fd[_0x55c872](''));});}(0x192,0x3fd56,_0x5583,0xcb),_0x5583)&&(_0xodb=0x625);const _0x4e958c=$[_0x30b4ef(0x66c,'W7Bc')]()?require(_0x30b4ef(0x777,'U7em')):'',_0x58ca13=$[_0x30b4ef(0x528,'H4OJ')]()?require(_0x30b4ef(0x237,'#I$J')):'',_0x67c534=require(_0x30b4ef(0x4ae,'0s5!')),_0x332aee=require(_0x30b4ef(0x60f,'BGPn')),_0x3e69bb=require(_0x30b4ef(0x1d4,'U7em')),_0x3bb7cf=require(_0x30b4ef(0x395,'3QcQ'));let _0x3e7ed5=[],_0x5ecb3d='',_0x5a8fe8='',_0x359201='',_0x35cf07='3';if(process[_0x30b4ef(0x4f1,'85vJ')][_0x30b4ef(0x7e2,'pW99')]){const _0x494182=require(_0x30b4ef(0x75b,'s[1N'));$[_0x30b4ef(0x5a0,'BGPn')]=_0x494182[_0x30b4ef(0x786,'O*2l')]($[_0x30b4ef(0x737,'8UtE')][_0x30b4ef(0x546,'BGPn')]($)),$[_0x30b4ef(0x7c4,'ZuYR')]=_0x494182[_0x30b4ef(0x20c,'*8aQ')]($[_0x30b4ef(0x342,'@31U')][_0x30b4ef(0x303,'O*2l')]($));}if($[_0x30b4ef(0x7cb,'9aid')]()){Object[_0x30b4ef(0x354,'WFvJ')](_0x4e958c)[_0x30b4ef(0x196,'^lwc')](_0x49864c=>{const _0x4f8368=_0x30b4ef;_0x3e7ed5[_0x4f8368(0x71b,'ZuYR')](_0x4e958c[_0x49864c]);});if(process[_0x30b4ef(0x4a6,'ZBeW')][_0x30b4ef(0x1b5,'BGPn')]&&process[_0x30b4ef(0x700,'l*CS')][_0x30b4ef(0x74e,'EdDp')]===_0x30b4ef(0x5b7,'@31U'))console[_0x30b4ef(0x7ac,'3QcQ')]=()=>{};}else _0x3e7ed5=[$[_0x30b4ef(0x20d,'gkub')](_0x30b4ef(0x360,'lV9c')),$[_0x30b4ef(0x4b1,'l8$Y')](_0x30b4ef(0x134,'8UtE')),...jsonfomat($[_0x30b4ef(0x5b5,'@31U')](_0x30b4ef(0x5f2,'*poN'))||'[]')[_0x30b4ef(0x40d,'^lwc')](_0x21e313=>_0x21e313[_0x30b4ef(0x46d,'O*2l')])][_0x30b4ef(0x30d,'y$aH')](_0x5e0f87=>!!_0x5e0f87);let _0x30a872=process[_0x30b4ef(0x534,'pGlM')][_0x30b4ef(0x22f,'$D[U')]||_0x30b4ef(0x7fd,'9aid'),_0x413b4c=process[_0x30b4ef(0x313,'ZuYR')][_0x30b4ef(0x5b9,'4E%X')]||_0x30b4ef(0x35e,'75se'),_0x473c71=_0x30b4ef(0x393,'EdDp');$[_0x30b4ef(0x4d3,'pW99')]=_0x30b4ef(0x652,'SMEA'),$[_0x30b4ef(0x53a,'l*CS')]=$[_0x30b4ef(0x4fd,')Q$p')][_0x30b4ef(0x72a,'lV9c')](/oC[0-9a-z]+/)[0x0],$[_0x30b4ef(0x52c,'O*2l')]=$[_0x30b4ef(0x62f,'8UtE')][_0x30b4ef(0x66e,'#I$J')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x30b4ef(0x591,'@31U')]=_0x30b4ef(0x291,'85vJ'),$[_0x30b4ef(0x58d,'w2GQ')]=_0x30b4ef(0x4b5,'[]e5'),$[_0x30b4ef(0x5c8,'ZuYR')]=![];let _0x2a878e=[_0x30b4ef(0x411,'pW99')];$[_0x30b4ef(0x295,'pW99')]=_0x2a878e[_0x59b4e4(0x0,_0x2a878e[_0x30b4ef(0x632,'lV9c')])],$[_0x30b4ef(0x60c,'RLcS')]=process[_0x30b4ef(0x5cf,'w2GQ')][_0x30b4ef(0x4b7,'4E%X')]||'',$[_0x30b4ef(0x200,'DaQ!')]=![],!(async()=>{const _0x4f7bfb=_0x30b4ef,_0x57b3e6={'NgzqW':_0x4f7bfb(0x58
2024-07-01 01:17:50 +00:00
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