jdpro/jd_zzhb_draw.js

10 lines
91 KiB
JavaScript
Raw Normal View History

2024-01-02 12:59:48 +00:00
/*
转赚红包,只抽奖提现
1 1 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_zzhb_draw.js
updatetime:2023/11/17
*/
const $ = new Env('Jd转赚红包_抽奖提现');
var _0xodD='jsjiami.com.v7';const _0x31b860=_0x5a0f;function _0x5a0f(_0x4c3a0f,_0xed979c){const _0x23dfe7=_0x389f();return _0x5a0f=function(_0x5b928a,_0x17963b){_0x5b928a=_0x5b928a-0x85;let _0x389fe9=_0x23dfe7[_0x5b928a];if(_0x5a0f['SJvCSt']===undefined){var _0x5a0f06=function(_0x44f46e){const _0xbe4207='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e3c09='',_0x5b6628='',_0x17d32e=_0x1e3c09+_0x5a0f06;for(let _0x54e67e=0x0,_0x44d26f,_0x2ad050,_0xd9f768=0x0;_0x2ad050=_0x44f46e['charAt'](_0xd9f768++);~_0x2ad050&&(_0x44d26f=_0x54e67e%0x4?_0x44d26f*0x40+_0x2ad050:_0x2ad050,_0x54e67e++%0x4)?_0x1e3c09+=_0x17d32e['charCodeAt'](_0xd9f768+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x44d26f>>(-0x2*_0x54e67e&0x6)):_0x54e67e:0x0){_0x2ad050=_0xbe4207['indexOf'](_0x2ad050);}for(let _0x270134=0x0,_0x5d3153=_0x1e3c09['length'];_0x270134<_0x5d3153;_0x270134++){_0x5b6628+='%'+('00'+_0x1e3c09['charCodeAt'](_0x270134)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b6628);};const _0x1b37a6=function(_0x36426d,_0x414430){let _0x348d67=[],_0x4fba89=0x0,_0x4b07e9,_0x3a6657='';_0x36426d=_0x5a0f06(_0x36426d);let _0x3eff67;for(_0x3eff67=0x0;_0x3eff67<0x100;_0x3eff67++){_0x348d67[_0x3eff67]=_0x3eff67;}for(_0x3eff67=0x0;_0x3eff67<0x100;_0x3eff67++){_0x4fba89=(_0x4fba89+_0x348d67[_0x3eff67]+_0x414430['charCodeAt'](_0x3eff67%_0x414430['length']))%0x100,_0x4b07e9=_0x348d67[_0x3eff67],_0x348d67[_0x3eff67]=_0x348d67[_0x4fba89],_0x348d67[_0x4fba89]=_0x4b07e9;}_0x3eff67=0x0,_0x4fba89=0x0;for(let _0x49bc79=0x0;_0x49bc79<_0x36426d['length'];_0x49bc79++){_0x3eff67=(_0x3eff67+0x1)%0x100,_0x4fba89=(_0x4fba89+_0x348d67[_0x3eff67])%0x100,_0x4b07e9=_0x348d67[_0x3eff67],_0x348d67[_0x3eff67]=_0x348d67[_0x4fba89],_0x348d67[_0x4fba89]=_0x4b07e9,_0x3a6657+=String['fromCharCode'](_0x36426d['charCodeAt'](_0x49bc79)^_0x348d67[(_0x348d67[_0x3eff67]+_0x348d67[_0x4fba89])%0x100]);}return _0x3a6657;};_0x5a0f['OYTLFV']=_0x1b37a6,_0x4c3a0f=arguments,_0x5a0f['SJvCSt']=!![];}const _0x4e4497=_0x23dfe7[0x0],_0xf4b5f1=_0x5b928a+_0x4e4497,_0x1bc16a=_0x4c3a0f[_0xf4b5f1];if(!_0x1bc16a){if(_0x5a0f['gOgLfd']===undefined){const _0x3cd31d=function(_0x4d47a6){this['wAuSTb']=_0x4d47a6,this['liSazi']=[0x1,0x0,0x0],this['ngHtcP']=function(){return'newState';},this['NmsCqk']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['cpyIXP']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3cd31d['prototype']['MbRnuD']=function(){const _0xc0abc3=new RegExp(this['NmsCqk']+this['cpyIXP']),_0xc57a39=_0xc0abc3['test'](this['ngHtcP']['toString']())?--this['liSazi'][0x1]:--this['liSazi'][0x0];return this['MxmmGz'](_0xc57a39);},_0x3cd31d['prototype']['MxmmGz']=function(_0x18b498){if(!Boolean(~_0x18b498))return _0x18b498;return this['kpvqBs'](this['wAuSTb']);},_0x3cd31d['prototype']['kpvqBs']=function(_0x54ca69){for(let _0x59b236=0x0,_0xa1cda3=this['liSazi']['length'];_0x59b236<_0xa1cda3;_0x59b236++){this['liSazi']['push'](Math['round'](Math['random']())),_0xa1cda3=this['liSazi']['length'];}return _0x54ca69(this['liSazi'][0x0]);},new _0x3cd31d(_0x5a0f)['MbRnuD'](),_0x5a0f['gOgLfd']=!![];}_0x389fe9=_0x5a0f['OYTLFV'](_0x389fe9,_0x17963b),_0x4c3a0f[_0xf4b5f1]=_0x389fe9;}else _0x389fe9=_0x1bc16a;return _0x389fe9;},_0x5a0f(_0x4c3a0f,_0xed979c);}(function(_0xd7e8bd,_0x196ac4,_0x3b32e3,_0x741a3,_0x9b169a,_0x5e3047,_0x535b05){return _0xd7e8bd=_0xd7e8bd>>0x9,_0x5e3047='hs',_0x535b05='hs',function(_0x378df8,_0x1363fc,_0x3ccf92,_0x131128,_0x210068){const _0x1839fd=_0x5a0f;_0x131128='tfi',_0x5e3047=_0x131128+_0x5e3047,_0x210068='up',_0x535b05+=_0x210068,_0x5e3047=_0x3ccf92(_0x5e3047),_0x535b05=_0x3ccf92(_0x535b05),_0x3ccf92=0x0;const _0x59854d=_0x378df8();while(!![]&&--_0x741a3+_0x1363fc){try{_0x131128=parseInt(_0x1839fd(0x305,'FeNc'))/0x1*(parseInt(_0x1839fd(0x1a2,'ZPgc'))/0x2)+parseInt(_0x1839fd(0x477,'02G#'))/0x3*(-parseInt(_0x1839fd(0x3f7,'tcMn'))/0x4)+parseInt(_0x1839fd(0x211,'$ET!'))/0x5*(-parseInt(_0x1839fd(0x265,'xi8D'))/0x6)+parseInt(_0x1839fd(0x11b,'xX23'))/0x7+parseInt(_0x1839fd(0x9b,'P2B5'))/0x8+parseInt(_0x1839fd(0x19e,'90pg'))/0x9+-parseInt(_0x1839fd(0x24e,'*O0!'))/0xa;}catc
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