jdpro/jd_zzhb_new.js

21 lines
162 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
转赚红包2
1 0,12 * * *
*/
const $ = new Env('Jd转赚红包2');
2024-09-30 12:28:14 +00:00
function CEIr94t(){}var YnGmtB=Object['defineProperty'],wGUk1Kk,BMY1oF,XNUIT4,JmShClI,xuK9Hxc,Wa7Tmx,M8REB2L,MxqGhO,AfQLHy,ND6qnN,GtpIPS,TLig3q,BZ78X2V,wGS1Gt,HwWtmA,Zzsi8m,jmlGIK4,zSSXOiP,mk5bx8,_hBnZ9W,hLaddw,r0Ix5da,_NLJ7r,EWNmvuB,Bnd1i9_,TLRPZB;function Q0wD6MU(CEIr94t){return wGUk1Kk[CEIr94t<-0x46?CEIr94t+0x12:CEIr94t<-0x46?CEIr94t-0x1b:CEIr94t>0x17d?CEIr94t-0x7:CEIr94t<0x17d?CEIr94t+0x45:CEIr94t+0x42]}wGUk1Kk=GFYt9o();function tXHFWr(CEIr94t,YnGmtB){return BMY1oF(CEIr94t,'length',{value:YnGmtB,configurable:Q0wD6MU(0x2b)})}CEIr94t(BMY1oF=Object.defineProperty,XNUIT4=GcdCRaD((CEIr94t,YnGmtB)=>{return YnGmtB(CEIr94t())},0x2)(TdpzzC,O7MnbD));var d6gYUA=[],rSrOld0=[RrGysR(Q0wD6MU(-0x4)),RrGysR(0x1),RrGysR(Q0wD6MU(-0x7)),RrGysR(0x3),RrGysR(0x4),RrGysR(0x5),RrGysR(0x6),RrGysR(0x7),RrGysR(0x8),RrGysR(0x9),RrGysR(Q0wD6MU(0x10)),RrGysR(0xb),RrGysR(Q0wD6MU(0x3)),RrGysR(Q0wD6MU(0x6)),RrGysR(0xe),RrGysR(Q0wD6MU(0x18)),RrGysR(0x10),RrGysR(0x11),RrGysR(Q0wD6MU(0x17)),RrGysR(0x13),RrGysR(0x14),RrGysR(0x15),RrGysR(0x16),RrGysR(0x17),RrGysR(Q0wD6MU(0x35)),RrGysR(Q0wD6MU(0x23)),RrGysR(Q0wD6MU(0x27)),RrGysR(0x1b),RrGysR(Q0wD6MU(0x62)),RrGysR(Q0wD6MU(0x37)),RrGysR(0x1e),RrGysR(0x1f),RrGysR(0x20),RrGysR(Q0wD6MU(-0x44)),RrGysR(Q0wD6MU(0xa6)),RrGysR(Q0wD6MU(-0x45)),RrGysR(Q0wD6MU(0x3a)),RrGysR(Q0wD6MU(0x3e)),RrGysR(0x26),RrGysR(0x1f),RrGysR(0x21),RrGysR(Q0wD6MU(-0x45)),RrGysR(0x26),RrGysR(0x23),RrGysR(0x26),RrGysR(0x1f),RrGysR(Q0wD6MU(-0x44)),RrGysR(0x27),RrGysR(Q0wD6MU(0x86)),RrGysR(0x29),RrGysR(Q0wD6MU(0x3f)),RrGysR(0x2b),RrGysR(Q0wD6MU(0x21)),RrGysR(Q0wD6MU(-0x43)),RrGysR(0x2e),RrGysR(0x2f),RrGysR(0x30),RrGysR(0x31),RrGysR(0x32),'~1Op|cHe',RrGysR(0x33),RrGysR(Q0wD6MU(0x3d)),RrGysR(Q0wD6MU(0x40)),RrGysR(0x36),RrGysR(Q0wD6MU(-0x42)),RrGysR(0x38),RrGysR(0x39),RrGysR(0x3a),RrGysR(0x3b),RrGysR(Q0wD6MU(0x4a)),RrGysR(0x3d),RrGysR(Q0wD6MU(0x162)),RrGysR(Q0wD6MU(0x2)),RrGysR(0x40),RrGysR(Q0wD6MU(-0x43)),RrGysR(0x41),RrGysR(0x42),RrGysR(0x43),RrGysR(0x44),RrGysR(Q0wD6MU(0x57)),RrGysR(Q0wD6MU(-0x8)),RrGysR(0x47),RrGysR(Q0wD6MU(0x52)),Q0wD6MU(-0x29),RrGysR(0x49),RrGysR(Q0wD6MU(0x5)),RrGysR(Q0wD6MU(-0x38)),RrGysR(Q0wD6MU(0x5b)),Q0wD6MU(-0x28),RrGysR(0x4d),')r|qO61','l6X{r|@8V[{5a',RrGysR(0x4e),RrGysR(Q0wD6MU(-0x42)),RrGysR(0x38),RrGysR(Q0wD6MU(0x5c)),RrGysR(Q0wD6MU(0x60)),'O>:X[G0~o%|Ha',RrGysR(0x51),RrGysR(0x7),RrGysR(0x52),RrGysR(0x53),RrGysR(Q0wD6MU(0x1a)),RrGysR(0x55),RrGysR(Q0wD6MU(-0x41)),RrGysR(Q0wD6MU(0x1c)),RrGysR(Q0wD6MU(-0x39)),RrGysR(Q0wD6MU(-0x31)),'Cz|S',RrGysR(Q0wD6MU(-0x40)),RrGysR(Q0wD6MU(0x7e)),RrGysR(Q0wD6MU(-0x41)),RrGysR(0x57),RrGysR(Q0wD6MU(0x12)),'<|:>F/JK#v#6y3:Hy&%c,D%,uy:3VQj:rV"hJ_=XS',RrGysR(Q0wD6MU(-0x40)),RrGysR(Q0wD6MU(0x5f)),RrGysR(0x5d),'VIVjnPGp)3|ckByoFF7I',RrGysR(0x5e),RrGysR(Q0wD6MU(0x9)),RrGysR(0x60),RrGysR(Q0wD6MU(0x61)),RrGysR(Q0wD6MU(0x63)),RrGysR(0x63),RrGysR(Q0wD6MU(0x25)),RrGysR(Q0wD6MU(-0x16)),RrGysR(Q0wD6MU(0x65)),RrGysR(Q0wD6MU(0x66)),RrGysR(0x68),RrGysR(Q0wD6MU(0x67)),RrGysR(0x6a),RrGysR(Q0wD6MU(0xa)),RrGysR(0x6c),RrGysR(0x6d),RrGysR(0x6e),RrGysR(0x6f),RrGysR(Q0wD6MU(0x4b)),RrGysR(0x71),RrGysR(0x72),RrGysR(0x56),RrGysR(0x73),RrGysR(0x74),RrGysR(Q0wD6MU(0x31)),RrGysR(Q0wD6MU(0x6c)),RrGysR(Q0wD6MU(0x32)),'|{ty.he.d?F<Nje',RrGysR(0x78),RrGysR(0x79),RrGysR(Q0wD6MU(-0x3e)),RrGysR(0x7b),RrGysR(0x7c),RrGysR(0x7d),'KK|w<yJ@6:CcBu',RrGysR(Q0wD6MU(-0x37)),'&KOGHTT37<|5Tzzl',RrGysR(0x7f),'ni)4c|N0J',RrGysR(0x80),RrGysR(Q0wD6MU(-0x3f)),RrGysR(Q0wD6MU(0x16)),RrGysR(0x53),RrGysR(Q0wD6MU(0x71)),RrGysR(Q0wD6MU(0x72)),RrGysR(0x84),RrGysR(0x85),RrGysR(0x86),RrGysR(0x87),'S|[Tu',RrGysR(0x88),RrGysR(Q0wD6MU(0x178)),RrGysR(Q0wD6MU(-0xe)),RrGysR(0x8b),RrGysR(Q0wD6MU(0x33)),RrGysR(0x8d),'NNiMbW|R+t',RrGysR(0x8e),RrGysR(0x8f),'G|zT',RrGysR(Q0wD6MU(-0x1)),RrGysR(Q0wD6MU(-0x3f)),RrGysR(Q0wD6MU(0x76)),RrGysR(Q0wD6MU(0x78)),RrGysR(Q0wD6MU(0x26)),RrGysR(Q0wD6MU(0x77)),RrGysR(Q0wD6MU(0x7f)),RrGysR(Q0wD6MU(-0x2c)),RrGysR(Q0wD6MU(0x79)),RrGysR(Q0wD6MU(-0x3c)),RrGysR(Q0wD6MU(-0x3e)),RrGysR(0x7b),RrGysR(0x29),Q0wD6MU(-0x3d),RrGysR(0x97),RrGysR(0x94),RrGysR(Q0wD6MU(0x5a)),RrGysR(Q0wD6MU(-0x17)),RrGysR(Q0wD6MU(-0x2b)),RrGysR(Q0wD6MU(-0
指定助力CODE都去助力TA ZZHB2CODE='code1' 多个&连接
多少助力停止默认9999个 JDZHB2NUM='100'
抽奖次数默认抽完 JDZHB2LTNUM='200'
抽奖间隔默认1秒 JDZHB2DELAY='3'
提现间隔默认5秒 TXDELAY='3'
助力间隔默认1秒 HLDELAY='3'
提现模式默认提当前设置1查列表提现TX_MODE='1'
提现范围默认1天内太大会403 TXIVAL='3'
开启提现到上限转红包JDZHB2TORED='true'
支持代理API DY_PROXY='apiurl'
垃圾券数量默认10次CXJLJQ_COUNT='20'
关闭抽奖默认助力完车头自动抽奖CXJHELP_NODRAW='true'
关闭提现NOTX='true'\n`),await QnN2z7(JmShClI(XNUIT4(0xd4)),JmShClI[RrGysR(YnGmtB[Q0wD6MU(0x50)]+(YnGmtB.HhJtlk+0x20a))](void 0x0,0x50)));if(UrM6R0&&hLaddw.jsLysoG()){let M8REB2L=LYwvZKF(console[JmShClI(YnGmtB[Q0wD6MU(0x59)]+XNUIT4(0xd2))](l2lS7H(JmShClI(0x51),UrM6R0,r0Ix5da=Q0wD6MU(-0x5))),A3fFFc[JmShClI(0x52)](tXHFWr((...YnGmtB)=>{CEIr94t(YnGmtB.length=XNUIT4(0x84),YnGmtB[XNUIT4(0xf9)]=-0x68);return YnGmtB[YnGmtB[0xa2]+0x10a]>YnGmtB[0xa2]+0x55?YnGmtB[0xf1]:YnGmtB[YnGmtB[0xa2]+Q0wD6MU(0x5d)][JmShClI(0x53)](UrM6R0)},0x1)));if(M8REB2L==l2lS7H(0x1,r0Ix5da=0x19)){return LYwvZKF(console[JmShClI(0x4a)](JmShClI(0x54)),void 0x0)};hxlug6d=A3fFFc[M8REB2L]}else{CEIr94t(console[JmShClI(Q0wD6MU(0x5))](JmShClI[RrGysR(Q0wD6MU(0x49))](XNUIT4(0xb1),0x55)),hxlug6d=A3fFFc[Q0wD6MU(-0x4)])}if(LYwvZKF(nS4GtH=hxlug6d,$[JmShClI(0x56)]=decodeURIComponent(nS4GtH[JmShClI[RrGysR(0x25a)](Q0wD6MU(0x39),[Q0wD6MU(0x1c)])](/pt_pin=([^; ]+)(?=;?)/)&&nS4GtH[JmShClI(0x57)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[YnGmtB.AxOGsH[RrGysR(XNUIT4(0xd6))]]=XNUIT4(0xa3),$[JmShClI(0x59)]='',$[XNUIT4(0xe2)]=HOiXFow[JmShClI(0x5a)]?HOiXFow[JmShClI[RrGysR(XNUIT4(0xc1))](XNUIT4(0xb1),XNUIT4(0x38))]():HOiXFow[JmShClI(0x5b)],console[JmShClI(0x4a)](`\n车头开团`),console[JmShClI(0x4a)](`账号${$[JmShClI(Q0wD6MU(-0x31))]||$[JmShClI(Q0wD6MU(-0x41))]}`),await QnN2z7(JmShClI[RrGysR(0x262)](XNUIT4(0xb1),Q0wD6MU(0x5f)),JmShClI[RrGysR(0x262)](Q0wD6MU(0x39),Q0wD6MU(0x60))),l2lS7H($[YnGmtB[0x7][XNUIT4(0x74)]],BgCScM(XNUIT4(0x99))))&&hLaddw.q49XYiA>-0x51){YnGmtB[0x1b]={[RrGysR(XNUIT4(0x1c4))]:JmShClI(XNUIT4(0x81))};if(LYwvZKF($[JmShClI(Q0wD6MU(0x171))]($[JmShClI(XNUIT4(0x97))],`提示cookie已失效`,`账号${$[JmShClI(XNUIT4(0x47))]||$[JmShClI(0x56)]}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`,{[YnGmtB[YnGmtB[XNUIT4(0xd1)]-(YnGmtB.HhJtlk-0x95)][RrGysR(0x269)]]:JmShClI(0x60)}),$[JmShClI[RrGysR(0x262)](Q0wD6MU(0x39),XNUIT4(0xb3))]())){await dGW8dD6[JmShClI(Q0wD6MU(0x61))](`${$[JmShClI(XNUIT4(0x97))]}cookie已失效 - ${$[JmShClI[RrGysR(0x25a)](void 0x0,[0x56])]}`,`账号 ${$[JmShClI(Q0wD6MU(-0x41))]}\n请重新登录获取cookie`)}return}if(LYwvZKF(await KLKDFo(Q0wD6MU(0xc)),await $[JmShClI(0x62)](XNUIT4(0xe3)),YnGmtB[YnGmtB.Ziotv2+0x66][JmShClI(Q0wD6MU(0x51))])!=0x0&&hLaddw.jsLysoG()){CEIr94t(YnGmtB[Q0wD6MU(0x62)]={[RrGysR(0x26a)]:JmShClI(XNUIT4(0xdb))},YnGmtB.Gq596uK=[JmShClI(YnGmtB[XNUIT4(0xd1)]+0xa5),JmShClI(YnGmtB.Ziotv2+XNUIT4(0xdc))],YnGmtB[YnGmtB.Ziotv2+Q0wD6MU(0xdc)]=JmShClI(YnGmtB[Q0wD6MU(0x59)]+Q0wD6MU(-0x2f)),YnGmtB[YnGmtB[Q0wD6MU(0x50)]-0xd]=YnGmtB[YnGmtB.Ziotv2+Q0wD6MU(0x65)][Math[JmShClI[RrGysR(0x262)](void 0x0,YnGmtB.Ziotv2+0xb2)](l2lS7H(Math[JmShClI(XNUIT4(0x62))](),YnGmtB[YnGmtB[Q0wD6MU(0x59)]+0x66][JmShClI(Q0wD6MU(0x51))],BgCScM(-0x27)))]);let MxqGhO=LYwvZKF(console[JmShClI[RrGysR(0x25a)](XNUIT4(0xb1),[0x4a])](JmShClI[RrGysR(0x262)](void 0x0,Q0wD6MU(0x65))),$[JmShClI(Q0wD6MU(-0x41))]=decodeURIComponent(nS4GtH[YnGmtB[XNUIT4(0xe6)]](/pt_pin=([^; ]+)(?=;?)/)&&nS4GtH[YnGmtB.Gq596uK[0x0]](/pt_pin=([^; ]+)(?=;?)/)[Q0wD6MU(0xc)]),$.UA=HOiXFow[JmShClI[RrGysR(Q0wD6MU(0x19))](XNUIT4(0xb1),[0x5a])]?HOiXFow[YnGmtB.Gq596uK[YnGmtB[XNUIT4(0xc8)]-0x2b]]():HOiXFow[JmShClI(0x5b)],await X3HB6C4[JmShClI(XNUIT4(0xde))]($.UA));if(MxqGhO){$[JmShClI[RrGysR(0x25a)](undefined,[XNUIT4(0xd5)])]=MxqGhO[JmShClI[RrGysR(XNUIT4(0xc1))](void 0x0,XNUIT4(0xdf))]}CEIr94t(await fKs1Qt(YnGmtB[0x1f]),await $[YnGmtB[YnGmtB[Q0wD6MU(0x59)]+Q0wD6MU(0x68)][RrGysR(0x26a)]](0x7d0))}if(LYwvZKF(console[JmShClI(0x4a)](`——————————————————————————————————————————————————————`),console[JmShClI(0x4a)](`\n\n———————————开始助力车头(助力间隔${lvCcPn}秒)—————————————`),P5SQpt)){CEIr94t(console[JmShClI(Q0wD6MU(0x5))](`\n已指定助力CODE,抛弃车头去助力TA`),klcqm3o=P5SQpt[JmS
2024-09-15 02:05:09 +00:00
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||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueF