mirror of https://github.com/6dylan6/jdpro.git
17 lines
99 KiB
JavaScript
17 lines
99 KiB
JavaScript
|
|
|||
|
/*
|
|||
|
京喜特价抽现金
|
|||
|
执行流程,车头输出助力码--助力--抽奖--检查提现
|
|||
|
可指定PIN车头(只能1个),不指定默认CK1, 变量JXCTOPPIN='jdpin'
|
|||
|
多少助力换下一个车头,默认9999次 ,可调整变量 JXCXJNUM='100'
|
|||
|
运行一次抽奖次数,默认抽完,控制变量 JXCXJLTNUM='200'
|
|||
|
每次抽奖间隔,默认1秒,控制变量 JXCXJDELAY='3'
|
|||
|
开启提现到上限转红包 JXCXJTORED='true'
|
|||
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|||
|
默认提现,不提现的变量 NOTX='true'
|
|||
|
updatetime:2023/11/17
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('Jx特价抽现金');
|
|||
|
const bdy_0x24f755=bdy_0x2a0e;(function(_0x10eb3d,_0x239eb0){const bdy_0x58c633={_0xa00176:'0xcf',_0x5212b3:'saIU',_0x50c941:'0x315',_0x55c1ee:'602p',_0x3896c2:'0xf0',_0x1ebab0:'kBHh',_0x3457f3:'0x2b1',_0x284042:'ai!i',_0x50b493:'0x291',_0x374df8:'10jT',_0x499e0f:'0x27f',_0xd4690e:'0x190',_0x5865bc:'liZ(',_0x2a555d:'0x2fc',_0x28bc34:'c6uM',_0x15a39b:'0x30c',_0x4ed532:'MjlJ',_0x52035e:'0xdc',_0x40ca58:'7!z$',_0x1d9dbf:'0x1c0',_0x5e1606:'^S^3',_0x8e55c3:'0x113',_0x476a46:'cfJu'},_0x42df88=bdy_0x2a0e,_0x362bbd=_0x10eb3d();while(!![]){try{const _0x7a5358=-parseInt(_0x42df88(bdy_0x58c633._0xa00176,bdy_0x58c633._0x5212b3))/(-0x1ac*-0x11+0x1*-0xe3b+0x1c6*-0x8)+-parseInt(_0x42df88(bdy_0x58c633._0x50c941,bdy_0x58c633._0x55c1ee))/(-0x13b1+-0x1d42+-0x30f5*-0x1)*(parseInt(_0x42df88(bdy_0x58c633._0x3896c2,bdy_0x58c633._0x1ebab0))/(0x6ad*-0x2+-0x1*-0x22cb+-0x156e))+-parseInt(_0x42df88(bdy_0x58c633._0x3457f3,bdy_0x58c633._0x284042))/(0x1689*-0x1+-0x13ff+0x2a8c)+parseInt(_0x42df88(bdy_0x58c633._0x50b493,bdy_0x58c633._0x374df8))/(-0x5*0x4d3+0x1*-0x241c+0x3c40)*(-parseInt(_0x42df88(bdy_0x58c633._0x499e0f,bdy_0x58c633._0x55c1ee))/(-0x13c4*-0x1+-0x4*-0x434+-0x248e))+-parseInt(_0x42df88(bdy_0x58c633._0xd4690e,bdy_0x58c633._0x5865bc))/(0x1a53+0x82b+-0x11*0x207)*(parseInt(_0x42df88(bdy_0x58c633._0x2a555d,bdy_0x58c633._0x28bc34))/(0x660*-0x1+-0xf1*0x19+-0x15*-0x16d))+-parseInt(_0x42df88(bdy_0x58c633._0x15a39b,bdy_0x58c633._0x4ed532))/(0x2*-0xe62+0x94*-0x1a+-0x2bd5*-0x1)*(-parseInt(_0x42df88(bdy_0x58c633._0x52035e,bdy_0x58c633._0x40ca58))/(-0x18f7+0x2525*0x1+-0xc24))+parseInt(_0x42df88(bdy_0x58c633._0x1d9dbf,bdy_0x58c633._0x5e1606))/(0x39b*-0x7+0x21dd+-0xd*0xa9)*(parseInt(_0x42df88(bdy_0x58c633._0x8e55c3,bdy_0x58c633._0x476a46))/(0x4*0x6d+-0x1bf1*0x1+-0x3*-0x8c3));if(_0x7a5358===_0x239eb0)break;else _0x362bbd['push'](_0x362bbd['shift']());}catch(_0x540db1){_0x362bbd['push'](_0x362bbd['shift']());}}}(bdy_0x5aa4,0x6c*0x191+0x38d05*0x1+0x27f*-0xad));const bdy_0x4d1dd4=$[bdy_0x24f755('0x232','aUj#')]()?require(bdy_0x24f755('0x100','iW@b')):'',bdy_0x4f98ef=$[bdy_0x24f755('0x11b',']Y)g')]()?require(bdy_0x24f755('0x170','a@*6')):'',bdy_0x1f0b2a=require(bdy_0x24f755('0x2e2','cfJu')),bdy_0x21111d=require(bdy_0x24f755('0x304','liZ('));let bdy_0x4100ec=!![],bdy_0x47c3b9=[],bdy_0x1a5301=[],bdy_0x44e968=[],bdy_0x4cfbb0=[],bdy_0x489d91,bdy_0x1cd71b=[],bdy_0x1c8499='',bdy_0x3fcdeb='',bdy_0x2a0e98='',bdy_0x51e37f='',bdy_0x25ca74,bdy_0x5f003f=process[bdy_0x24f755('0x23e','Sh@q')][bdy_0x24f755('0x105','a@*6')]||bdy_0x24f755('0x227','a@*6'),bdy_0x531aa4=process[bdy_0x24f755('0x13e','AZLJ')][bdy_0x24f755('0x2f0','[7KK')]||'5',bdy_0x1faa35=process[bdy_0x24f755('0x24e','7kvw')][bdy_0x24f755('0x28b','lMis')]||'-1',bdy_0x53bab1=process[bdy_0x24f755('0x180','&L3*')][bdy_0x24f755('0x1ae','m32d')]||'1',bdy_0x363729=process[bdy_0x24f755('0x22b','9VeZ')][bdy_0x24f755('0x287','$E#*')]||'5',bdy_0x307026=process[bdy_0x24f755('0x249','8O*c')][bdy_0x24f755('0x245','[7KK')]||'1',bdy_0x303be2=process[bdy_0x24f755('0x2d5','WzBg')][bdy_0x24f755('0x136',']Y)g')]||![],bdy_0x10bfbd=process[bdy_0x24f755('0x22b','9VeZ')][bdy_0x24f755('0x236','JG@9')]||'',bdy_0x166dd0=process[bdy_0x24f755('0x193','lMis')][bdy_0x24f755('0x1c2','A$rE')]||![],bdy_0x31ab25=process[bdy_0x24f755('0x10e','MjlJ')][bdy_0x24f755('0x275','mHC&')]?process[bdy_0x24f755('0x199','$E#*')][bdy_0x24f755('0x2ff','liZ(')]:![];if(process[bdy_0x24f755('0x212','GdS$')][bdy_0x24f755('0xcc','A$rE')])try{require(bdy_0x24f755('0xb6','KX2l')),bdy_0x489d91=require(bdy_0x24f755('0x2af','9VeZ')),$[bdy_0x24f755('0x290','&L3*')]=bdy_0x489d91[bdy_0x24f755('0xd6','TrFh')]($[bdy_0x24f755('0x27e','(5QM')][bdy_0x24f755('0xc7','liZ(')]($)),$[bdy_0x24f755('0x2f2','XHf3')]=bdy_0x489d91[bdy_0x24f755('0xd6','TrFh')]($[bdy_0x24f755('0x210','10jT')][bdy_0x24f755('0x313','JG@9')]($));}catch{$[bdy_0x24f755('0x309','(g2^')](bdy_0x24f755('0x23a','a@*6')),$[bdy_0x24f755('0x289','XHf3')]=$[bdy_0x24f755('0x2de','mj$V')],$[bdy_0x24f755('0x286','3$X2')]=$[bdy_0x24f755('0x111','9VeZ')];}else $[bdy_0x24f755('0x296','MjlJ')]=$[bdy_0x24f755('0x25f','7!z$')],$[b
|
|||
|
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
|