mirror of https://github.com/6dylan6/jdpro.git
12 lines
144 KiB
JavaScript
12 lines
144 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
10 23 20 7 * jd_dplh0720.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0720");
|
|||
|
var _0xod5='jsjiami.com.v7';const _0x3f9c59=_0x242e;(function(_0x527a56,_0x27dbb5,_0x47a283,_0x560cbe,_0x43c5cf,_0x83a39,_0x170477){return _0x527a56=_0x527a56>>0x2,_0x83a39='hs',_0x170477='hs',function(_0x95f5c4,_0x5067dd,_0x2333d4,_0x56924b,_0x42ae0f){const _0x395d91=_0x242e;_0x56924b='tfi',_0x83a39=_0x56924b+_0x83a39,_0x42ae0f='up',_0x170477+=_0x42ae0f,_0x83a39=_0x2333d4(_0x83a39),_0x170477=_0x2333d4(_0x170477),_0x2333d4=0x0;const _0x20b8cc=_0x95f5c4();while(!![]&&--_0x560cbe+_0x5067dd){try{_0x56924b=parseInt(_0x395d91(0x78c,'adbl'))/0x1+-parseInt(_0x395d91(0x578,'x[pb'))/0x2*(-parseInt(_0x395d91(0x584,'^Tx['))/0x3)+-parseInt(_0x395d91(0x1fb,'rpG$'))/0x4*(parseInt(_0x395d91(0x3cc,'h)QW'))/0x5)+parseInt(_0x395d91(0x2e2,'Vml2'))/0x6+parseInt(_0x395d91(0x2d2,']ZRh'))/0x7*(parseInt(_0x395d91(0x5c2,'sbpf'))/0x8)+parseInt(_0x395d91(0x482,'@IrV'))/0x9+parseInt(_0x395d91(0x1d3,'69Ea'))/0xa*(-parseInt(_0x395d91(0x22f,'&udj'))/0xb);}catch(_0x1944ae){_0x56924b=_0x2333d4;}finally{_0x42ae0f=_0x20b8cc[_0x83a39]();if(_0x527a56<=_0x560cbe)_0x2333d4?_0x43c5cf?_0x56924b=_0x42ae0f:_0x43c5cf=_0x42ae0f:_0x2333d4=_0x42ae0f;else{if(_0x2333d4==_0x43c5cf['replace'](/[RSMLOrFNuKUWTYyktPbpB=]/g,'')){if(_0x56924b===_0x5067dd){_0x20b8cc['un'+_0x83a39](_0x42ae0f);break;}_0x20b8cc[_0x170477](_0x42ae0f);}}}}}(_0x47a283,_0x27dbb5,function(_0x1be089,_0x369c89,_0xb2a843,_0xd3e7de,_0x49754c,_0x1c255b,_0x4d1c34){return _0x369c89='\x73\x70\x6c\x69\x74',_0x1be089=arguments[0x0],_0x1be089=_0x1be089[_0x369c89](''),_0xb2a843=`\x72\x65\x76\x65\x72\x73\x65`,_0x1be089=_0x1be089[_0xb2a843]('\x76'),_0xd3e7de=`\x6a\x6f\x69\x6e`,(0x179f03,_0x1be089[_0xd3e7de](''));});}(0x308,0x276ee,_0x2a76,0xc4),_0x2a76)&&(_0xod5=0xc4);const _0x34b72d=$[_0x3f9c59(0x12e,'l%CO')]()?require(_0x3f9c59(0x1e1,'%tuS')):'',_0x39f9e2=$[_0x3f9c59(0x518,'fn5H')]()?require(_0x3f9c59(0x29e,'&udj')):'',_0x303325=require(_0x3f9c59(0x1c3,'8qir')),_0x1b1a74=require(_0x3f9c59(0x38c,'Tgbn')),_0x23bf0b=require(_0x3f9c59(0x1b9,'C1di')),_0x5127bc=require(_0x3f9c59(0x68f,'UK8W'));let _0x59670b=[],_0x9ef0a4='',_0x1e2919='',_0x426bef='',_0x3b225a='3';if(process[_0x3f9c59(0x639,'2WPZ')][_0x3f9c59(0x48a,'w8ce')]){const _0x598e4c=require(_0x3f9c59(0x34a,'&udj'));$[_0x3f9c59(0x6bc,'Tgbn')]=_0x598e4c[_0x3f9c59(0x44f,'x[pb')]($[_0x3f9c59(0x1ee,'zLH^')][_0x3f9c59(0x322,'bNRl')]($)),$[_0x3f9c59(0x43b,')VW8')]=_0x598e4c[_0x3f9c59(0x4bc,'Dx!I')]($[_0x3f9c59(0x698,'2lRn')][_0x3f9c59(0x2a8,'Ulpj')]($));}if($[_0x3f9c59(0x7ba,'Ulpj')]()){Object[_0x3f9c59(0x704,'lR13')](_0x34b72d)[_0x3f9c59(0x2f2,'6hMF')](_0x23a8f3=>{const _0x1d4c43=_0x3f9c59;_0x59670b[_0x1d4c43(0x4eb,'@IrV')](_0x34b72d[_0x23a8f3]);});if(process[_0x3f9c59(0x581,'2lRn')][_0x3f9c59(0x736,'@IrV')]&&process[_0x3f9c59(0x2bf,'UK8W')][_0x3f9c59(0x165,'Pr1I')]===_0x3f9c59(0x661,'w8ce'))console[_0x3f9c59(0x4e6,'UK8W')]=()=>{};}else _0x59670b=[$[_0x3f9c59(0x3a6,'87c$')](_0x3f9c59(0x2d6,'Lbco')),$[_0x3f9c59(0x3bb,'mDWm')](_0x3f9c59(0x521,'&LOA')),...jsonfomat($[_0x3f9c59(0x7ee,'%7bH')](_0x3f9c59(0x1c0,'IdrJ'))||'[]')[_0x3f9c59(0x193,'Pr1I')](_0x22071a=>_0x22071a[_0x3f9c59(0x1e3,'3N$a')])][_0x3f9c59(0x184,'@IrV')](_0x132e49=>!!_0x132e49);let _0x126cc1=process[_0x3f9c59(0x581,'2lRn')][_0x3f9c59(0x585,'mDWm')]||_0x3f9c59(0x5d0,'f[Sp'),_0x37bfdc=process[_0x3f9c59(0x7cc,'Dx!I')][_0x3f9c59(0x37c,'lR13')]||_0x3f9c59(0x7de,'Ulpj'),_0x19e4d7=_0x3f9c59(0x369,'LDft');$[_0x3f9c59(0x605,'sX!n')]=_0x3f9c59(0x60c,'&udj'),$[_0x3f9c59(0x5b2,'Lbco')]=$[_0x3f9c59(0x205,'Dx!I')][_0x3f9c59(0x20e,'87c$')](/oC[0-9a-z]+/)[0x0],$[_0x3f9c59(0x70c,'2lRn')]=$[_0x3f9c59(0x679,'f[Sp')][_0x3f9c59(0x396,'Dx!I')](/actId=([0-9a-f]+_\d+)/)[0x1],$[_0x3f9c59(0x150,'sbpf')]=_0x3f9c59(0x5f9,'w8ce'),$[_0x3f9c59(0x44c,'lD@%')]=_0x3f9c59(0x292,'y]R('),$[_0x3f9c59(0x529,'rpG$')]=![];let _0x4d134b=[_0x3f9c59(0x49c,'Lbco')];function _0x242e(_0x1b7201,_0x1d8ed7){const _0x28d42e=_0x2a76();return _0x242e=function(_0x4c6b12,_0xd5b13b){_0x4c6b12=_0x4c6b12-0x122;let _0x2a760a=_0x28d42e[_0x4c6b12];if(_0x242e['SyAsiF']===undefined){var _0x242e4d=function(_0x2c3b94){const _0x1b3c68='abcdefghijklmnopqrstuvwxyzABCDEFGHI
|
|||
|
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
|