faker3/jd_seckillViewTask.js

6 lines
45 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
39 5 * * * jd_seckillViewTask.js
*/
const $ = new Env('秒杀浏览商品领豆');
var _0xodz='jsjiami.com.v7';const _0x52fa86=_0x343b;(function(_0x2a2225,_0x13dca0,_0x4d0fc7,_0x2eef02,_0x17c2d8,_0x444840,_0x1e10a6){return _0x2a2225=_0x2a2225>>0x8,_0x444840='hs',_0x1e10a6='hs',function(_0x51619b,_0x5b80b5,_0x386e68,_0x124ae1,_0xd87b8b){const _0x4920aa=_0x343b;_0x124ae1='tfi',_0x444840=_0x124ae1+_0x444840,_0xd87b8b='up',_0x1e10a6+=_0xd87b8b,_0x444840=_0x386e68(_0x444840),_0x1e10a6=_0x386e68(_0x1e10a6),_0x386e68=0x0;const _0x582d8d=_0x51619b();while(!![]&&--_0x2eef02+_0x5b80b5){try{_0x124ae1=-parseInt(_0x4920aa(0x306,'T^*i'))/0x1*(-parseInt(_0x4920aa(0x2d8,'X]ob'))/0x2)+-parseInt(_0x4920aa(0x321,'OwMG'))/0x3*(-parseInt(_0x4920aa(0x357,'Cmx)'))/0x4)+parseInt(_0x4920aa(0x2c5,'G!9Z'))/0x5*(parseInt(_0x4920aa(0x209,'w8]#'))/0x6)+parseInt(_0x4920aa(0x2a0,'G!9Z'))/0x7*(parseInt(_0x4920aa(0x2d7,'F29h'))/0x8)+-parseInt(_0x4920aa(0x30d,'(b$j'))/0x9+parseInt(_0x4920aa(0x271,'LEu$'))/0xa*(parseInt(_0x4920aa(0x33d,'&&2L'))/0xb)+parseInt(_0x4920aa(0x20f,'pL$W'))/0xc*(-parseInt(_0x4920aa(0x2fa,'9U%8'))/0xd);}catch(_0x1cf513){_0x124ae1=_0x386e68;}finally{_0xd87b8b=_0x582d8d[_0x444840]();if(_0x2a2225<=_0x2eef02)_0x386e68?_0x17c2d8?_0x124ae1=_0xd87b8b:_0x17c2d8=_0xd87b8b:_0x386e68=_0xd87b8b;else{if(_0x386e68==_0x17c2d8['replace'](/[LFxNJRgHdWXpbtnuU=]/g,'')){if(_0x124ae1===_0x5b80b5){_0x582d8d['un'+_0x444840](_0xd87b8b);break;}_0x582d8d[_0x1e10a6](_0xd87b8b);}}}}}(_0x4d0fc7,_0x13dca0,function(_0x27aaab,_0x5d78c0,_0x1bbdd8,_0x1c49db,_0x438d22,_0x48bb92,_0x56b5d6){return _0x5d78c0='\x73\x70\x6c\x69\x74',_0x27aaab=arguments[0x0],_0x27aaab=_0x27aaab[_0x5d78c0](''),_0x1bbdd8=`\x72\x65\x76\x65\x72\x73\x65`,_0x27aaab=_0x27aaab[_0x1bbdd8]('\x76'),_0x1c49db=`\x6a\x6f\x69\x6e`,(0x155846,_0x27aaab[_0x1c49db](''));});}(0xcc00,0x36493,_0x5ba9,0xce),_0x5ba9)&&(_0xodz=0xce);function _0x343b(_0x26bc9a,_0x183789){const _0x2d08a7=_0x5ba9();return _0x343b=function(_0x862932,_0x134cf3){_0x862932=_0x862932-0x1a4;let _0x5ba9c4=_0x2d08a7[_0x862932];if(_0x343b['vWJQUX']===undefined){var _0x343b53=function(_0x4855fd){const _0x3a7728='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57e199='',_0x321fd0='',_0x21a749=_0x57e199+_0x343b53;for(let _0x2478d2=0x0,_0x4cc4d6,_0x4c604f,_0x21afc6=0x0;_0x4c604f=_0x4855fd['charAt'](_0x21afc6++);~_0x4c604f&&(_0x4cc4d6=_0x2478d2%0x4?_0x4cc4d6*0x40+_0x4c604f:_0x4c604f,_0x2478d2++%0x4)?_0x57e199+=_0x21a749['charCodeAt'](_0x21afc6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4cc4d6>>(-0x2*_0x2478d2&0x6)):_0x2478d2:0x0){_0x4c604f=_0x3a7728['indexOf'](_0x4c604f);}for(let _0x13e42b=0x0,_0xbc3a4c=_0x57e199['length'];_0x13e42b<_0xbc3a4c;_0x13e42b++){_0x321fd0+='%'+('00'+_0x57e199['charCodeAt'](_0x13e42b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x321fd0);};const _0x33a361=function(_0x36870f,_0x3e1899){let _0x1f6d09=[],_0x3633a8=0x0,_0x3c631a,_0x58cec9='';_0x36870f=_0x343b53(_0x36870f);let _0x427efb;for(_0x427efb=0x0;_0x427efb<0x100;_0x427efb++){_0x1f6d09[_0x427efb]=_0x427efb;}for(_0x427efb=0x0;_0x427efb<0x100;_0x427efb++){_0x3633a8=(_0x3633a8+_0x1f6d09[_0x427efb]+_0x3e1899['charCodeAt'](_0x427efb%_0x3e1899['length']))%0x100,_0x3c631a=_0x1f6d09[_0x427efb],_0x1f6d09[_0x427efb]=_0x1f6d09[_0x3633a8],_0x1f6d09[_0x3633a8]=_0x3c631a;}_0x427efb=0x0,_0x3633a8=0x0;for(let _0x4a161b=0x0;_0x4a161b<_0x36870f['length'];_0x4a161b++){_0x427efb=(_0x427efb+0x1)%0x100,_0x3633a8=(_0x3633a8+_0x1f6d09[_0x427efb])%0x100,_0x3c631a=_0x1f6d09[_0x427efb],_0x1f6d09[_0x427efb]=_0x1f6d09[_0x3633a8],_0x1f6d09[_0x3633a8]=_0x3c631a,_0x58cec9+=String['fromCharCode'](_0x36870f['charCodeAt'](_0x4a161b)^_0x1f6d09[(_0x1f6d09[_0x427efb]+_0x1f6d09[_0x3633a8])%0x100]);}return _0x58cec9;};_0x343b['HCBdxy']=_0x33a361,_0x26bc9a=arguments,_0x343b['vWJQUX']=!![];}const _0x4b7fec=_0x2d08a7[0x0],_0x4479a6=_0x862932+_0x4b7fec,_0x53096a=_0x26bc9a[_0x4479a6];if(!_0x53096a){if(_0x343b['ctRZgV']===undefined){const _0xa5f4bf=function(_0x2aca91){this['swGSym']=_0x2aca91,this['NFEoSw']=[0x1,0x0,0x0],this['JSqgae']=function(){return'newState';},this['TkkOcG']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UzqeMg']='[\x27|\x22].
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