jdpro/jd_superBrandStar_.js

8 lines
68 KiB
JavaScript
Raw Permalink Normal View History

2024-06-28 07:47:44 +00:00
/**
明星送好礼
第一个CK黑自动退出
2 2 29 2 * jd_superBrandStar_.js
*/
const $ = new Env('明星送好礼');
var _0xodb='jsjiami.com.v7';const _0x99fb=_0x3dd5;(function(_0x3c33ea,_0x5b2718,_0x1ce11f,_0x2cf75a,_0x1fae1a,_0x820377,_0x330ab9){return _0x3c33ea=_0x3c33ea>>0x2,_0x820377='hs',_0x330ab9='hs',function(_0x5aa39d,_0x109810,_0x3acd36,_0x5572ff,_0x196456){const _0x3d51ac=_0x3dd5;_0x5572ff='tfi',_0x820377=_0x5572ff+_0x820377,_0x196456='up',_0x330ab9+=_0x196456,_0x820377=_0x3acd36(_0x820377),_0x330ab9=_0x3acd36(_0x330ab9),_0x3acd36=0x0;const _0x27c5f7=_0x5aa39d();while(!![]&&--_0x2cf75a+_0x109810){try{_0x5572ff=parseInt(_0x3d51ac(0x44d,'pB!$'))/0x1+parseInt(_0x3d51ac(0x264,'Kq1^'))/0x2*(parseInt(_0x3d51ac(0x1e1,'*HQE'))/0x3)+parseInt(_0x3d51ac(0x227,'IFaD'))/0x4+parseInt(_0x3d51ac(0x2f8,'xF$o'))/0x5*(-parseInt(_0x3d51ac(0x2c7,'qcCu'))/0x6)+parseInt(_0x3d51ac(0x228,'g@Vf'))/0x7+parseInt(_0x3d51ac(0x22b,'KcHk'))/0x8*(-parseInt(_0x3d51ac(0x1e5,'tS%u'))/0x9)+-parseInt(_0x3d51ac(0x28d,'p3*i'))/0xa;}catch(_0x439751){_0x5572ff=_0x3acd36;}finally{_0x196456=_0x27c5f7[_0x820377]();if(_0x3c33ea<=_0x2cf75a)_0x3acd36?_0x1fae1a?_0x5572ff=_0x196456:_0x1fae1a=_0x196456:_0x3acd36=_0x196456;else{if(_0x3acd36==_0x1fae1a['replace'](/[MPgGBpnSUREdAwufLxh=]/g,'')){if(_0x5572ff===_0x109810){_0x27c5f7['un'+_0x820377](_0x196456);break;}_0x27c5f7[_0x330ab9](_0x196456);}}}}}(_0x1ce11f,_0x5b2718,function(_0x499e8b,_0x572d1f,_0x372615,_0x1ab1e3,_0x17bfea,_0x4e25fd,_0x37be10){return _0x572d1f='\x73\x70\x6c\x69\x74',_0x499e8b=arguments[0x0],_0x499e8b=_0x499e8b[_0x572d1f](''),_0x372615=`\x72\x65\x76\x65\x72\x73\x65`,_0x499e8b=_0x499e8b[_0x372615]('\x76'),_0x1ab1e3=`\x6a\x6f\x69\x6e`,(0x16a437,_0x499e8b[_0x1ab1e3](''));});}(0x31c,0x99a45,_0x367d,0xc9),_0x367d)&&(_0xodb=_0x367d);const _0x53c61c=(function(){const _0x4431d0=_0x3dd5,_0xc6adfb={'pvyjE':function(_0x40b7cf,_0x4eca52){return _0x40b7cf===_0x4eca52;},'zxiFC':_0x4431d0(0x3ec,'GUqm')};let _0xd408b3=!![];return function(_0x35fb01,_0x4890a4){const _0x273da2=_0xd408b3?function(){const _0x5a47e3=_0x3dd5;if(_0x4890a4){if(_0xc6adfb[_0x5a47e3(0x42d,'pB!$')](_0xc6adfb[_0x5a47e3(0x276,'KcHk')],_0xc6adfb[_0x5a47e3(0x1b4,'W%Zs')])){const _0x59383a=_0x4890a4[_0x5a47e3(0x3e1,'Ui3I')](_0x35fb01,arguments);return _0x4890a4=null,_0x59383a;}else _0x5ef0cd[_0x5a47e3(0x418,'T@&n')](_0x39f84a,_0x4d2882);}}:function(){};return _0xd408b3=![],_0x273da2;};}()),_0x815a4b=_0x53c61c(this,function(){const _0x26fe1e=_0x3dd5,_0x1aefa3={'jFwfV':_0x26fe1e(0x200,'aiIR')};return _0x815a4b[_0x26fe1e(0x356,'tFG2')]()[_0x26fe1e(0x2b9,'j0We')](_0x1aefa3[_0x26fe1e(0x47b,'9^H1')])[_0x26fe1e(0x282,')Zbx')]()[_0x26fe1e(0x2e7,'U&PF')](_0x815a4b)[_0x26fe1e(0x26e,'xF$o')](_0x1aefa3[_0x26fe1e(0x1cf,'l4PR')]);});_0x815a4b();const _0x3d553d=$[_0x99fb(0x345,'RUBl')]()?require(_0x99fb(0x3cc,'kei*')):'',_0x463eb2=$[_0x99fb(0x334,'Yx8u')]()?require(_0x99fb(0x24c,'L1#^')):'',_0x5caeaf=require(_0x99fb(0x1d1,'N#MZ'));function _0x367d(){const _0x298636=(function(){return[...[_0xodb,'ujAPsSfjLBiLaGwUmRixh.cEgoumd.npgvMw7LdP==','qmoCW4Orj8o4t8kYWRBdJmk6WR04c2hdNa','uSoIAWldJJFdPmoTW6TmW75oW6pdMSo1WRa','W4TEsSof','sNZLPOdOTkfcCowpGEwBK8oaEW','5lUi5yIi776G','rmo4EHNdMsddUCoBW6a','o1C2WRfW','k1FdUZZcPa','BdG+WOWZhSkJv1hdTCo4WQpdPmoofmoQttFcTCkmWOHJmGPinNZcPSkiWOW/u8kZWOddOu3cN2b6emkMBCoYsmkyWOvjmw7dGbPyh8kyW7a','W5ryE8kOqq','B8kmoJVcLW','5OUB5Ask5AAa6lsH','rmkiWRfjqa','5OIv5lMw56MJ5RckCCkV8y+sNW','EgTOW5P/zmomgx3cVCkU','gbdcUSkoebCtdvBdLYpdKsP2W79e','WPNdVmk3WOSRW4WIWR3dHW','kCknC8kPWP/cScBcNSkPw8kfh8opb8o6r23dTCoVec42DmonWO/dK0vsaanQWOJcM8oVW5FcNqZcNaBdTrpcM17cK8oOFgVcOrCnW4JcKCorWP7dHmk2WOZdGmk3WR1kW4vbgSo9FSopbb/cT8ofWPeMhwhcQ8otfeXFsmoeW4WJrSodgXJcOG','WOxdISkSWPaD','WONdICkDW6JdPH3cUaO','bWRcRq','vSopyr3dGq','W5bqra','hmkFW4tcP8kuW7fRaW','uCkuWRNcSbFdOCoUWRbgWQhdPmohbh1KW5xdLMNcV8kLWOG','6i+C5y6Z5REX5yMd6k6e5Okq5Awq6lwj','WPBdTJvAW6m','t8oLW5LsWPy','sfVcICkdWQe','kqyeEtddS8kWW5XbAbSoWPi','CLPA','aHhcR8kgkZe','W4jBW4JcU1awB8kLFq','W45AvmoqWRddQu7dUbDNnbObr8kM','dbnMB8kM','WQFdStrsA8oE','W4auW6G1W7S','WPBdSajPW6m0eW','W4mjcrPGogG','WOpdVmkGWO8mW48','b8oOWOtcJmocWRv6oG','sSkvWR3cPrBcMCkZW75yWRFdN8oceMagW5FcJhFcVSo5WPldJCoi','FSkrnrJcP8oPWPrBWOVdTSkNW4tdMG','eI
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); 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((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } 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.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.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) 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(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d