mirror of https://github.com/6dylan6/jdpro.git
25 lines
153 KiB
JavaScript
25 lines
153 KiB
JavaScript
|
|
|||
|
/*
|
|||
|
执行流程,车头输出助力码--助力--抽奖--检查提现
|
|||
|
可指定PIN车头,不指定默认CK1, 变量 JOYZBJTOPPIN='jdpin'
|
|||
|
多少助力停止,默认9999个 ,控制变量 JOYZBJNUM='100';
|
|||
|
运行一次抽奖次数,默认抽完,控制变量 JOYZBJLTNUM='200'
|
|||
|
每次抽奖间隔,默认1秒,控制变量 JOYZBJDELAY='3'
|
|||
|
开启提现到上限转红包 JOYZBJTORED='true'
|
|||
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('Joy追补记_助力');
|
|||
|
function SV3ucKv(){}var EyMxHe=Object['defineProperty'],qVLP4R,k1gZat,OZMae1,iavcjk,NUSP6U,f33n01,WjPm7U,Bn4Cmp,lgHlwgn,HS_U64,HnMTydD,BtQrNw,r6o92j,rbB54uy,imFB0f,pOf8hmn,Pct_STw,US1ueT,UlfIT8S,FdGpbn,aRgEDvt,hOYt6Z3,RKx7Hb;function UNpjOl(SV3ucKv){return qVLP4R[SV3ucKv<0x16e?SV3ucKv>-0x5b?SV3ucKv<-0x5b?SV3ucKv+0x42:SV3ucKv+0x5a:SV3ucKv-0x13:SV3ucKv+0x5a]}qVLP4R=BLMabM();function gI1emQq(SV3ucKv,EyMxHe){k1gZat(SV3ucKv,'length',{value:EyMxHe,configurable:!0x0});return SV3ucKv}SV3ucKv(k1gZat=Object.defineProperty,OZMae1=gI1emQq(nRuRug((...EyMxHe)=>{var k1gZat=nRuRug(EyMxHe=>{return qVLP4R[EyMxHe>0x1ac?EyMxHe-0x4f:EyMxHe>0x1ac?EyMxHe-0x5:EyMxHe>0x1ac?EyMxHe-0x5:EyMxHe+0x1c]},0x1);SV3ucKv(EyMxHe[UNpjOl(-0x7)]=0x2,EyMxHe.QlWRC5=EyMxHe[k1gZat(-0x1c)]);return EyMxHe[k1gZat(-0x1b)](EyMxHe.QlWRC5())}),UNpjOl(-0x58))(ysAzJo,d6ETq1j));var FisxXg=[],y7Cke3J=[ji9_q0F(UNpjOl(-0x5a)),ji9_q0F(UNpjOl(-0x59)),ji9_q0F(UNpjOl(-0x58)),ji9_q0F(0x3),ji9_q0F(0x4),ji9_q0F(UNpjOl(-0x1c)),ji9_q0F(UNpjOl(-0x10)),'dF|Pj',ji9_q0F(UNpjOl(0x3)),ji9_q0F(UNpjOl(0x7)),ji9_q0F(UNpjOl(0x2a)),ji9_q0F(0xa),ji9_q0F(0xb),ji9_q0F(UNpjOl(-0x11)),';.)20|X',ji9_q0F(UNpjOl(0xd)),ji9_q0F(UNpjOl(0xe)),ji9_q0F(0xf),'w,|rw1y0',ji9_q0F(UNpjOl(0x40)),ji9_q0F(0x11),'w,|rn|N0','(&B34|W0',ji9_q0F(UNpjOl(-0xc)),ji9_q0F(UNpjOl(-0xd)),ji9_q0F(0x14),ji9_q0F(0x15),ji9_q0F(0x16),ji9_q0F(UNpjOl(-0xa)),ji9_q0F(0x18),ji9_q0F(UNpjOl(-0x57)),ji9_q0F(0x1a),ji9_q0F(0x1b),ji9_q0F(0x1c),ji9_q0F(0x16),ji9_q0F(UNpjOl(-0x57)),ji9_q0F(0x1b),ji9_q0F(0x1c),ji9_q0F(UNpjOl(-0x43)),ji9_q0F(UNpjOl(0x1b)),ji9_q0F(0x16),ji9_q0F(UNpjOl(-0x57)),ji9_q0F(0x1d),ji9_q0F(UNpjOl(0x12)),ji9_q0F(0x1f),'r#$(L|E0',ji9_q0F(0x20),ji9_q0F(0x21),ji9_q0F(0x22),ji9_q0F(0x23),ji9_q0F(0x24),ji9_q0F(UNpjOl(0x7b)),ji9_q0F(0x26),ji9_q0F(0x27),ji9_q0F(UNpjOl(0x1d)),ji9_q0F(0x29),ji9_q0F(UNpjOl(-0x1d)),ji9_q0F(UNpjOl(0x1e)),'LIq`HEPZmk;e^A,vDn"}|_(0',ji9_q0F(0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(0x4d)),ji9_q0F(0x62),'4mi[.&;h|.DbXq3}vff',ji9_q0F(UNpjOl(-0x55)),ji9_q0F(0x63),'P(22|nJbxa_iswSYi:',ji9_q0F(UNpjOl(0x4e)),ji9_q0F(0x65),ji9_q0F(UNpjOl(0x4f)),'P(KP|naZ*M,GMES+cl!',ji9_q0F(UNpjOl(0x50)),ji9_q0F(0x68),'y@+||naZ*M}cb3E+`l={@["$]A.:)MM/Fn(B(#(,z',ji9_q0F(0x69),ji9_q0F(0x6a),ji9_q0F(0x6b),ji9_q0F(0x6c),ji9_q0F(UNpjOl(0x5f)),ji9_q0F(UNpjOl(0x152)),ji9_q0F(0x6f),'A|ez',ji9_q0F(UNpjOl(-0x1a)),ji9_q0F(0x71),ji9_q0F(UNpjOl(-0x23)),ji9_q0F(0x73),ji9_q0F(UNpjOl(0x64)),ji9_q0F(UNpjOl(-0x4b)),ji9_q0F(UNpjOl(0x128)),ji9_q0F(0x77),ji9_q0F(0x78),ji9_q0F(UNpjOl(-0x2d)),ji9_q0F(UNpjOl(0x66)),ji9_q0F(UNpjOl(-0x1b)),ji9_q0F(UNpjOl(0x67)),ji9_q0F(UNpjOl(-0x54)),ji9_q0F(0x5c),ji9_q0F(UNpjOl(0x68)),ji9_q0F(UNpjOl(-0x30)),ji9_q0F(UNpjOl(-0x12)),ji9_q0F(0x80),ji9_q0F(0x81),ji9_q0F(0x82),'|e!(kyX',ji9_q0F(UNpjOl(-0x40)),ji9_q0F(UNpjOl(-0x53)),ji9_q0F(UNpjOl(0x53)),ji9_q0F(UNpjOl(-0x53)),ji9_q0F(0x86),ji9_q0F(0x87),ji9_q0F(0x88),ji9_q0F(0x89),'|e@+%Uh[',ji9_q0F(0x8a),ji9_q0F(UNpjOl(-0x1)),ji9_q0F(0x57),ji9_q0F(0x5f),ji9_q0F(UNpjOl(-0x51)),ji9_q0F(UNpjOl(0x55)),ji9_q0F(0x8d)
|
|||
|
指定助力CODE:都去助力TA JOYZBJCODE='code1' 多个&连接
|
|||
|
多少助力停止:默认9999个 JOYZBJNUM='100'
|
|||
|
抽奖次数:默认抽完 JOYZBJLTNUM='200'
|
|||
|
抽奖间隔:默认1秒 JOYZBJDELAY='3'
|
|||
|
提现间隔:默认5秒 TXDELAY='3'
|
|||
|
助力间隔:默认1秒 HLDELAY='3'
|
|||
|
开启提现到上限转红包:JOYZBJTORED='true'
|
|||
|
支持代理API: DY_PROXY='apiurl'
|
|||
|
垃圾券数量:默认10次,CXJLJQ_COUNT='20'
|
|||
|
关闭抽奖:默认助力完车头自动抽奖,CXJHELP_NODRAW='true'
|
|||
|
关闭提现:NOTX='true'\n`),await XRw7Mz1());if(ZStGmn&&hOYt6Z3.D30BUm>-OZMae1(0x5a)){EyMxHe.OOaiVL=K7njHP(console[iavcjk(UNpjOl(0x3c))](MPibEf(iavcjk(EyMxHe[UNpjOl(0x2f)]-0x34)+'N:',ZStGmn,RKx7Hb=-OZMae1(0x5b))),E4l3IH[iavcjk(EyMxHe.gRLJEla-0x33)+iavcjk(OZMae1(0x5c))](gI1emQq((...EyMxHe)=>{SV3ucKv(EyMxHe.length=UNpjOl(-0x59),EyMxHe[OZMae1(0x5d)]=EyMxHe[0x0]);return EyMxHe[OZMae1(0x5d)][iavcjk[ji9_q0F(UNpjOl(-0x9))](UNpjOl(-0x8),OZMae1(0x4))+OZMae1(0xfd)](ZStGmn)},0x1)));if(EyMxHe.OOaiVL==MPibEf(EyMxHe[UNpjOl(0x2f)]-0x81,tR9CYel(-0x1e))){var WjPm7U=nRuRug(EyMxHe=>{return qVLP4R[EyMxHe<0x1bb?EyMxHe<0x1bb?EyMxHe+0xd:EyMxHe-0x3f:EyMxHe-0x50]},0x1);return K7njHP(console[iavcjk(OZMae1(0x57))](iavcjk(UNpjOl(0x43))+iavcjk(0x53)+iavcjk(EyMxHe[OZMae1(0x4a)]-WjPm7U(0x91))),UNpjOl(-0x8))};kaBpkL0=E4l3IH[EyMxHe.OOaiVL]}else{var Bn4Cmp=nRuRug(EyMxHe=>{return qVLP4R[EyMxHe<0x1d?EyMxHe-0x1f:EyMxHe<0x1d?EyMxHe-0x5f:EyMxHe-0x1e]},0x1);SV3ucKv(console[iavcjk(Bn4Cmp(0xb4))](iavcjk(OZMae1(0x65))+iavcjk(UNpjOl(0xc4))+'车头'),kaBpkL0=E4l3IH[UNpjOl(-0x5a)])}if(K7njHP(ct8gIuY=kaBpkL0,$[iavcjk(0x57)+'me']=decodeURIComponent(ct8gIuY[iavcjk(0x58)](/pt_pin=([^; ]+)(?=;?)/)&&ct8gIuY[iavcjk(UNpjOl(0x5))](/pt_pin=([^; ]+)(?=;?)/)[UNpjOl(-0x59)]),$[EyMxHe[0x3][ji9_q0F(0x229)]]=!0x0,$[k1gZat[ji9_q0F(0x221)](undefined,0x5a)+OZMae1(0x67)]='',$.UA=_kn8_L[EyMxHe[OZMae1(0x5)][ji9_q0F(0x22a)]]?_kn8_L[k1gZat[ji9_q0F(EyMxHe[OZMae1(0x4a)]+OZMae1(0x58))](UNpjOl(-0x8),[OZMae1(-0x39)])]():_kn8_L[k1gZat(0x5c)+EyMxHe[UNpjOl(-0x16)][ji9_q0F(EyMxHe.gRLJEla+0x1a9)]],console[EyMxHe[OZMae1(0x5)][ji9_q0F(0x22c)]](`\n————————————————————车头开团——————————————————————————`),console[iavcjk(0x48)](`账号:${$[k1gZat(OZMae1(-0x3b))+'me']||$[iavcjk(UNpjOl(0x47))+'me']}`),await nvp2D5(),MPibEf($[EyMxHe[EyMxHe.gRLJEla-UNpjOl(0x45)][0x0]],tR9CYel(-UNpjOl(0x3))))){var lgHlwgn=gI1emQq((...EyMxHe)=>{var k1gZat=nRuRug(EyMxHe=>{return qVLP4R[EyMxHe>0x208?EyMxHe-0x61:EyMxHe>0x3f?EyMxHe<0x3f?EyMxHe-0x41:EyMxHe>0x208?EyMxHe-0x34:EyMxHe-0x40:EyMxHe-0x3]},0x1);SV3ucKv(EyMxHe.length=0x5,EyMxHe[k1gZat(0xe0)]=EyMxHe[0x0]);if(typeof EyMxHe[0x3]===ji9_q0F(0x205)){EyMxHe[0x3]=BtQrNw}EyMxHe[OZMae1(0x64)]=0x49;if(typeof EyMxHe[k1gZat(0x82)]===ji9_q0F(0x205)){EyMxHe[EyMxHe.EhBoDG-UNpjOl(-0x3)]=FisxXg}EyMxHe.MXBw4Ip=EyMxHe[k1gZat(0x82)];if(EyMxHe[0x6a]!==EyMxHe[0x1]){return EyMxHe.MXBw4Ip[EyMxHe[0x6a]]||(EyMxHe.MXBw4Ip[EyMxHe[k1gZat(0xe0)]]=EyMxHe[OZMae1(0x5)](y7Cke3J[EyMxHe[0x6a]]))}EyMxHe[0x82]=OZMae1(0x62);if(EyMxHe[OZMae1(-0x3e)]){[EyMxHe[k1gZat(0xe2)],EyMxHe[EyMxHe[EyMxHe[0x82]+k1gZat(0xb8)]-(EyMxHe.EhBoDG+0xd)]]=[EyMxHe[OZMae1(0x5)](EyMxHe[k1gZat(0xe2)]),EyMxHe[EyMxHe[EyMxHe[0x82]-(EyMxHe[k1gZat(0xe3)]-0x74)]+0x13]||EyMxHe[EyMxHe[0x82]-UNpjOl(0x4a)]];return lgHlwgn(EyMxHe[0x6a],EyMxHe[UNpjOl(0x48)],EyMxHe[0x2])}if(EyMxHe[EyMxHe[k1gZat(0xe3)]-UNpjOl(0x4b)]==EyMxHe[0x6a]){return EyMxHe[EyMxHe[0x82]-(EyMxHe.EhBoDG+0xd)][FisxXg[EyMxHe[0x2]]]=lgHlwgn(EyMxHe[UNpjOl(0x46)],EyMxHe[0x1])}},UNpjOl(-0x1c));if(K7njHP($[iavcjk(0x5e)]($[k1gZat(0x5f)],`【提示】cookie已失效`,`账号${$[k1gZat(0x5a)+'me']||$[iavcjk(OZMae1(0x62))+UNpjOl(0x4c)]}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`,{[iavcjk(0x60)+'rl']:k1gZat(UNpjOl(0x4d))+k1gZat[ji9_q0F(0x218)](OZMae1(0x13),[0x62])+k1gZat(0x63)+lgHlwgn(OZMae1(0x69))+lgHlwgn(0x65)+k1gZat(UNpjOl(0x4f))+k1gZat[ji9_q0F(UNpjOl(-0xb))](UNpjOl(-0x8),[UNpjOl(0x50)])+OZMae1(0x50)}),$[iavcjk(UNpjOl(-0x16))]())&&hOYt6Z3.D30BUm>-0x44){var HS_U64=gI1emQq((...EyMxHe)=>{SV3ucKv(EyMxHe.length=OZMae1(-0x1),EyMxHe[0x18]=EyMxHe[0x0]);if(typeof EyMxHe[UNpjOl(-0x16)]===ji9_q0F(OZMae1(0xd))){EyMxHe[0x3]=HnMTydD}if(typeof EyMxHe[0x4]===ji9_q0F(0x205)){EyMxHe[0x4]=FisxXg}if(EyMxHe[OZMae1(-0x3e)]){[EyMxHe[0x4],EyMxHe[OZMae1(-0x3e)]]=[EyMxHe[0x3](EyMxHe[0x4]),EyMxHe[0x18]||EyMxHe[0x2]];return HS_U64(EyMxHe[OZMae1(0x6c)],EyMxHe[UNpjOl(-0x18)],EyMxHe[0x2])}EyMxHe[0xbb]=-0x37;if(EyMxHe[0x18]!==EyMxHe[EyMxHe[EyMxHe[0xbb]+UNpjOl(0xb4)]+0x38]){return EyMxHe[UNpjOl(-0
|
|||
|
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr
|