2024-01-02 12:59:48 +00:00
|
|
|
|
/*
|
|
|
|
|
转赚红包
|
|
|
|
|
执行流程,车头输出助力码--助力--抽奖--检查提现
|
|
|
|
|
可指定PIN车头(只能1个),不指定默认CK1, 变量 JDZHBTOPPIN='jdpin'
|
|
|
|
|
运行一次抽奖次数,默认抽完,控制变量 JDZHBLTNUM='200'
|
|
|
|
|
每次抽奖间隔,默认1秒,控制变量 JDZHBDELAY='3'
|
|
|
|
|
开启提现到上限转红包 JDZHBTORED='true'
|
|
|
|
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|
|
|
|
默认提现,不提现的变量 NOTX='true'
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('Jd转赚红包');
|
2024-01-27 14:42:50 +00:00
|
|
|
|
(function(_0xda4a9e,_0x5317af){const _0x3e082f={_0x69e7c:'\x30\x78\x36\x30\x38',_0x520bd4:'\x56\x31\x32\x38',_0x5c83ee:'\x30\x78\x33\x65\x39',_0xa86e35:'\x6c\x30\x5e\x6e',_0x687663:'\x30\x78\x31\x65\x36',_0x1764af:'\x7a\x75\x25\x28',_0x2d9a3f:'\x30\x78\x33\x30\x30',_0x41c21f:'\x79\x6f\x45\x73',_0x517fb0:'\x30\x78\x35\x63\x37',_0x52cd57:'\x30\x78\x33\x64\x63',_0x3cb233:'\x6a\x59\x77\x6c',_0x4c346c:'\x30\x78\x32\x62\x63',_0x5531ff:'\x39\x32\x62\x79',_0x336b6c:'\x30\x78\x34\x62\x35',_0x185bc2:'\x6b\x45\x75\x63'},_0x4b61b5=_0xda4a9e();while(!![]){try{const _0x3febe4=parseInt(_0x23f1(_0x3e082f._0x69e7c,_0x3e082f._0x520bd4))/(0xb45+-0x1c9a+0x1156)*(parseInt(_0x23f1(_0x3e082f._0x5c83ee,_0x3e082f._0xa86e35))/(-0x16d5*-0x1+-0x1708+0x35*0x1))+-parseInt(_0x23f1(_0x3e082f._0x687663,_0x3e082f._0x1764af))/(0x1c13*-0x1+-0x118+-0x6*-0x4dd)+-parseInt(_0x23f1(_0x3e082f._0x2d9a3f,_0x3e082f._0x41c21f))/(0x1*0x14f4+-0x1*-0x24e5+-0x39d5)+parseInt(_0x23f1(_0x3e082f._0x517fb0,_0x3e082f._0x41c21f))/(-0xf*-0x19f+0x16cb+-0x2f17)+parseInt(_0x23f1(_0x3e082f._0x52cd57,_0x3e082f._0x3cb233))/(-0x1479+-0x1*0x21d7+0x3656)+-parseInt(_0x23f1(_0x3e082f._0x4c346c,_0x3e082f._0x5531ff))/(-0x1b16+-0x4*0x6ce+0x7c3*0x7)+parseInt(_0x23f1(_0x3e082f._0x336b6c,_0x3e082f._0x185bc2))/(0x1abf*-0x1+0x19b7*-0x1+0x347e);if(_0x3febe4===_0x5317af)break;else _0x4b61b5['push'](_0x4b61b5['shift']());}catch(_0x41438a){_0x4b61b5['push'](_0x4b61b5['shift']());}}}(_0x4064,0x9ac4*0x6+0x3c2b*-0xf+0x3*0x1163b));const _0x521318=$[_0x23f1('\x30\x78\x34\x61\x31','\x43\x39\x5d\x56')]()?require(_0x23f1('\x30\x78\x34\x38\x66','\x79\x6f\x45\x73')):'',_0x5b6953=$[_0x23f1('\x30\x78\x33\x32\x61','\x70\x21\x62\x67')]()?require(_0x23f1('\x30\x78\x34\x64\x64','\x47\x55\x70\x42')):'',_0x4e1bdb=require(_0x23f1('\x30\x78\x34\x33\x35','\x23\x72\x33\x49')),_0x33d8dc=require(_0x23f1('\x30\x78\x31\x37\x63','\x35\x29\x25\x6f'));let _0x4b8de5=!![],_0x555a03=[],_0x383e38=[],_0xd869c7=[],_0x50aae8=[],_0x3c07ee={},_0x351267=[],_0x24987b='',_0x130fe3='',_0x53847f='',_0x125ac8='',_0x40e9c1;const _0x4bed8e=process[_0x23f1('\x30\x78\x34\x61\x32','\x70\x75\x38\x63')][_0x23f1('\x30\x78\x33\x31\x31','\x31\x55\x75\x4f')]||_0x23f1('\x30\x78\x34\x61\x35','\x73\x52\x35\x68'),_0x5f154e=process[_0x23f1('\x30\x78\x33\x61\x64','\x6e\x38\x66\x4c')][_0x23f1('\x30\x78\x33\x36\x38','\x79\x34\x24\x5d')]||'\x35',_0x3a0aea=process[_0x23f1('\x30\x78\x33\x61\x64','\x6e\x38\x66\x4c')][_0x23f1('\x30\x78\x33\x61\x36','\x58\x5e\x54\x59')]||'\x2d\x31',_0x317d0a=process[_0x23f1('\x30\x78\x32\x39\x38','\x79\x34\x24\x5d')][_0x23f1('\x30\x78\x33\x62\x35','\x6c\x39\x6d\x63')]||'\x31',_0x15264a=process[_0x23f1('\x30\x78\x32\x34\x31','\x70\x2a\x4d\x33')][_0x23f1('\x30\x78\x35\x65\x63','\x6c\x30\x5e\x6e')]||'\x35',_0x2a61d8=process[_0x23f1('\x30\x78\x36\x30\x64','\x56\x6a\x41\x5b')][_0x23f1('\x30\x78\x33\x32\x37','\x6b\x45\x75\x63')]||'\x31',_0xe43af9=process[_0x23f1('\x30\x78\x33\x39\x39','\x74\x44\x71\x79')][_0x23f1('\x30\x78\x35\x36\x62','\x4e\x23\x53\x59')]||'\x31',_0x2fe046=process[_0x23f1('\x30\x78\x31\x35\x38','\x38\x59\x37\x26')][_0x23f1('\x30\x78\x33\x33\x65','\x42\x71\x32\x66')]||![],_0x42eb83=process[_0x23f1('\x30\x78\x34\x37\x62','\x46\x58\x74\x6e')][_0x23f1('\x30\x78\x31\x66\x36','\x6e\x38\x66\x4c')]||'',_0x4723db=process[_0x23f1('\x30\x78\x31\x64\x66','\x58\x42\x4c\x37')][_0x23f1('\x30\x78\x34\x66\x65','\x71\x7a\x47\x59')]||![],_0x2e3ed7=process[_0x23f1('\x30\x78\x34\x63\x38','\x56\x31\x32\x38')][_0x23f1('\x30\x78\x33\x65\x64','\x35\x65\x35\x25')]||'',_0x35a2d7=process[_0x23f1('\x30\x78\x33\x61\x64','\x6e\x38\x66\x4c')][_0x23f1('\x30\x78\x31\x37\x65','\x4c\x78\x76\x41')]?process[_0x23f1('\x30\x78\x32\x35\x31','\x39\x32\x62\x79')][_0x23f1('\x30\x78\x35\x65\x61','\x23\x72\x33\x49')]:![];if(process[_0x23f1('\x30\x78\x34\x34\x38','\x70\x21\x62\x67')][_0x23f1('\x30\x78\x32\x64\x39','\x38\x59\x37\x26')])try{_0x3c07ee=require(_0x23f1('\x30\x78\x34\x38\x65','\x67\x67\x42\x35')),$[_0x23f1('\x30\x78\x31\x39\x36','\x38\x59\x37\x26')]=_0x3c07ee[_0x23f1('\x30\x78\x34\x39\x31','\x70\x2a\x4d\x33')]($[_0x23f1('\x30\x78\x32\x36\x35','\x26\x4f\x5a\
|
2024-01-02 12:59:48 +00:00
|
|
|
|
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
|