faker3/jd_zzhb_withdraw.js

23 lines
35 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
新转赚红包提现
链接https://pro.m.jd.com/mall/active/B2Y13x641hwWfpsoRenCzfbz4jR/index.html
轮询提现变量jd_zzhb_txnum //轮询提现页数
提现间隔时间jd_zzhb_txwait //提现兑换间隔,默认 3 秒
提现上限刷新时长变量jd_zzhb_swish //是否延长提现时间默认不延长true/false 配合提现页码,上限后延长,可以延迟到期时间,最终效果可以推迟到下个月直接提现。
提现重试次数jd_zzhb_txmax_retry // 已存在状态/待发放,提现中,等最大重试次数 默认 2 次
兑换红包变量jd_zzhb_exchange // 上限后兑换红包,默认关闭
纯粹提现使用需开启代理否则403
cron:1 1 1 1 *
*/
const $ = new Env('新转赚红包提现')
var il='jsjiami.com.v7';const iIiIi=iii1II;(function(IlIlll,IIIl1I,iil1ii,IlIlli,il1i1i,lil111,i11ilI){return IlIlll=IlIlll>>0x7,lil111='hs',i11ilI='hs',function(ii1ii1,llllI,lllil1,iil1il,ilil1I){const Iliii1=iii1II;iil1il='tfi',lil111=iil1il+lil111,ilil1I='up',i11ilI+=ilil1I,lil111=lllil1(lil111),i11ilI=lllil1(i11ilI),lllil1=0x0;const i11il1=ii1ii1();while(!![]&&--IlIlli+llllI){try{iil1il=parseInt(Iliii1(0xe1,'[7Um'))/0x1+parseInt(Iliii1(0x9e,'@@n$'))/0x2+parseInt(Iliii1(0xf6,'y&ef'))/0x3+parseInt(Iliii1(0x1b2,'1i#O'))/0x4+parseInt(Iliii1(0x158,'Knpy'))/0x5*(-parseInt(Iliii1(0x170,'6EQO'))/0x6)+parseInt(Iliii1(0x19e,'Iz&['))/0x7*(-parseInt(Iliii1(0x183,'a]4]'))/0x8)+parseInt(Iliii1(0x83,'Gu1^'))/0x9;}catch(ii1iiI){iil1il=lllil1;}finally{ilil1I=i11il1[lil111]();if(IlIlll<=IlIlli)lllil1?il1i1i?iil1il=ilil1I:il1i1i=ilil1I:lllil1=ilil1I;else{if(lllil1==il1i1i['replace'](/[udgDwtpLASXBOVIWJbQFT=]/g,'')){if(iil1il===llllI){i11il1['un'+lil111](ilil1I);break;}i11il1[i11ilI](ilil1I);}}}}}(iil1ii,IIIl1I,function(lllilI,ilil11,illlI1,IIIl11,I1lIi1,liiIIi,lil11I){return ilil11='\x73\x70\x6c\x69\x74',lllilI=arguments[0x0],lllilI=lllilI[ilil11](''),illlI1=`\x72\x65\x76\x65\x72\x73\x65`,lllilI=lllilI[illlI1]('\x76'),IIIl11=`\x6a\x6f\x69\x6e`,(0x1731f0,lllilI[IIIl11](''));});}(0x6200,0x4609f,Iii11l,0xc6),Iii11l)&&(il=0xc6);const notify=require(iIiIi(0xb4,'%bPf')),jdCookie=require(iIiIi(0x123,'dC[#')),common=require(iIiIi(0xd9,'ct5L')),{H5st}=require(iIiIi(0x112,'sSZf')),isNotify=process[iIiIi(0x176,'pG8q')][iIiIi(0x159,')4XM')]===iIiIi(0x11a,'M0yN'),Swish=process[iIiIi(0xa2,'G0P^')]['jd_zzhb_swish']===iIiIi(0x1b3,'3vJo'),pagination=process[iIiIi(0x168,'1J3a')]['jd_zzhb_txnum']||'1',exchange=process[iIiIi(0x146,'1i#O')][iIiIi(0x1a5,'@@n$')]===iIiIi(0xb9,'dC[#'),pdd_wait=process[iIiIi(0x150,'^3(P')][iIiIi(0x14b,'okN1')]||'3',MAX_RETRY=process[iIiIi(0x161,'oV!Y')][iIiIi(0x119,'y&ef')]||'2',linkId=iIiIi(0xf4,'dC[#');let business=iIiIi(0x136,'@@n$'),waitTimes=parseInt(pdd_wait)*0x3e8;$[iIiIi(0x7f,'#(Ay')]=![];function iii1II(_0x2e387f,_0x39d9a7){const _0x1337d0=Iii11l();return iii1II=function(_0x4104cf,_0x212417){_0x4104cf=_0x4104cf-0x7e;let _0xf55029=_0x1337d0[_0x4104cf];if(iii1II['GFmxhF']===undefined){var _0x2cfe79=function(_0x59bc82){const _0x306a82='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5221f0='',_0x4c0d80='';for(let _0x5acc4e=0x0,_0x2d3808,_0x52ab5c,_0x162060=0x0;_0x52ab5c=_0x59bc82['charAt'](_0x162060++);~_0x52ab5c&&(_0x2d3808=_0x5acc4e%0x4?_0x2d3808*0x40+_0x52ab5c:_0x52ab5c,_0x5acc4e++%0x4)?_0x5221f0+=String['fromCharCode'](0xff&_0x2d3808>>(-0x2*_0x5acc4e&0x6)):0x0){_0x52ab5c=_0x306a82['indexOf'](_0x52ab5c);}for(let _0x39495d=0x0,_0xae073a=_0x5221f0['length'];_0x39495d<_0xae073a;_0x39495d++){_0x4c0d80+='%'+('00'+_0x5221f0['charCodeAt'](_0x39495d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c0d80);};const _0xf6e8ae=function(_0x5f5e0e,_0x4ec73b){let _0x2b8684=[],_0x3142f3=0x0,_0x433284,_0x4f3a09='';_0x5f5e0e=_0x2cfe79(_0x5f5e0e);let _0x25994c;for(_0x25994c=0x0;_0x25994c<0x100;_0x25994c++){_0x2b8684[_0x25994c]=_0x25994c;}for(_0x25994c=0x0;_0x25994c<0x100;_0x25994c++){_0x3142f3=(_0x3142f3+_0x2b8684[_0x25994c]+_0x4ec73b['charCodeAt'](_0x25994c%_0x4ec73b['length']))%0x100,_0x433284=_0x2b8684[_0x25994c],_0x2b8684[_0x25994c]=_0x2b8684[_0x3142f3],_0x2b8684[_0x3142f3]=_0x433284;}_0x25994c=0x0,_0x3142f3=0x0;for(let _0x307b19=0x0;_0x307b19<_0x5f5e0e['length'];_0x307b19++){_0x25994c=(_0x25994c+0x1)%0x100,_0x3142f3=(_0x3142f3+_0x2b8684[_0x25994c])%0x100,_0x433284=_0x2b8684[_0x25994c],_0x2b8684[_0x25994c]=_0x2b8684[_0x3142f3],_0x2b8684[_0x3142f3]=_0x433284,_0x4f3a09+=String['fromCharCode'](_0x5f5e0e['charCodeAt'](_0x307b19)^_0x2b8684[(_0x2b8684[_0x25994c]+_0x2b8684[_0x3142f3])%0x100]);}return _0x4f3a09;};iii1II['JbcwFY']=_0xf6e8ae,_0x2e387f=arguments,iii1II['GFmxhF']=!![];}const _0x44f1b1=_0x1337d0[0x0],_0x385bc5=_0x4104cf+_0x44f1b1,_0x503356=_0x2e387f[_0x385bc5];return!_0x503356?(iii1II['qDZtzo']===undefined&&(iii1II['qDZtzo']=!![]),_0xf55029=iii1II['JbcwFY'](_0xf55029,_0x212417),_0
// 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