mirror of https://github.com/6dylan6/jdpro.git
12 lines
166 KiB
JavaScript
12 lines
166 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
20 9 25 7 * jd_dplh0725.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0725");
|
|||
|
var _0xodm='jsjiami.com.v7';const _0x216d0f=_0x410e;(function(_0x147a96,_0xf7e043,_0x537003,_0x51d382,_0xe9903f,_0x9b4b61,_0x4e1361){return _0x147a96=_0x147a96>>0x2,_0x9b4b61='hs',_0x4e1361='hs',function(_0x124dc9,_0x1ffa4a,_0x5002ce,_0x44a3ed,_0x546e69){const _0x2a7d27=_0x410e;_0x44a3ed='tfi',_0x9b4b61=_0x44a3ed+_0x9b4b61,_0x546e69='up',_0x4e1361+=_0x546e69,_0x9b4b61=_0x5002ce(_0x9b4b61),_0x4e1361=_0x5002ce(_0x4e1361),_0x5002ce=0x0;const _0x526053=_0x124dc9();while(!![]&&--_0x51d382+_0x1ffa4a){try{_0x44a3ed=parseInt(_0x2a7d27(0x1b6,'DrAw'))/0x1+parseInt(_0x2a7d27(0x165,'F#yo'))/0x2+-parseInt(_0x2a7d27(0x930,'QZOc'))/0x3*(-parseInt(_0x2a7d27(0x598,'aXCI'))/0x4)+-parseInt(_0x2a7d27(0x7d6,'(lsm'))/0x5+-parseInt(_0x2a7d27(0x32a,'mydw'))/0x6*(parseInt(_0x2a7d27(0x5e1,'4R!z'))/0x7)+-parseInt(_0x2a7d27(0x444,']oRr'))/0x8*(-parseInt(_0x2a7d27(0x927,'UrLz'))/0x9)+-parseInt(_0x2a7d27(0x305,'Q&e%'))/0xa*(parseInt(_0x2a7d27(0x1ed,'8Vn]'))/0xb);}catch(_0x1fe8d4){_0x44a3ed=_0x5002ce;}finally{_0x546e69=_0x526053[_0x9b4b61]();if(_0x147a96<=_0x51d382)_0x5002ce?_0xe9903f?_0x44a3ed=_0x546e69:_0xe9903f=_0x546e69:_0x5002ce=_0x546e69;else{if(_0x5002ce==_0xe9903f['replace'](/[JVutIAHyUFlpQqWGgDr=]/g,'')){if(_0x44a3ed===_0x1ffa4a){_0x526053['un'+_0x9b4b61](_0x546e69);break;}_0x526053[_0x4e1361](_0x546e69);}}}}}(_0x537003,_0xf7e043,function(_0x55fec3,_0x45a7c9,_0x1e0e32,_0x387221,_0x52ff18,_0x18979e,_0x272caf){return _0x45a7c9='\x73\x70\x6c\x69\x74',_0x55fec3=arguments[0x0],_0x55fec3=_0x55fec3[_0x45a7c9](''),_0x1e0e32=`\x72\x65\x76\x65\x72\x73\x65`,_0x55fec3=_0x55fec3[_0x1e0e32]('\x76'),_0x387221=`\x6a\x6f\x69\x6e`,(0x17aa57,_0x55fec3[_0x387221](''));});}(0x318,0xd51f2,_0x1d20,0xc8),_0x1d20)&&(_0xodm=_0x1d20);const _0x6a6250=$[_0x216d0f(0x2cb,'9B]U')]()?require(_0x216d0f(0x85d,'T9)5')):'',_0x57359b=$[_0x216d0f(0x93a,'zWJS')]()?require(_0x216d0f(0x470,'%#gF')):'',_0x1cd2bc=require(_0x216d0f(0x8c7,'DrAw')),_0x4f3b81=require(_0x216d0f(0x294,'xBf9')),_0x4d4ec9=require(_0x216d0f(0x760,'(lsm')),_0x549894=require(_0x216d0f(0x80f,'zWJS'));let _0x44a595=[],_0x5627a2='',_0x548198='',_0x447820='',_0x466c4d='3';if(process[_0x216d0f(0x859,'(lsm')][_0x216d0f(0x6da,'MUtH')]){const _0x437ce6=require(_0x216d0f(0x521,'F#yo'));$[_0x216d0f(0x5d6,'MUtH')]=_0x437ce6[_0x216d0f(0x649,'O]VZ')]($[_0x216d0f(0x320,'QZOc')][_0x216d0f(0x595,'IUbr')]($)),$[_0x216d0f(0x2f8,'Z6c7')]=_0x437ce6[_0x216d0f(0x2e7,'DrAw')]($[_0x216d0f(0x2b5,'Wi]A')][_0x216d0f(0x5b8,'v12Y')]($));}if($[_0x216d0f(0x474,'(lsm')]()){Object[_0x216d0f(0x1e4,'&dmA')](_0x6a6250)[_0x216d0f(0x266,'j0Y(')](_0x479ccd=>{const _0x4fa39e=_0x216d0f;_0x44a595[_0x4fa39e(0x705,'4loO')](_0x6a6250[_0x479ccd]);});if(process[_0x216d0f(0x1c1,'*nf9')][_0x216d0f(0x255,'MUtH')]&&process[_0x216d0f(0x3e5,'tTu)')][_0x216d0f(0x3cf,'zWJS')]===_0x216d0f(0x6ff,'T9)5'))console[_0x216d0f(0x83b,'CXAU')]=()=>{};}else _0x44a595=[$[_0x216d0f(0x295,'#5[3')](_0x216d0f(0x1cc,'vPbo')),$[_0x216d0f(0x8c4,'v12Y')](_0x216d0f(0x5f1,'hA!@')),...jsonfomat($[_0x216d0f(0x3a2,'T9)5')](_0x216d0f(0x297,'F#yo'))||'[]')[_0x216d0f(0x906,'aXCI')](_0xd0b33e=>_0xd0b33e[_0x216d0f(0x3b5,'aXCI')])][_0x216d0f(0x7a0,'z%O5')](_0x18dee9=>!!_0x18dee9);let _0x364e05=process[_0x216d0f(0x796,'0LcZ')][_0x216d0f(0x1f5,'4loO')]||_0x216d0f(0x691,'xBf9'),_0x437869=process[_0x216d0f(0x437,'CXAU')][_0x216d0f(0x5cd,'MUtH')]||_0x216d0f(0x41e,'Hnmr'),_0x4a803a=_0x216d0f(0x5a1,'*nf9');$[_0x216d0f(0x39a,'IUbr')]=_0x216d0f(0x2a1,'VS7I'),$[_0x216d0f(0x62d,'*nf9')]=$[_0x216d0f(0x502,'v12Y')][_0x216d0f(0x49c,'aXCI')](/oC[0-9a-z]+/)[0x0],$[_0x216d0f(0x3ae,'vPbo')]=$[_0x216d0f(0x59b,'SKkk')][_0x216d0f(0x69e,'DrAw')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x216d0f(0x3fd,'4R!z')]=_0x216d0f(0x8bc,'c]#b'),$[_0x216d0f(0x40d,'&dmA')]=_0x216d0f(0x3ec,'bYlN'),$[_0x216d0f(0x6fb,'QZOc')]=![];let _0x3f0768=[_0x216d0f(0x8a6,'F#yo')];$[_0x216d0f(0x46e,'VS7I')]=_0x3f0768[_0x1e9084(0x0,_0x3f0768[_0x216d0f(0x529,']oRr')])],$[_0x216d0f(0x367,'Nn]&')]=process[_0x216d0f(0x699,'4R!z')][_0x216d0f(0x5ae,'O]VZ')]||'',$[_0x216d0f(0x208,'Q&e%')]=![],!(async()=>{const _0x2c01d3=_0x216d0f,_0x1ef2b8={'BEMev':function(_0x5
|
|||
|
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
|