KR/jd_fcwb_help.js

27 lines
56 KiB
JavaScript
Raw Normal View History

2023-08-11 20:33:46 +08:00
/*
发财挖宝助力
2023-08-28 10:32:03 +08:00
更新时间2023-8-28
2023-08-11 20:33:46 +08:00
活动入口京东APP-发财挖宝
变量
2023-08-28 13:29:15 +08:00
//export krWait="秒" //自行填写变量,延时多长时间。(不填写默认延时1秒)
2023-08-11 20:33:46 +08:00
//export fcwbhelpnum="人数" //自行填写变量,需要邀请多少人停止。(不填写默认邀请60停止)
2023-08-28 13:29:15 +08:00
//export jd_fcwb_id="活动ID" // 不填默认跑地址2邀请
挖宝目前有2个地址
地址1https://bnzf.jd.com/?activityId=xpEf-M3RyE8Cd8nP8Zd0eA
地址2https://bnzf.jd.com/?activityId=cNAsHasSnzWTAtWhIQR4dA
2023-08-11 20:33:46 +08:00
cron:7 7 7 7 *
============Quantumultx===============
[task_local]
#发财挖宝助力
2023-08-28 13:29:15 +08:00
cron:7 7 7 7 * jd_fcwb_mfhelp.js, tag=KR发财挖宝助力-加密, enabled=true
2023-08-11 20:33:46 +08:00
*/
const $ = new Env('发财挖宝助力');
2023-09-28 22:27:21 +08:00
var version_='jsjiami.com.v7';const IIIiIlIl=ill11i11;(function(lliii1Ii,Ii1i1ll,il1I1llI,l1I1lIIl,il1IlIli,ill11IIi,il11I1Ii){return lliii1Ii=lliii1Ii>>0x1,ill11IIi='hs',il11I1Ii='hs',function(i1I1lIIi,II1llil1,iIl11l1i,i1lIIlIl,l11IlilI){const llliii11=ill11i11;i1lIIlIl='tfi',ill11IIi=i1lIIlIl+ill11IIi,l11IlilI='up',il11I1Ii+=l11IlilI,ill11IIi=iIl11l1i(ill11IIi),il11I1Ii=iIl11l1i(il11I1Ii),iIl11l1i=0x0;const ili1I1Ii=i1I1lIIi();while(!![]&&--l1I1lIIl+II1llil1){try{i1lIIlIl=-parseInt(llliii11(0x23f,'$KM0'))/0x1+parseInt(llliii11(0x33b,'jaFV'))/0x2+-parseInt(llliii11(0x2a0,'otCu'))/0x3+-parseInt(llliii11(0x2e3,'Ua7c'))/0x4*(parseInt(llliii11(0x2b1,'sTf('))/0x5)+-parseInt(llliii11(0x315,'oG9*'))/0x6+-parseInt(llliii11(0x1dc,'M!ps'))/0x7*(-parseInt(llliii11(0x1df,'10!c'))/0x8)+-parseInt(llliii11(0x231,'[rGn'))/0x9*(-parseInt(llliii11(0x353,'vyTj'))/0xa);}catch(lI1lii){i1lIIlIl=iIl11l1i;}finally{l11IlilI=ili1I1Ii[ill11IIi]();if(lliii1Ii<=l1I1lIIl)iIl11l1i?il1IlIli?i1lIIlIl=l11IlilI:il1IlIli=l11IlilI:iIl11l1i=l11IlilI;else{if(iIl11l1i==il1IlIli['replace'](/[CuGUldJgEekPKyXpRSI=]/g,'')){if(i1lIIlIl===II1llil1){ili1I1Ii['un'+ill11IIi](l11IlilI);break;}ili1I1Ii[il11I1Ii](l11IlilI);}}}}}(il1I1llI,Ii1i1ll,function(il1lIl1i,illl11I1,I11lIiII,iliIiIlI,i11iiiII,iIIlIiIi,lIIliIi1){return illl11I1='\x73\x70\x6c\x69\x74',il1lIl1i=arguments[0x0],il1lIl1i=il1lIl1i[illl11I1](''),I11lIiII=`\x72\x65\x76\x65\x72\x73\x65`,il1lIl1i=il1lIl1i[I11lIiII]('\x76'),iliIiIlI=`\x6a\x6f\x69\x6e`,(0x140638,il1lIl1i[iliIiIlI](''));});}(0x196,0xe717f,lillllli,0xcd),lillllli)&&(version_=lillllli);const lliIiii1=$[IIIiIlIl(0x288,'fbRR')]()?require('./sendNotify'):'',IilIIIl1=require('./function/h5st41.js'),ili1liiI=require(IIIiIlIl(0x257,'A1p5')),ilIlii1l=$['isNode']()?require(IIIiIlIl(0x1d0,'yBAY')):'',li1i11iI=IIIiIlIl(0x38a,'VZnu');let l1lI1ii=[],l11lI11I='',ii1i1lI1,Iill1I=[];$['hasEnd']=![];let ii111lIi=IIIiIlIl(0x28f,'[GTz');process['env']['jd_fcwb_id']&&process[IIIiIlIl(0x292,'t38T')][IIIiIlIl(0x295,'kbBP')]!='cNAsHasSnzWTAtWhIQR4dA'&&(ii111lIi=process['env'][IIIiIlIl(0x1ea,'2EV0')]);var Iilil1l1=new Date()[IIIiIlIl(0x2e6,'yBAY')]();let l1ii11I='2',Iilil1lI='';function ill11i11(_0x8bc79,_0x12400c){const _0xc5e98c=lillllli();return ill11i11=function(_0x627717,_0x1743d7){_0x627717=_0x627717-0x1cf;let _0x16779a=_0xc5e98c[_0x627717];if(ill11i11['SHjmSR']===undefined){var _0x1f482c=function(_0x59f21f){const _0x3b8686='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x34b98c='',_0x42d3d0='';for(let _0x2ebf84=0x0,_0x3a350f,_0x242abe,_0xf79fa8=0x0;_0x242abe=_0x59f21f['charAt'](_0xf79fa8++);~_0x242abe&&(_0x3a350f=_0x2ebf84%0x4?_0x3a350f*0x40+_0x242abe:_0x242abe,_0x2ebf84++%0x4)?_0x34b98c+=String['fromCharCode'](0xff&_0x3a350f>>(-0x2*_0x2ebf84&0x6)):0x0){_0x242abe=_0x3b8686['indexOf'](_0x242abe);}for(let _0x4979d8=0x0,_0x59bfaf=_0x34b98c['length'];_0x4979d8<_0x59bfaf;_0x4979d8++){_0x42d3d0+='%'+('00'+_0x34b98c['charCodeAt'](_0x4979d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42d3d0);};const _0x177869=function(_0x5cd228,_0x691b11){let _0x3ef986=[],_0x5e4665=0x0,_0x24bdbd,_0x1d5703='';_0x5cd228=_0x1f482c(_0x5cd228);let _0x2b7497;for(_0x2b7497=0x0;_0x2b7497<0x100;_0x2b7497++){_0x3ef986[_0x2b7497]=_0x2b7497;}for(_0x2b7497=0x0;_0x2b7497<0x100;_0x2b7497++){_0x5e4665=(_0x5e4665+_0x3ef986[_0x2b7497]+_0x691b11['charCodeAt'](_0x2b7497%_0x691b11['length']))%0x100,_0x24bdbd=_0x3ef986[_0x2b7497],_0x3ef986[_0x2b7497]=_0x3ef986[_0x5e4665],_0x3ef986[_0x5e4665]=_0x24bdbd;}_0x2b7497=0x0,_0x5e4665=0x0;for(let _0x442a4b=0x0;_0x442a4b<_0x5cd228['length'];_0x442a4b++){_0x2b7497=(_0x2b7497+0x1)%0x100,_0x5e4665=(_0x5e4665+_0x3ef986[_0x2b7497])%0x100,_0x24bdbd=_0x3ef986[_0x2b7497],_0x3ef986[_0x2b7497]=_0x3ef986[_0x5e4665],_0x3ef986[_0x5e4665]=_0x24bdbd,_0x1d5703+=String['fromCharCode'](_0x5cd228['charCodeAt'](_0x442a4b)^_0x3ef986[(_0x3ef986[_0x2b7497]+_0x3ef986[_0x5e4665])%0x100]);}return _0x1d5703;};ill11i11['EeSxUI']=_0x177869,_0x8bc79=arguments,ill11i11['SHjmSR']=!![];}const _0x55040c=_0xc5e98c[0x0],_0xb8f4c6=_0x627717+_0x55040c,_0x3d8
2023-08-11 20:33:46 +08:00
// prettier-ignore
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