faker3/jd_zzhb_new_help1.js

18 lines
61 KiB
JavaScript
Raw Permalink Normal View History

2024-12-16 19:51:07 +08:00
/*
新转赚红包助力
链接https://pro.m.jd.com/mall/active/B2Y13x641hwWfpsoRenCzfbz4jR/index.html
环境变量
jd_zzhb_inviterId // 指定助力码 非必须,不填默认助力账号一
jd_zzhb_num // 指定人数 非必须,不填默认跑全部账号
cron:0 0,12 * * * jd_zzhb_new_help1.js
*/
const $ = new Env('新转赚红包助力');
function fakertg6f2q(){}var fakerqcmxs=Object['defineProperty'],fakerabrfy5,fakerk9q1kw,fakerz6j0h,fakertgklcl,fakerlxfzl,faker4hxpsc,fakerrvysir,fakerkw54a,faker3vio0h,fakerzqsbk,fakere2rdd9,fakerafyfu,fakerteqr7,fakerfp6v7g,fakerifchwf,fakeryyza0s,fakerftlhkb,fakerqn7sa4;function faker9mut8g(fakertg6f2q){return fakerabrfy5[fakertg6f2q>0x2e?fakertg6f2q<0x2e?fakertg6f2q-0x1a:fakertg6f2q-0x2f:fakertg6f2q-0x4b]}fakerabrfy5=fakerajsbvw();var fakere4x78f=[],fakerj7u1m1=['PC>t^BKv{1@$Km','ru?U1V<N','%N]}$','*ehSG9lE','AqN<<?F','lbaIu2;:.a<]Ek.','++ba%FMDCL4^~5=|0c','m%4CS','p|_C','#r3Br=qQ(hqwohc30c','"$VnZ','#r3Br=qQf1ZLjhz|^$j.Z','#r3Br=qQ(h<VAJ','$re$*T18m:79~Nw00_iPLBo?sB$','*+;H1FLV.','rrbu)F,D','v+Kyu','cJWH','|5;HnfbD','%d:H',faker9mut8g(0x30),'pDL>h4$i{u8)"hfe>w[i{lW"ZFnvt|46+n(aZ','>^`HS','_>XCKe1zYB<^g+I|t>#aIx_zYLI[mfk+~UMF?=T=RM1bch[i1|8xgn2=v/~/M"l!w|Fxty#D','zU=ajWbRYMX$qJ','N!:H','.IXQVfWLezp0{k9O$DdR%{:Q@#VnfmfcUiE.IW5#KLB8n1:n`c*AQ1y+8hynfmfc',faker9mut8g(0x31),'8+MFye5D','zU=ajW*s,[%wsD',faker9mut8g(0x2f),'.IXQ4f}3n|^C:C&Tpycg!nZ>G','N!:H','d82BDb)D','N!:H',faker9mut8g(0x2f),'5!Ld49`D','d5XC0fG',faker9mut8g(0x30),'8+MFye5D','q|0a1IG','{0#oVg{iMFv','JC>h0I|,,w',',+^Fvy0/q[pa5q5jCc','pfJy?A6x',',+*n=pG','`+gF;^30.','w$#aFeMD','R&a/(I|,,w',faker9mut8g(0x2f),'QHdtg)GeCiaZ39','{}ctvoPx','E9L*D',',+}nvf_*QTO2c','?bNnRF?*$*^Akfz|','ugQC5',']U^F_AG','N!daoWbD','|5*nMxcB?','Y!*nZ',']UMFj^T04LZLqJ','q|0a1IG','N!:H','T&""U|<U9||dykq/V;[0rio;^0=2U|fWx5,Lo*+y)YZcml','QgXCnyN*$*d2c','q|0a1IG','N!:H','T&""U|<U9||dykq/V;[0rio;^0=2U|fWx5,Lo*+y)YZcml',faker9mut8g(0x34),faker9mut8g(0x31),faker9mut8g(0x32),faker9mut8g(0x2f),'`+gF;^30.','q|"nme7Ns[oP3"V#P<sx!WXs2/R2c','0g*n)F,D','4J`HS',faker9mut8g(0x38),'q|"nme!Q?',faker9mut8g(0x32),'CJUnnfpN.','5!0OWeez{M}ueggN','d54nZ','gfho7ax9~?K$#c#Z*_>dUe;D','N!:H','N!:H','q|"nme!Q?','q|"nme7Ns[oP3"V#*+;Hu','5!0aZ','ag8xYf_*?','q|"nme7Ns[oP3"V#*+;Hu','"U}n`','*+;H7>H*%M}Ac','N!:H','q|0a1IG','d82BDb)D',faker9mut8g(0x39),faker9mut8g(0x33),'N!:H','^$$n:e`D','^$$n:e`D','LZtU','%d:H','N!:H','N!:H',';>$n%F]2c[g','q|"nme7Ns[oP3"V#*+;Hu','Ltj$M',faker9mut8g(0x37),'"U}n`','"U}n`',faker9mut8g(0x33),faker9mut8g(0x2f),'^$$n:e`D',faker9mut8g(0x34),'N!:H','%d:H',faker9mut8g(0x2f),'N!:H',';>$n%F]2c[g','q|"nme7Ns[oP3"V#P<sx!WXs2/R2c',faker9mut8g(0x36),'"U}n`','jAc*8',faker9mut8g(0x33),'N!:H','[PP*fR81','`0z*aD?1',faker9mut8g(0x35),'%d:H','N!:H',faker9mut8g(0x35),';>$n%F]2c[g',faker9mut8g(0x36),'3/}n','%4lN8ZkoR',faker9mut8g(0x34),'?!S?X','?bNn;(G','+gpJv|G',',gMFFe/=#/U$c','q|"nme7Ns[oP3"V#*+;Hu','?bNnE(G','bH}nZ"9`)[5PKJr#0>sx!W3D','Ft(aRFu39KoP3"V#',',+XC6^T05MJDzJ30^$%nny#D','Ft(aRF)D','n!QC','Z!0a0','b5MF>$,D','Odq.{piD?','q|"nme!Q?','o+2F<9*e.','~6FJ',',+XC!_UZ?','_>XCHj6z?K5RYRSh#rdf0yP=6K`Rkfz|SU}:+9*e.','JJ$nIxUZHKlsc','+$7:&(G',faker9mut8g(0x37),'}.YP.@G',faker9mut8g(0x38),faker9mut8g(0x2f),'I$;H','`+XCny,D','*+$:ufN*?','<HvaJm)D','?bWHQ9A?!LTwE"0_i!/H>vT0+X^wzq8tq|]U>SY>D','<HvaJm[V<rxq]ql_]MU','Z9`H8a*8VKjT5q1Nb{95<','<HvaJm[V3RXLAg`t,+U','F8bf>FG','ziLd0fT`)[uLc','v+":~a%@;,[2c','zi/HnfI`{?RW,1r','?bWHQ9A?!LTwE"8i,LcykaR=4Le[%Yr#p|8x>(w`.','q_wS^m/05MT21g%0#>hH','q_/.fe)Db%!@#12|Zc','ziuFr9MD','k<bajW!Q?','_>XCKe1z5:=(_PN#RuxB^@BV0:M$chz|u!lxFe.3FTB(G3ONZ^I?~pZS3>>WR<_#lSXCq^@8*dGVJI73ir":TnP`v*d','q_wScP!QxKI[(<n3Cc','u/zL@(0>',';,*B$?)eNVsf;Kn0HtLa_3aSw','e_UC~a[@q[8LCl','Mgm0&nVmi:','n=jakv(AS$_U+','JJ$nIx;D',faker9mut8g(0x39),'=N@Ev~585',';,*B$?]3}!sJ]FFp"=y','J=0vs~ob`m,','{M;5','4J`HS','S+!nnfUZ?','ag8xYf_*?','^$2F!WG','YgvOQxsj.','b|"{g_Qxw','|5BC','zU=ajWbRYMX$qJ','I$;H','d54nay?Z?','*+$:ufN*?','NdIB~a9|VK^Ac','J!`ovxG:aB{/CDC<+bTxgFC/1)mv^Uk3N8Ad0fHzR<H@ce/KpdVDQ9&0/)xboJVYz{4+u4wpWH0fJ0uT?RW"J*O%$5&n*Sgl[+K;KYdtVDQ9&0/)624#h6!{JgM|B5Adno~K4:k/vD4YF.`H0fg.odY@5D04wUba|W/=sH_AZQS4crOxb67mi:3A,D~hD^zJ',',+XC','JJ2FafG',faker9mut8g(0x2f),'Ye{<&C+nYZm2c.4e%bfi}n{pzV1RXT.egbk~(4}Cw`','N!daoWbD','zU=ajW*s,[%wsD','WtuF!WG','.J/Hay3D','zU=ajWv:=/VWcl','EnmPjh27%:Zy7','zU=ajWuD7TLWxJ','N^SaHgKB+wG.R@?_s5aH','i9LdS|#D','wKaHvxXSl/J_xUx*lr!PYN+?zdW,Bg!*qd[2k>w0U','=AqYx3rRt+tTc','Ur8o)^Bj2Q}F2
// 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