mirror of https://github.com/6dylan6/jdpro.git
12 lines
152 KiB
JavaScript
12 lines
152 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
10 8 6 8 * jd_dplh0806.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0806");
|
|||
|
var _0xod4='jsjiami.com.v7';const _0xc08623=_0x319b;(function(_0x35d52c,_0x5e4c4a,_0xd7610e,_0xd8b124,_0x1a4064,_0x24e6e6,_0x407345){return _0x35d52c=_0x35d52c>>0x7,_0x24e6e6='hs',_0x407345='hs',function(_0x534685,_0x5ac4a4,_0x2d7d04,_0x5611b2,_0x3b692b){const _0x53a0b7=_0x319b;_0x5611b2='tfi',_0x24e6e6=_0x5611b2+_0x24e6e6,_0x3b692b='up',_0x407345+=_0x3b692b,_0x24e6e6=_0x2d7d04(_0x24e6e6),_0x407345=_0x2d7d04(_0x407345),_0x2d7d04=0x0;const _0x5ea528=_0x534685();while(!![]&&--_0xd8b124+_0x5ac4a4){try{_0x5611b2=-parseInt(_0x53a0b7(0x741,'yCu&'))/0x1*(-parseInt(_0x53a0b7(0x35c,'1Nbx'))/0x2)+parseInt(_0x53a0b7(0x363,'RU@v'))/0x3*(parseInt(_0x53a0b7(0x14e,'RU@v'))/0x4)+parseInt(_0x53a0b7(0x7c9,'Dy^1'))/0x5+-parseInt(_0x53a0b7(0x684,'jWcu'))/0x6*(parseInt(_0x53a0b7(0x6b3,'N%MK'))/0x7)+parseInt(_0x53a0b7(0x52e,'i0&c'))/0x8*(-parseInt(_0x53a0b7(0x5c5,'q)kd'))/0x9)+parseInt(_0x53a0b7(0x66a,'qF6h'))/0xa*(-parseInt(_0x53a0b7(0x72a,'kUM&'))/0xb)+parseInt(_0x53a0b7(0x2d1,'qF6h'))/0xc*(parseInt(_0x53a0b7(0x2c4,'8O)t'))/0xd);}catch(_0xcced1d){_0x5611b2=_0x2d7d04;}finally{_0x3b692b=_0x5ea528[_0x24e6e6]();if(_0x35d52c<=_0xd8b124)_0x2d7d04?_0x1a4064?_0x5611b2=_0x3b692b:_0x1a4064=_0x3b692b:_0x2d7d04=_0x3b692b;else{if(_0x2d7d04==_0x1a4064['replace'](/[EhrTBUNQFRXSCOIpkVHJ=]/g,'')){if(_0x5611b2===_0x5ac4a4){_0x5ea528['un'+_0x24e6e6](_0x3b692b);break;}_0x5ea528[_0x407345](_0x3b692b);}}}}}(_0xd7610e,_0x5e4c4a,function(_0xea1751,_0x547771,_0xd628e3,_0x389aee,_0x3199aa,_0x4f1978,_0x40b881){return _0x547771='\x73\x70\x6c\x69\x74',_0xea1751=arguments[0x0],_0xea1751=_0xea1751[_0x547771](''),_0xd628e3=`\x72\x65\x76\x65\x72\x73\x65`,_0xea1751=_0xea1751[_0xd628e3]('\x76'),_0x389aee=`\x6a\x6f\x69\x6e`,(0x17c95a,_0xea1751[_0x389aee](''));});}(0x6180,0x5519e,_0x59ec,0xc5),_0x59ec)&&(_0xod4=`\x84d`);const _0x3bc8c0=$[_0xc08623(0x38e,'PwNc')]()?require(_0xc08623(0x63b,'kUM&')):'',_0x187a1f=$[_0xc08623(0x1d8,'i0&c')]()?require(_0xc08623(0x48c,'xf&)')):'',_0x22ac09=require(_0xc08623(0x506,'q)kd')),_0x8ac3f6=require(_0xc08623(0x86f,'$b0H')),_0x44f2ed=require(_0xc08623(0x7b8,'0cEM')),_0x28620f=require(_0xc08623(0x4a5,'yl9['));let _0x19605e=[],_0x1a2f54='',_0x43a202='',_0x5e34d7='',_0x1b65d5='3';if(process[_0xc08623(0x1b5,'ELAb')][_0xc08623(0x40a,'an]3')]){const _0x162a8a=require(_0xc08623(0x18a,'yCu&'));$[_0xc08623(0x88f,'N%MK')]=_0x162a8a[_0xc08623(0x3d6,'MUTr')]($[_0xc08623(0x7f0,'jWcu')][_0xc08623(0x3fb,'1sSt')]($)),$[_0xc08623(0x638,'$DHu')]=_0x162a8a[_0xc08623(0x2b8,'1sSt')]($[_0xc08623(0x6a9,')OR(')][_0xc08623(0x4bf,'RU@v')]($));}if($[_0xc08623(0x80b,'wvsd')]()){Object[_0xc08623(0x7d2,'i#)r')](_0x3bc8c0)[_0xc08623(0x360,'yl9[')](_0x579819=>{const _0x3e97b8=_0xc08623;_0x19605e[_0x3e97b8(0x434,'apP0')](_0x3bc8c0[_0x579819]);});if(process[_0xc08623(0x892,'apP0')][_0xc08623(0x1ea,'szPg')]&&process[_0xc08623(0x6e1,'$DHu')][_0xc08623(0x619,'T1jM')]===_0xc08623(0x50c,'RU@v'))console[_0xc08623(0x14c,'Sitt')]=()=>{};}else _0x19605e=[$[_0xc08623(0x7cf,'T1jM')](_0xc08623(0x834,'q)kd')),$[_0xc08623(0x87f,'CY0V')](_0xc08623(0x57f,'T#O)')),...jsonfomat($[_0xc08623(0x88e,'WJug')](_0xc08623(0x182,'Xpsi'))||'[]')[_0xc08623(0x57d,'T1jM')](_0x28aafc=>_0x28aafc[_0xc08623(0x27b,'Xpsi')])][_0xc08623(0x3db,'T1jM')](_0xa66930=>!!_0xa66930);function _0x319b(_0x3cc7e6,_0x352f1b){const _0x35511a=_0x59ec();return _0x319b=function(_0x103cb5,_0x417cfd){_0x103cb5=_0x103cb5-0x14a;let _0x59ec6c=_0x35511a[_0x103cb5];if(_0x319b['BQvMVh']===undefined){var _0x319b31=function(_0xa17923){const _0x2f915f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x299f61='',_0x3ec39b='',_0x366c88=_0x299f61+_0x319b31;for(let _0x3cf5eb=0x0,_0x542404,_0x44331b,_0x4fc61a=0x0;_0x44331b=_0xa17923['charAt'](_0x4fc61a++);~_0x44331b&&(_0x542404=_0x3cf5eb%0x4?_0x542404*0x40+_0x44331b:_0x44331b,_0x3cf5eb++%0x4)?_0x299f61+=_0x366c88['charCodeAt'](_0x4fc61a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x542404>>(-0x2*_0x3cf5eb&0x6)):_0x3cf5eb:0x0){_0x44331b=_0x2f915f['indexOf'](_0x44331b);}for(let _0xca1068=0x0,_0x15c770=_0x299f61['length'];_0xca1068<_0x15c770;_0xca1068++){_0x3ec39b+='%'+('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
|