jdpro/jd_djggl_help.js

16 lines
133 KiB
JavaScript
Raw Normal View History

2024-07-26 03:26:46 +00:00
/*
执行流程车头输出助力码--助力--抽奖--检查提现
可指定PIN车头不指定默认CK1 变量 DJGGLTOPPIN='jdpin'
多少助力停止默认9999个 控制变量 DJGGLNUM='100';
运行一次抽奖次数,默认抽完控制变量 DJGGLLTNUM='200'
每次抽奖间隔默认1秒控制变量 DJGGLDELAY='3'
开启提现到上限转红包 DJGGLTORED='true'
代理变量DY_PROXY='https://api'仅对助力使用支持类星空的api
不提现变量 NOTX='true' 默认提现
1 1 1 1 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_DJGGL.js
*/
const $ = new Env('夺金刮刮乐_助力');
var _0xodd='jsjiami.com.v7';const _0x3bc3d4=_0x2ea4;(function(_0x5556aa,_0x1299e6,_0x1213f2,_0x45fe55,_0x4f4812,_0xa5af8b,_0xe1774d){return _0x5556aa=_0x5556aa>>0x5,_0xa5af8b='hs',_0xe1774d='hs',function(_0x328c1f,_0x1f745c,_0x5ad148,_0x34a7c8,_0x463294){const _0x2958c6=_0x2ea4;_0x34a7c8='tfi',_0xa5af8b=_0x34a7c8+_0xa5af8b,_0x463294='up',_0xe1774d+=_0x463294,_0xa5af8b=_0x5ad148(_0xa5af8b),_0xe1774d=_0x5ad148(_0xe1774d),_0x5ad148=0x0;const _0x4a7ee7=_0x328c1f();while(!![]&&--_0x45fe55+_0x1f745c){try{_0x34a7c8=parseInt(_0x2958c6(0x55f,'uH[0'))/0x1*(parseInt(_0x2958c6(0x4c9,']Fri'))/0x2)+-parseInt(_0x2958c6(0x1f5,'$U[W'))/0x3*(-parseInt(_0x2958c6(0x211,'*c]2'))/0x4)+parseInt(_0x2958c6(0x627,'17qJ'))/0x5+-parseInt(_0x2958c6(0x69c,'bFyR'))/0x6+-parseInt(_0x2958c6(0x199,'!DgY'))/0x7+-parseInt(_0x2958c6(0x281,'wk6w'))/0x8*(-parseInt(_0x2958c6(0x69e,'9slj'))/0x9)+-parseInt(_0x2958c6(0x35b,'zMYG'))/0xa;}catch(_0x401e6d){_0x34a7c8=_0x5ad148;}finally{_0x463294=_0x4a7ee7[_0xa5af8b]();if(_0x5556aa<=_0x45fe55)_0x5ad148?_0x4f4812?_0x34a7c8=_0x463294:_0x4f4812=_0x463294:_0x5ad148=_0x463294;else{if(_0x5ad148==_0x4f4812['replace'](/[MUAnNdlwBWpCDHXTLufr=]/g,'')){if(_0x34a7c8===_0x1f745c){_0x4a7ee7['un'+_0xa5af8b](_0x463294);break;}_0x4a7ee7[_0xe1774d](_0x463294);}}}}}(_0x1213f2,_0x1299e6,function(_0x4b2d3,_0x4f61e1,_0x45700c,_0x372d0c,_0x4d4007,_0x1fb3fb,_0x568290){return _0x4f61e1='\x73\x70\x6c\x69\x74',_0x4b2d3=arguments[0x0],_0x4b2d3=_0x4b2d3[_0x4f61e1](''),_0x45700c=`\x72\x65\x76\x65\x72\x73\x65`,_0x4b2d3=_0x4b2d3[_0x45700c]('\x76'),_0x372d0c=`\x6a\x6f\x69\x6e`,(0x17ad5f,_0x4b2d3[_0x372d0c](''));});}(0x1980,0x46350,_0x45fb,0xce),_0x45fb)&&(_0xodd=_0x3bc3d4(0x658,'zinR'));const _0x9ddfbf=$[_0x3bc3d4(0x2aa,'3O!I')]()?require(_0x3bc3d4(0x2a6,'E]^R')):'',_0x2946b3=$[_0x3bc3d4(0x73d,'$xc9')]()?require(_0x3bc3d4(0x560,'$xc9')):'',_0x29c7c3=require(_0x3bc3d4(0x313,'9ZlA')),_0x264141=require(_0x3bc3d4(0x24c,']Ma[')),_0x54d4af=require(_0x3bc3d4(0x311,'E]^R'));let _0x3e8387=!![],_0x1f3136=[],_0x35b11d=[],_0xfc84a3=[],_0x1c8102=[],_0x499a39={},_0x40d6c0=[],_0x584117='',_0x410731='',_0x229170='',_0x811f17='',_0x334843;const _0x1076b8=process[_0x3bc3d4(0x456,'Bk6H')][_0x3bc3d4(0x37c,'wk6w')]||_0x3bc3d4(0x3fc,']Ma['),_0x14d3cc=process[_0x3bc3d4(0x160,'^y#T')][_0x3bc3d4(0x2a9,'^y#T')]||'5',_0xe2029e=process[_0x3bc3d4(0x4c0,'Ujcn')][_0x3bc3d4(0x1ff,'[A5X')]||'-1',_0x3421e9=process[_0x3bc3d4(0x37a,'17qJ')][_0x3bc3d4(0x419,'QjbF')]||'1',_0x36b4df=process[_0x3bc3d4(0x591,'Lo6N')][_0x3bc3d4(0x27e,'wp7e')]||'5',_0x2bc8b6=process[_0x3bc3d4(0x4c0,'Ujcn')][_0x3bc3d4(0x5d8,'bFyR')]||'1',_0xf02d4e=process[_0x3bc3d4(0x464,'vBC&')][_0x3bc3d4(0x3d6,'[A5X')]||'1',_0x2eab8e=process[_0x3bc3d4(0x28f,'1#Sh')][_0x3bc3d4(0x395,'^v05')]||![],_0x9f9ff7=process[_0x3bc3d4(0x6cb,'3O!I')][_0x3bc3d4(0x5d2,'3O!I')]||'',_0x255580=process[_0x3bc3d4(0x332,'!DgY')][_0x3bc3d4(0x1e2,'Lo6N')]||![],_0x2aad6e=process[_0x3bc3d4(0x4b2,'zinR')][_0x3bc3d4(0x2ce,'*c]2')]||'',_0x3f0da2=process[_0x3bc3d4(0x20b,'hpr7')][_0x3bc3d4(0x70b,'Bk6H')]||'10',_0x12163c=process[_0x3bc3d4(0x4c0,'Ujcn')][_0x3bc3d4(0x3c8,'E]^R')]||'0',_0xb8c4fa=process[_0x3bc3d4(0x38f,'bFyR')][_0x3bc3d4(0x77e,'uadF')]||![],_0x5a80ee=process[_0x3bc3d4(0x591,'Lo6N')][_0x3bc3d4(0x361,'$U[W')]?process[_0x3bc3d4(0x524,']Fri')][_0x3bc3d4(0x406,'K9pG')]:![];if(process[_0x3bc3d4(0x7ac,'9slj')][_0x3bc3d4(0x64f,']Fri')])try{_0x499a39=require(_0x3bc3d4(0x264,'*c]2')),$[_0x3bc3d4(0x3fb,'9s&l')]=_0x499a39[_0x3bc3d4(0x35e,'^v05')]($[_0x3bc3d4(0x2f2,'^v05')][_0x3bc3d4(0x718,'zMYG')]($)),$[_0x3bc3d4(0x5c9,'^v05')]=_0x499a39[_0x3bc3d4(0x219,'cpRs')]($[_0x3bc3d4(0x6e6,'zMYG')][_0x3bc3d4(0x6b4,'hpr7')]($));}catch{$[_0x3bc3d4(0x22f,'!DgY')]=$[_0x3bc3d4(0x1e5,']Ma[')],$[_0x3bc3d4(0x666,'ALQ9')]=$[_0x3bc3d4(0x6d4,'uadF')];}else $[_0x3bc3d4(0x6ba,'*oIA')]=$[_0x3bc3d4(0x582,'oM0]')],$[_0x3bc3d4(0x4bb,'NBOp')]=$[_0x3bc3d4(0x557,'$xc9')];if($[_0x3bc3d4(0x4a9,'9s&l')]()){Object[_0x3bc3d4(0x4e2,'^v05')](_0x2946b3)[_0x3bc3d4(0x290,'vBC&')](_0x2e176c=>{const _0x4b23f1=_0x3bc3d4;_0x40d6c0[_0x4b23f1(0x295,'0dFG')](_0x2946b3[_0x2e176c]);});if(process[_0x3
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