mirror of https://github.com/6dylan6/jdpro.git
12 lines
143 KiB
JavaScript
12 lines
143 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
33 1 6 7 * jd_dplh0706.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0706");
|
|||
|
var _0xodH='jsjiami.com.v7';const _0x465c52=_0x4e31;(function(_0x448d79,_0x39dc60,_0x2b5748,_0xed27bc,_0x513653,_0x4fbd04,_0x556765){return _0x448d79=_0x448d79>>0x5,_0x4fbd04='hs',_0x556765='hs',function(_0x4d2442,_0x1f899f,_0x341d34,_0x3c09a3,_0x3d479b){const _0x2fe840=_0x4e31;_0x3c09a3='tfi',_0x4fbd04=_0x3c09a3+_0x4fbd04,_0x3d479b='up',_0x556765+=_0x3d479b,_0x4fbd04=_0x341d34(_0x4fbd04),_0x556765=_0x341d34(_0x556765),_0x341d34=0x0;const _0x2fd8be=_0x4d2442();while(!![]&&--_0xed27bc+_0x1f899f){try{_0x3c09a3=parseInt(_0x2fe840(0x435,'JTg7'))/0x1*(parseInt(_0x2fe840(0x39a,'22#i'))/0x2)+parseInt(_0x2fe840(0x7f6,'1pqT'))/0x3+parseInt(_0x2fe840(0x23e,'1pqT'))/0x4+parseInt(_0x2fe840(0x547,'GBBq'))/0x5+-parseInt(_0x2fe840(0x6ab,'1pqT'))/0x6*(-parseInt(_0x2fe840(0x746,'!hbV'))/0x7)+-parseInt(_0x2fe840(0x86c,'1pqT'))/0x8+parseInt(_0x2fe840(0x268,'Pay5'))/0x9*(-parseInt(_0x2fe840(0x2e1,'V6jO'))/0xa);}catch(_0x223cdc){_0x3c09a3=_0x341d34;}finally{_0x3d479b=_0x2fd8be[_0x4fbd04]();if(_0x448d79<=_0xed27bc)_0x341d34?_0x513653?_0x3c09a3=_0x3d479b:_0x513653=_0x3d479b:_0x341d34=_0x3d479b;else{if(_0x341d34==_0x513653['replace'](/[EfQVDYMURNnyWreOgKBu=]/g,'')){if(_0x3c09a3===_0x1f899f){_0x2fd8be['un'+_0x4fbd04](_0x3d479b);break;}_0x2fd8be[_0x556765](_0x3d479b);}}}}}(_0x2b5748,_0x39dc60,function(_0x41c8c0,_0xc60dbc,_0x1e7a9f,_0x589e4e,_0x2f50c0,_0x15dd48,_0x1b3294){return _0xc60dbc='\x73\x70\x6c\x69\x74',_0x41c8c0=arguments[0x0],_0x41c8c0=_0x41c8c0[_0xc60dbc](''),_0x1e7a9f=`\x72\x65\x76\x65\x72\x73\x65`,_0x41c8c0=_0x41c8c0[_0x1e7a9f]('\x76'),_0x589e4e=`\x6a\x6f\x69\x6e`,(0x1766d5,_0x41c8c0[_0x589e4e](''));});}(0x1800,0x8c0c9,_0x222a,0xc2),_0x222a)&&(_0xodH=0xc2);const _0x4b5fbc=$[_0x465c52(0x21e,'1pqT')]()?require(_0x465c52(0x3dc,'Pay5')):'',_0x449a69=$[_0x465c52(0x4c2,'EKy%')]()?require(_0x465c52(0x878,'uv3l')):'',_0x4fd5ca=require(_0x465c52(0x2a6,'JTg7')),_0x12d6f7=require(_0x465c52(0x21b,'3A]^')),_0xe27b04=require(_0x465c52(0x2ec,'MQ(t')),_0x3d80a8=require(_0x465c52(0x59d,'Z0xB'));let _0x1d6ae9=[],_0x479b6d='',_0x2ba3a3='',_0x4095a8='',_0x2d86c4='3';if(process[_0x465c52(0x5eb,'NFjb')][_0x465c52(0x775,'h@8s')]){const _0x532ba4=require(_0x465c52(0x645,'aQ[I'));$[_0x465c52(0x38f,'H$Wc')]=_0x532ba4[_0x465c52(0x391,'NFjb')]($[_0x465c52(0x754,')g]a')][_0x465c52(0x3d5,'Pay5')]($)),$[_0x465c52(0x68c,'d8bz')]=_0x532ba4[_0x465c52(0x514,'%4^[')]($[_0x465c52(0x40d,'3A]^')][_0x465c52(0x654,'d8bz')]($));}if($[_0x465c52(0x727,'MV9&')]()){Object[_0x465c52(0x3b0,'%4^[')](_0x4b5fbc)[_0x465c52(0x78e,'FMdV')](_0x4d6bf9=>{const _0x45f39d=_0x465c52;_0x1d6ae9[_0x45f39d(0x5b3,'MV9&')](_0x4b5fbc[_0x4d6bf9]);});if(process[_0x465c52(0x502,'1pqT')][_0x465c52(0x687,'V6jO')]&&process[_0x465c52(0x798,'Z0xB')][_0x465c52(0x418,'FMdV')]===_0x465c52(0x2c0,'^Dzs'))console[_0x465c52(0x45b,'t*9g')]=()=>{};}else _0x1d6ae9=[$[_0x465c52(0x464,'V6jO')](_0x465c52(0x2a7,'H$Wc')),$[_0x465c52(0x2e3,'!hbV')](_0x465c52(0x34a,'oj7d')),...jsonfomat($[_0x465c52(0x28c,'uv3l')](_0x465c52(0x65e,'Qw@N'))||'[]')[_0x465c52(0x5fb,'*cW!')](_0x23bb42=>_0x23bb42[_0x465c52(0x837,'hUT*')])][_0x465c52(0x88a,'H$Wc')](_0x3bd5cc=>!!_0x3bd5cc);let _0x1faa3d=process[_0x465c52(0x1dd,'HBS3')][_0x465c52(0x2d5,'MV9&')]||_0x465c52(0x75d,'L*0s'),_0x280813=process[_0x465c52(0x1dd,'HBS3')][_0x465c52(0x465,'lZDs')]||_0x465c52(0x4f1,'GBBq'),_0x69de5c=_0x465c52(0x6c4,'Pn&h');$[_0x465c52(0x1f8,'JTg7')]=_0x465c52(0x271,'22#i'),$[_0x465c52(0x3d8,'4[wN')]=$[_0x465c52(0x1ef,'PA(g')][_0x465c52(0x4b9,'b3sz')](/oC[0-9a-z]+/)[0x0],$[_0x465c52(0x691,'%4^[')]=$[_0x465c52(0x5ef,'Qw@N')][_0x465c52(0x22d,'HBS3')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x465c52(0x852,'hUT*')]=_0x465c52(0x726,'H$Wc'),$[_0x465c52(0x4a6,'RfKb')]=_0x465c52(0x7fb,'!Q%D'),$[_0x465c52(0x311,'3A]^')]=![];let _0x321ecc=[_0x465c52(0x7b1,'b3sz')];$[_0x465c52(0x303,')g]a')]=_0x321ecc[_0x37b326(0x0,_0x321ecc[_0x465c52(0x51d,'Ythy')])],$[_0x465c52(0x82d,'io1U')]=process[_0x465c52(0x61f,'^Dzs')][_0x465c52(0x597,'hUT*')]||'',$[_0x465c52(0x504,'io1U')]=![],!(async()=>{const _0x3ad239=_0x465c52,_0x24e3e4={'DclwT':_0x3ad239(0x59b,'FMdV'),'THRRb':_0x3ad239(0x233,'1pqT'),'
|
|||
|
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
|