mirror of https://github.com/6dylan6/jdpro.git
12 lines
170 KiB
JavaScript
12 lines
170 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
45 7 20 9 * jd_dplh0920.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0920");
|
|||
|
function _0xFBBC1B(){}var _0x624763=Object['defineProperty'],_0xB62E4E2,_0xF23D81D,_0xBD3C90B,_0x9DB3C2F,_0xB3E99F,_0x24F71C,_0xE240233,_0xBFDCAC7,_0x4CA3B9,_0x9A0E57,_0xE219DD,_0x3D2038,_0xBD8CBD0,_0xDAB3AD,_0xAFA85A,_0xD25478,_0x126A6D,_0x5991839,_0x1B984C,_0x6E774E,_0x5AD9EF;function _0xAE69F7(_0xFBBC1B){return _0xB62E4E2[_0xFBBC1B>-0x6?_0xFBBC1B>-0x6?_0xFBBC1B>0x189?_0xFBBC1B-0x13:_0xFBBC1B+0x5:_0xFBBC1B-0xc:_0xFBBC1B+0x51]}_0xB62E4E2=_0xE87A93C();function _0x975ABA6(_0xFBBC1B,_0x624763){return _0xF23D81D.call(_0xAE69F7(0x3e),_0xFBBC1B,_0xAE69F7(0x1b),{value:_0x624763,configurable:!0x0})}_0xFBBC1B(_0xF23D81D=Object.defineProperty,_0xBD3C90B=_0x5AD190((_0xFBBC1B,_0x624763)=>{return _0x624763(_0xFBBC1B())},0x2)(_0x932F25C,_0x531B49));var _0x7C7556=[],_0x38CFC71=[_0x552730(_0xAE69F7(0x18)),_0x552730(_0xAE69F7(0x23)),_0x552730(0x2),_0x552730(_0xAE69F7(0x19)),'VXT(`iN8Vx|',_0x552730(0x4),_0x552730(0x5),_0x552730(_0xAE69F7(0x1e)),_0x552730(0x7),_0x552730(_0xAE69F7(0x2b)),_0x552730(0x9),_0x552730(0xa),_0x552730(_0xAE69F7(0x8)),_0x552730(_0xAE69F7(0x1f)),'7`|U]i]x',_0x552730(0xd),_0x552730(0xe),_0xAE69F7(-0x5),_0x552730(0xf),_0x552730(_0xAE69F7(0x2c)),_0x552730(0x11),'|kIx','YG|UPyRlivsk0','YG|UPyRlivsk0',_0x552730(0x12),_0x552730(_0xAE69F7(0x12a)),_0x552730(0x14),_0x552730(_0xAE69F7(0x56)),_0x552730(0x16),_0x552730(_0xAE69F7(0x4c)),_0x552730(0x18),_0x552730(_0xAE69F7(0x8d)),'YG|UPygx',_0x552730(0x1a),_0x552730(0x1b),_0x552730(0x1c),_0x552730(_0xAE69F7(0x62)),_0x552730(_0xAE69F7(0x61)),_0x552730(0x1f),_0xAE69F7(-0x5),_0x552730(_0xAE69F7(0x16a)),_0x552730(_0xAE69F7(0x54)),_0x552730(_0xAE69F7(0x2f)),_0x552730(0x23),_0x552730(0x24),_0x552730(0x25),_0x552730(_0xAE69F7(0x65)),_0x552730(0x27),_0x552730(_0xAE69F7(0x63)),_0x552730(0x29),_0x552730(_0xAE69F7(0x6d)),_0x552730(0x2b),_0x552730(0x2c),'|`p_','f}uJt&d";FG=rNMqsg_YNZ}Is{Ui;DUgPWjF5bLm<UQ#|N3f#97UMoEFt{$#CCMq`Yvo)y_0IFkj}DQtMELitb#EHF)k}ZStk23z|^01H![`{xR8bX,zTq}G&YL/;xQt<9:4&510M_VexmS8v`U@]g_0[','q;|Ugkn',_0x552730(_0xAE69F7(0x2d)),_0x552730(0x2e),_0x552730(0x2f),_0x552730(_0xAE69F7(0x53)),_0x552730(_0xAE69F7(0x71)),_0x552730(_0xAE69F7(0x78)),_0x552730(0x33),'XBsL4I{+r]$T+D*C[YY|Dw@qa=rQg[|Sqov,s8FlTvhX`X*q_8C_VoxA2!?8>&zGr_3iVQx>4_o#;?F',_0x552730(_0xAE69F7(0x30)),_0x552730(_0xAE69F7(0x72)),_0x552730(0x7),_0x552730(0x36),'X!|U=XJl9',_0x552730(0x37),_0x552730(0x38),_0x552730(0x39),'2s9QzzHOY:>Yo|~',_0x552730(0x3a),'++`C&$/"]r3W(pJ,|xN5)l(',_0x552730(0x3b),'TKAEK~.#:kXG<t],nHwC1pMR2(?uE<|ueQaJ#Sn',_0x552730(0x3c),_0x552730(0x3d),'f=P@R~4Q5DU7GRH$@h&Q5}*G91Z26q|F|ZcxD"^hbxX[3Wcha:;{#.&{x:aY]Z@Yl(R|!q(QWr;i!/($EhNXA|!',_0x552730(0x3e),_0x552730(_0xAE69F7(0x21)),_0x552730(_0xAE69F7(0xcf)),_0x552730(_0xAE69F7(0xd0)),_0x552730(_0xAE69F7(0x73)),'BYG1PL.8r%"kNJzv"a|KYsk@+4R','YG|Uxe?x',_0x552730(_0xAE69F7(0x39)),_0x552730(_0xAE69F7(-0x3)),_0x552730(_0xAE69F7(0x74)),_0x552730(0x46),_0x552730(_0xAE69F7(0x76)),_0x552730(0x48),'wZM7po/|8)_Ya',_0x552730(_0xAE69F7(0x0)),_0x552730(0x4a),_0x552730(0x4b),_0x552730(0x4c),_0x552730(_0xAE69F7(0x7d)),'|=4Kq^a)',_0x552730(_0xAE69F7(0x7c)),_0x552730(0x4f),_0x552730(_0xAE69F7(0xc)),_0x552730(0x51),_0x552730(_0xAE69F7(0x41)),_0x552730(_0xAE69F7(0x7f)),_0x552730(_0xAE69F7(0x80)),_0x552730(_0xAE69F7(0x184)),'YG|UPyRlivsk0',_0x552730(_0xAE69F7(0x66)),_0x552730(0x57),_0x552730(_0xAE69F7(0x2a)),_0x552730(0x59),_0x552730(_0xAE69F7(0x2)),_0x552730(0x5b),_0x552730(0x39),_0x552730(_0xAE69F7(0x22)),_0x552730(0x39),_0x552730(_0xAE69F7(0x83)),_0x552730(0x5e),_0x552730(0x5f),_0x552730(0x60),'YG|Uxe?x',_0x552730(_0xAE69F7(-0x4)),_0x552730(_0xAE69F7(0xab)),_0x552730(_0xAE69F7(0x3)),_0x552730(_0xAE69F7(-0x4)),_0x552730(0x61),_0x552730(_0xAE69F7(-0x3)),_0x552730(_0xAE69F7(-0x4)),_0x552730(0x63),'ae|wwOKt=2=Tn',_0x552730(_0xAE69F7(0x12)),_0x552730(_0xAE69F7(-0x2)),_0x552730(0x66),_0x552730(_0xAE69F7(-0x4)),_0x552730(0x67),_0x552730(0x68),_0x552730(0x69),_0x552730(_0xAE69F7(0x96)),_0x552730(0x6b),_0x552730(0x6c),_0x552730(0x6d),_0x552730(_0xAE69F7(-0x1)),_0x552730(0x49),_0x552730(0x6f),'c`|THAxRp>3SMNpP','c`|THA}0',_0x552730(0x70),_0x552730(0x71),'(F3.N>dqGZ1YqWoAm#
|
|||
|
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
|