jdpro/jd_zzhb.js

15 lines
122 KiB
JavaScript
Raw Normal View History

2024-01-02 12:59:48 +00:00
/*
转赚红包
执行流程车头输出助力码--助力--抽奖--检查提现
可指定PIN车头(只能1个)不指定默认CK1 变量 JDZHBTOPPIN='jdpin'
运行一次抽奖次数,默认抽完控制变量 JDZHBLTNUM='200'
每次抽奖间隔默认1秒控制变量 JDZHBDELAY='3'
开启提现到上限转红包 JDZHBTORED='true'
代理变量DY_PROXY='https://api'仅对助力使用支持类星空的api
默认提现不提现的变量 NOTX='true'
updatetime:2023/11/16
*/
const $ = new Env('Jd转赚红包');
var _0xod4='jsjiami.com.v7';const _0x57b27f=_0x4651;function _0x17c5(){const _0x28f3cc=(function(){return[...[_0xod4,'xVUjGRpswEjlDiaemxAQiOS.CDcMoHCmtR.wehv7==','5lUb5lQ45P2L5yQB5zUJ6k+f6zw35PAY5O2N5lUj56UA776L6k6B5QkS5P6S6iAj6lIT6k635Awq57YH57Mp5Oc95yA3','Bmk0Cq','WQzpW4fsD8ocW4tdJa','reNdTW7dSG','WRBdJCoiW7hdUa','WOvNW4HauW','W7NcS0eZrG','uCo6WRBcIW','W6dcOCkWEZy','wCo+WQZcJCo+fW','rCksamoMW5uh','WPldGCkxW7xcKutdPmkvnKmEWOBdRx/cTmoeWO3dV8oR','v8kzbSoVW6S','W4SYjgyj','yCoPWOhcHmoM','vennCCk1','W6rLWQ/dSNq','xCo1WRK7W7Cq','WQqJmMddMG','W5ddISkscq','6l6X6kge55U6kw7KUPdMSQNMIRJLIl7MJl/LROZNMltdGCkUW4xVVjBLGAlMR6VMIRxOO44','tvjj','WRreW5vIBG','WQHdWPFcTCkJvCo/c8oziv3cGmoD','W5rNW7vgEW','yL9mBSks','WP7dImoMW54','tCk+xSoQya','W5hdIIhcNmkm','WORdNmoHW5C','WORcISki','lCodiWpdSW','EL4SW4NcO1bwWR4qux0','W6hdLSkzhSoFWR9+fG','WOZcPHldKfxdOfSGWR0','W4lcSSoxWQSr','A8k4ACoMxmkFW7frWOa','WReuea','gZVcUc11','WRVdIqpcUCkhrSoQW7C','WQfqW75pCq','WQG9e8kFW6W','W6udWPNcTa','FmoAmb/dUW','gXldMHyY','vCoQWRenW7e','y8o/kbG','WP3dNWFcUCkQtW','cfGgi2S','WRJcK2PIiW','sSkib8oJ','wmo0WPBcR8oh','WOyJWOpdJ8oY','bceQW60','W4/cKmo5WO4zW4lcSbzWW7m','lLBdHu/cSa','Ehu9W5VcGq','W7OOkvW6z8oH','WPaSpSoeEJ3dTtdcNq','WOSeW75/tansDthdQMq','WRXbW79d','kSoJosNdUG','DSo4kt3dO3y','lmoCmGVdMa','lmo5fYldLvG','W5/dPmkLo8ou','AuS/W4dcO0vsWOyqtwDeogFcJxtcGCoYsZhdN8kIhe1TtmkPyMnHa8kjyG','W4ZdQdNcKmkm','W6/dMCkFW5VdGcxdHW','W6xcG8ktts98WOiC','W69IWO/dKeC','WO89iSokydi','WOVcOZRdQvi','W6JdUXdcPCkS','exe7bg8','W6zAut18W7Tn','W4xcHSoQ','xCk3W5PHW5e','WRmAWO7dLmoX','EK/dLq1h','WOXmarJcKG','W6vCW4/cSSow','W7RdVWhcVCkW','as8NW6q','W4n5W69KDq','WOHcaq7cK8kzWPPixvGtyq','aCoIk1tdRG','WQxdNmoZ','WQyRW51krW','bSo+j1ldSG','vSksyW','W741bK8NqmoKlSo/Dwm','WOlcT31mpqBdQq','cWVcHJ92','W6JLVARLPyhJGidOTlJLJPe','WQOWa8kSW58','WOynW69K','WQPRWONdJvBcPSoSW7uaW4jAW6WDkmkFWRlcMHhcR8ojWOpcQehdGehcQsqsW41VgCkLW7pdRSo6W7RdRtxcJHG0zmkkDu4Hte0ZsvdcIG','WR85W4ZcIqVdT8oNW7mGW5HuW70d','WOOpW6v6Fq','te5j','W7pcHCkUxq','W4edgZFPGBVNMj/MI7dLPiJMRO3ML4/MSyBMNixMJOdNJzlPHjK','W4vzW4bmBW','d8oXewldJW','W7fPBYXa','W53cPfG/sG','WPOfkSkFW6i','WR0GeSkUW6y','WR59tLaW','W5DrW4fAEq','W7JcGmkHyaO','WQqVWPpdOSog','WOn0WO5Fk8kTWQJcOW','o8oSbYW','W7vCvHDLW7zCWP3dNsVdIvFdK8k4W79mW5Gyrq','WOXFgHhcKSkPWPPnrfm','WRxcOHldOgm','C0/dNJ0','bmokc1BdVH7dVmkX','W5xdGSkFfSoD','mWOXW6xdQG','W7pdUWxcOCk6WQdcTeP5g3neWR/cKCocE8otWO7dISkjxCk7lmo+aGb8W4vQEYBcRmk0f8kbW7/dPYC+eY0fvhfRWOPvkWGaW5tcSmoaWQiyWOamk17dIgRcMW','Cmk4B8o/qCocWRCyWONdKmk2nCkthCoYW65uWOpdOJNdSvlcMa','W6ldQ8kLWQRdI8klW4Pc','WR8HfCkpW70','kCo8Cmo2rCk7W5bg','W7jFW4jcDCoKCCk0cW','W6ikWQ/cPmkr','WRGF5Ast6lwBmSk/5y635zIuWOj4','WPbcfa','gSofau4','WOtcQZRdNga','r8keFW','W6qGieqw','W5NcT3TTnW/cV8oOWPVdMmoIWPpcPmkdWOldSKWmySkZWPBcOa','m8oIfaJdKL4','CSolhbJdUG','A8kBdCoUW4e','57Q85P6Z77+w5Rge5P+05QYO5PAK5lQI77+7','5O2H546a5yQD5lIJ6zMm','bSopWRuXFa','W7VcSNONxq','rvPlCW','WO7dGmo/W5RdHW','cYNcVIrE','W7qnWPpcTCkpvW','WR9chadcNSkAWRfL','WO/cUHy','W7/dQSkZWQRdL8k3W5K','ceCsc30','omoObWddJ0lcPCko','A8k9qa','u1HkCSkiaq','W7ZcJmoJWO09','cs0Rd+AmI+EpTUMhPG','WRLeW4vNFW','WOvaqhmoW74ln8oFW4ZcJMm+WQBcUN9Yf8oeBSkYWRq','WOi1i8oyEI4','57IJ5P+Q77+D5yIL5yIi5OID5yUyB+kDHH0','WPSFmKRdJNxcIvCSW4jI','rSkFdq','B0/dIG','mmombG/dRa','fIdcNbbz','WQfuW7zjCmoF','W5HZWPFdS3i','hSobcuJdQbi','W7JdRGlcUCkFW7u','WRv0hYxcNG','WOhcPHxdLa','44ke5O+V56sy44gVCmoWr8kFW5e95BwK5Asw5PE3','W4lcKSocWRiK','W7Hqrq','WRTtW5XjyCoo','uSkiqCohCmkSW5DN','WPdcRbxdHexdRq','WQ4raSoCCq','ChldMcbh','W6lcMmkKvIHH','FCk+ACocqCkF','5P636l+H57QI5P6o5Ps/6zwU776brq','umoPWRdcP8o5ga','WRidauTC','WPldNCoMW4/dH8kHW48btwjuWQvJW7NcSCowWRq','W5vaW4jAAa','W60Oc1a','WRqvWRBdHmo0','pCoMWPq0ra','WPHmpZVcVG','hYNdJJS8','WR3dG8obW7NdMq','W6ldMmkYW4pdTZ7dGmoCEmkoW7qU','WRi/gCkqW7ZcNSkxxa','WPVdMbZcM8kD','x8ovWOCuW5u','Amk5AmoN','qMTetCks','uCk8q8oGWRO','WR9VfYZcPa','57IP5PY1776i5RcE5P695yIL5yIK5Q2s5Pws77YB','WOWYoSohDq','W5iR6AgS6ykc77+6uSoKfmoan0NdHCkbW7jnW7dcRXNdU8kOb1JcIhxcNqakW5/cIW','s8onldhdVG','Dg5RvCk0jCoymSkZW5a','cuBdOwVcOG','WOZcOokzS+w1HUISMEE8OUs6PoAnTUEoRE+/Gq','W6BcNSkPttG','BvzbBCkg','B0/dIGXxWPi','WQK7fe3dTG','W7eEWPtcPCkf','5P+o6
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