diff --git a/output.js b/output.js index 67d071b5e..f02b2477d 100644 --- a/output.js +++ b/output.js @@ -1,656 +1,899 @@ -//Mon Aug 05 2024 01:40:42 GMT+0000 (Coordinated Universal Time) +//Mon Aug 05 2024 01:57:11 GMT+0000 (Coordinated Universal Time) //Base:https://github.com/echo094/decode-js //Modify:https://github.com/smallfawn/decode_action -function bdy_0x79d404(_0x5c35f2) { - let _0x2feca8 = ""; - switch (_0x5c35f2) { - case [_0x2feca8]: - const _0x9dfc65 = { - ed: ed - }; - _0xf1f6le = _0x9dfc65; - break; - case [_0x2feca8]: - const _0xaacbb7 = { - bd: bd - }; - _0xf1f6lc = _0xaacbb7; - break; - case [_0x2feca8]: - const _0x324136 = { - ed: ed - }; - _0xf1f6lf = _0x324136; - break; - case [_0x2feca8]: - const _0x17c363 = { - ed: ed - }; - _0xf1f6lg = _0x17c363; - break; - case [_0x2feca8]: - const _0x239043 = { - ed: ed - }; - _0xf1f6lv = _0x239043; - break; +const bdy_0x447e42 = $.isNode() ? require("./sendNotify") : "", + bdy_0x42f354 = $.isNode() ? require("./jdCookie.js") : "", + bdy_0x26904d = require("./function/dylans"), + bdy_0x351ff0 = require("./USER_AGENTS"), + bdy_0x14e6c2 = require("./function/dylib"); +let bdy_0x4952f3 = true, + bdy_0x50f54e = [], + bdy_0x351a8f = [], + bdy_0x117437 = [], + bdy_0x3820a5 = [], + bdy_0x1fb4f3 = {}, + bdy_0x1c3c62 = [], + bdy_0x3f614c = "", + bdy_0x1a6a02 = "", + bdy_0x4ef907 = "", + bdy_0xf6c626 = "", + bdy_0x572651; +const bdy_0xa278d6 = process.env.JDZHB2NUM || "9999", + bdy_0x1fef7e = process.env.JDZHB2LTNUM || "-1", + bdy_0x3b070f = process.env.JDZHB2DELAY || "1", + bdy_0x2fda37 = process.env.TXDELAY || "5", + bdy_0x166407 = process.env.HLDELAY || "1", + bdy_0x3e5883 = process.env.TXIVAL || "1", + bdy_0x3f4fe2 = process.env.JDZHB2TORED || false, + bdy_0x1b58ed = process.env.JDZHB2TOPPIN || "", + bdy_0x47d48d = process.env.TXSILENT || false, + bdy_0x2ab400 = process.env.ZZHB2CODE || "", + bdy_0x2d6755 = process.env.CXJLJQ_COUNT || "10", + bdy_0x31b67c = process.env.TX_MODE || "0", + bdy_0x386cff = process.env.CXJHELP_NODRAW || false, + bdy_0x28ea05 = process.env.NOTX ? process.env.NOTX : false; +if (process.env.DY_PROXY) { + try { + bdy_0x1fb4f3 = require("./function/proxy.js"); + $.dget = bdy_0x1fb4f3.intoRequest($.get.bind($)); + $.dpost = bdy_0x1fb4f3.intoRequest($.post.bind($)); + } catch { + $.dget = $.get; + $.dpost = $.post; } +} else { + $.dpost = $.post; + $.dget = $.get; } -var bdy_0x2dc142 = require("crypto-js"), - bdy_0x5f4c8b = {}; -const bdy_0x4ef7cc = require("got"), - bdy_0x2b56a3 = ["w", "m", "0", "!", "@", "w", "-", "s", "#", "l", "l", "1", "f", "l", "o", "("], - bdy_0x29f152 = {}, - bdy_0x15be46 = bdy_0x2b56a3.reverse().join(""); -function bdy_0x2f4e77() { - var _0x9ac16, - _0x1139e6 = arguments.length > 0 && "undefined" !== arguments[0] ? arguments[0] : {}, - _0x366b3e = _0x1139e6.size, - _0x4f9936 = "undefined" === _0x366b3e ? 10 : _0x366b3e, - _0x20cd19 = _0x1139e6.num, - _0x56a319 = ""; - if (_0x20cd19 && "string" == typeof _0x20cd19) { - _0x9ac16 = _0x20cd19; - } - for (; _0x4f9936--;) { - _0x56a319 += _0x9ac16[Math.floor(Math.random() * _0x9ac16.length)]; +if ($.isNode()) { + Object.keys(bdy_0x42f354).forEach(_0x15e65d => { + bdy_0x1c3c62.push(bdy_0x42f354[_0x15e65d]); + }); + if (process.env.JD_DEBUG && process.env.JD_DEBUG === "false") { + console.log = () => {}; } - return _0x56a319; +} else { + bdy_0x1c3c62 = [$.getdata("CookieJD"), $.getdata("CookieJD2"), ...bdy_0x505699($.getdata("CookiesJD") || "[]").map(_0x2c6f5a => _0x2c6f5a.cookie)].filter(_0x1bf34e => !!_0x1bf34e); } -function bdy_0x419a9e(_0x32b81e) { - let _0x3ece1a = _0x32b81e.type, - _0x4d8b69 = "", - _0x29f44e = _0x32b81e.customDict; - if (_0x29f44e && "string" == typeof _0x29f44e) { - _0x3ece1a = _0x29f44e; - } else { - switch (_0x3ece1a) { - case "alphabet": - _0x3ece1a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; - break; - case "max": - _0x3ece1a = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"; - break; - case "number": - default: - _0x3ece1a = "0123456789"; +!(async () => { + if (!bdy_0x1c3c62[0]) { + const _0x29df96 = { + "open-url": "https://bean.m.jd.com/bean/signIndex.action" + }; + $.msg($.name, "【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取", "https://bean.m.jd.com/bean/signIndex.action", _0x29df96); + return; + } + $.log("\n❗❗❗每天1次助力次数,0点刷新❗❗❗"); + $.log("\n当前版本:20240617"); + console.log("执行流程,车头开团--助力車頭--車頭抽獎--車頭提現"); + console.log("TG频道:https://t.me/dylan_jdpro"); + $.log("\n环境变量清单(可选项):"); + $.log(" 指定PIN车头:不指定默认CK1 JDZHB2TOPPIN='jdpin'\n 指定助力CODE:都去助力TA ZZHB2CODE='xxx'\n 多少助力停止:默认9999个 JDZHB2NUM='100'\n 抽奖次数:默认抽完 JDZHB2LTNUM='200'\n 抽奖间隔:默认1秒 JDZHB2DELAY='3'\n 提现间隔:默认5秒 TXDELAY='3'\n 助力间隔:默认1秒 HLDELAY='3'\n 提现模式:默认提当前,设置1查列表提现,TX_MODE='1'\n 提现范围:默认1天内,太大会403 TXIVAL='3'\n 开启提现到上限转红包:JDZHB2TORED='true'\n 支持代理API: DY_PROXY='apiurl'\n 垃圾券数量:默认10次,CXJLJQ_COUNT='20'\n 关闭抽奖:默认助力完车头自动抽奖,CXJHELP_NODRAW='true'\n 关闭提现:NOTX='true'\n"); + let _0x49a614 = await bdy_0x31f0e6(); + if (bdy_0x1b58ed) { + console.log("\n已指定PIN:" + bdy_0x1b58ed); + let _0x215b1a = bdy_0x1c3c62.findIndex(_0x5ed4d4 => _0x5ed4d4.includes(bdy_0x1b58ed)); + if (_0x215b1a == -1) { + console.log("运行的CK中没找到指定的PIN,停止执行"); + return; } + bdy_0x1a6a02 = bdy_0x1c3c62[_0x215b1a]; + } else { + console.log("\n未指定PIN默认CK1车头"); + bdy_0x1a6a02 = bdy_0x1c3c62[0]; } - for (; _0x32b81e.size--;) { - _0x4d8b69 += _0x3ece1a[Math.random() * _0x3ece1a.length | 0]; + bdy_0x3f614c = bdy_0x1a6a02; + $.UserName = decodeURIComponent(bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/) && bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/)[1]); + $.isLogin = true; + $.nickName = ""; + $.UA = bdy_0x351ff0.UARAM ? bdy_0x351ff0.UARAM() : bdy_0x351ff0.USER_AGENT; + console.log("\n————————————————————车头开团——————————————————————————"); + console.log("账号:" + ($.nickName || $.UserName)); + await bdy_0x3d1301(); + if (!$.isLogin) { + const _0x436af3 = { + "open-url": "https://bean.m.jd.com/bean/signIndex.action" + }; + $.msg($.name, "【提示】cookie已失效", "账号" + ($.nickName || $.UserName) + "\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action", _0x436af3); + $.isNode() && (await bdy_0x447e42.sendNotify($.name + "cookie已失效 - " + $.UserName, "账号 " + $.UserName + "\n请重新登录获取cookie")); + return; } - return _0x4d8b69; -} -for (let bdy_0x60230f of ["HmacMD5", "HmacSHA1", "HmacSHA256", "HmacSHA512"]) { - bdy_0x5f4c8b[bdy_0x60230f] = function (_0x264bae, _0x3a67a2) { - return bdy_0x2dc142[bdy_0x60230f](_0x264bae + "7n5 String.fromCharCode(158 - _0x6cd46d.charCodeAt(0))).reverse().join("") + _0x3a67a2.slice(5)); - }; -} -for (let bdy_0x439f64 of ["MD5", "SHA1", "SHA256", "SHA512"]) { - bdy_0x5f4c8b[bdy_0x439f64] = function (_0x281602) { - return bdy_0x2dc142[bdy_0x439f64](_0x281602 + "7n5 作者"); + $.UserName = decodeURIComponent(bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/) && bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/)[1]); + $.UA = bdy_0x351ff0.UARAM ? bdy_0x351ff0.UARAM() : bdy_0x351ff0.USER_AGENT; + await bdy_0x2e259e(_0x542e2d); + await $.wait(2000); } - const _0x575a5c = "" + _0x8a222b + _0x5c4575 + _0x326f01 + _0x84403c + "Mp(2C1", - _0x45ee1a = bdy_0x2dc142.enc.Utf8.stringify(bdy_0x2dc142.enc.Base64.parse(_0x2b843b(bdy_0x2241e0(_0x8a222b, 16, 28)))), - _0x4ae73d = _0x45ee1a.match(/^[123]([x+][123])+/); - let _0x1604f4 = ""; - if (_0x4ae73d) { - const _0xa642e5 = _0x4ae73d[0].split(""); - let _0x2889ba = ""; - Array.prototype.forEach.call(_0xa642e5, _0x104f3f => { - if (isNaN(_0x104f3f)) { - if (["+", "x"].includes(_0x104f3f)) { - _0x2889ba = _0x104f3f; - } - } else { - const _0x199c4a = "local_key_" + _0x104f3f; - if (bdy_0x3c760d[_0x199c4a]) { - switch (_0x2889ba) { - case "+": - _0x1604f4 = "" + _0x1604f4 + bdy_0x2ee552(_0x199c4a, _0x575a5c, _0x8a222b); - break; - case "x": - _0x1604f4 = bdy_0x2ee552(_0x199c4a, _0x1604f4, _0x8a222b); - break; - default: - _0x1604f4 = bdy_0x2ee552(_0x199c4a, _0x575a5c, _0x8a222b); - } + console.log("——————————————————————————————————————————————————————"); + console.log("\n\n———————————开始助力车头(助力间隔" + bdy_0x166407 + "秒)—————————————"); + bdy_0x2ab400 && (console.log("\n已指定助力CODE,那抛弃车头去助力TA"), bdy_0x50f54e = [], bdy_0x50f54e.push(bdy_0x2ab400)); + bdy_0x572651 = 0; + for (let _0x48391c of bdy_0x50f54e) { + if (bdy_0x1c3c62.length === 1) { + console.log(""); + break; + } + console.log("\n去助力-> " + _0x48391c); + $.suc = 0; + for (let _0x3944d5 = bdy_0x572651; _0x3944d5 < bdy_0x1c3c62.length; _0x3944d5++) { + if (bdy_0x1c3c62[_0x3944d5]) { + bdy_0x3f614c = bdy_0x1c3c62[_0x3944d5]; + $.UserName = decodeURIComponent(bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/) && bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/)[1]); + $.index = _0x3944d5 + 1; + $.isLogin = true; + $.nickName = ""; + $.UA = bdy_0x351ff0.UARAM ? bdy_0x351ff0.UARAM() : bdy_0x351ff0.USER_AGENT; + console.log("\n开始【账号" + $.index + "】 " + ($.nickName || $.UserName) + "\n"); + await bdy_0x2e259e(_0x48391c); + bdy_0x1fb4f3.swip && (await bdy_0x1fb4f3.swip()); + if ($.suc >= Number(bdy_0xa278d6)) { + $.log("已达目标助力数,跳出!"); + bdy_0x572651 = _0x3944d5 + 1; + break; } + await $.wait(bdy_0x166407 * 1000); } - }); + } + if ($.index === bdy_0x1c3c62.length) { + console.log("\n没有可用于助力的ck,跳出!"); + break; + } } - return _0x1604f4; -} -function bdy_0x2ee552(_0x50a8f1, _0x59d6c0, _0x1738d0) { - let _0x37dfdf = bdy_0x3c760d[_0x50a8f1]; - return _0x50a8f1 === "local_key_3" ? _0x37dfdf(_0x59d6c0, _0x1738d0).toString(bdy_0x2dc142.enc.Hex) : _0x37dfdf(_0x59d6c0).toString(bdy_0x2dc142.enc.Hex); -} -function bdy_0x7f38a6(_0x2c5189, _0x401e63) { - let _0x568293 = 1, - _0x1923b7 = 0, - _0x34e872 = _0x2c5189.length, - _0x2b5765 = 0; - "number" == typeof _0x401e63 && (_0x568293 = 65535 & _0x401e63, _0x1923b7 = _0x401e63 >>> 16 & 65535); - for (let _0x4367cc = 0; _0x4367cc < _0x34e872;) { - for (_0x2b5765 = Math.min(_0x34e872 - _0x4367cc, 3850) + _0x4367cc; _0x4367cc < _0x2b5765; _0x4367cc++) { - _0x1923b7 += _0x568293 += 255 & _0x2c5189[_0x4367cc]; + if (bdy_0x386cff == "true") { + console.log("\n已设置不自动抽奖提现"); + return; + } + console.log("\n\n—————————————————开始车头抽奖和提现—————————————————"); + bdy_0x1fef7e > -1 && console.log("\n已设置本次运行抽奖次数:" + bdy_0x1fef7e); + let _0x565506 = new Date(); + _0x565506.setDate(_0x565506.getDate() - bdy_0x3e5883); + bdy_0x3f614c = bdy_0x1a6a02; + $.UserName = decodeURIComponent(bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/) && bdy_0x3f614c.match(/pt_pin=([^; ]+)(?=;?)/)[1]); + $.isLogin = true; + $.nickName = ""; + $.fail = 0; + bdy_0x351a8f = []; + bdy_0x117437 = []; + txjscore = []; + $.txj = true; + $.fg = 1; + $.txfull = false; + $.nocashnum = 0; + $.end = false; + $.hotflag = false; + $.toredfailnum = 0; + $.txjsuc = false; + $.banip = false; + $.xcrflag = 1; + $.UA = bdy_0x351ff0.UARAM ? bdy_0x351ff0.UARAM() : bdy_0x351ff0.USER_AGENT; + let _0x140aa1 = await bdy_0x53763c(0); + await $.wait(1000); + if (_0x140aa1.code != "0") { + return; + } + $.log("本轮已抽奖次数:" + _0x140aa1.data.drawPrizeNum); + $.log("本轮剩余抽奖次数:" + $.times); + if (_0x140aa1.data.cashVo) { + if (_0x140aa1.data?.["cashVo"]?.["state"] === 1) { + $.log("本轮提现金进度:" + _0x140aa1.data.cashVo.amount + "/" + _0x140aa1.data.cashVo.totalAmount + "(-" + _0x140aa1.data.cashVo.leftAmount + ")"); + } else { + if (_0x140aa1.data?.["cashVo"]?.["state"] === 3) { + $.log("本轮提现金达成:" + _0x140aa1.data.cashVo.amount + "/" + _0x140aa1.data.cashVo.totalAmount); + $.txj = false; + $.txjsuc = true; + } } - _0x568293 = 15 * (_0x568293 >>> 16) + (65535 & _0x568293); - _0x1923b7 = 15 * (_0x1923b7 >>> 16) + (65535 & _0x1923b7); + } else { + $.txj = false; } - return _0x1923b7 % 65521 << 16 | _0x568293 % 65521; -} -function bdy_0x589a6c(_0x31a92e, _0x34b9e9) { - let _0x46cd8f = 1, - _0xbc1074 = 0, - _0xf07cc8 = _0x31a92e.length, - _0xcec88f = 0, - _0x3cab2c = 0, - _0x2cbbb2 = 0; - "number" == typeof _0x34b9e9 && (_0x46cd8f = 65535 & _0x34b9e9, _0xbc1074 = _0x34b9e9 >>> 16); - for (let _0x4993b1 = 0; _0x4993b1 < _0xf07cc8;) { - for (_0xcec88f = Math.min(_0xf07cc8 - _0x4993b1, 3850); _0xcec88f > 0;) { - (_0x3cab2c = _0x31a92e.charCodeAt(_0x4993b1++)) < 128 ? _0x46cd8f += _0x3cab2c : _0x3cab2c < 2048 ? (_0xbc1074 += _0x46cd8f += 192 | _0x3cab2c >> 6 & 31, --_0xcec88f, _0x46cd8f += 128 | 63 & _0x3cab2c) : _0x3cab2c >= 55296 && _0x3cab2c < 57344 ? (_0xbc1074 += _0x46cd8f += 240 | (_0x3cab2c = 64 + (1023 & _0x3cab2c)) >> 8 & 7, --_0xcec88f, _0xbc1074 += _0x46cd8f += 128 | _0x3cab2c >> 2 & 63, --_0xcec88f, _0xbc1074 += _0x46cd8f += 128 | (_0x2cbbb2 = 1023 & _0x31a92e.charCodeAt(_0x4993b1++)) >> 6 & 15 | (3 & _0x3cab2c) << 4, --_0xcec88f, _0x46cd8f += 128 | 63 & _0x2cbbb2) : (_0xbc1074 += _0x46cd8f += 224 | _0x3cab2c >> 12 & 15, --_0xcec88f, _0xbc1074 += _0x46cd8f += 128 | _0x3cab2c >> 6 & 63, --_0xcec88f, _0x46cd8f += 128 | 63 & _0x3cab2c); - _0xbc1074 += _0x46cd8f; - --_0xcec88f; + $.log("本轮结束时间: " + bdy_0x494669(new Date(Date.now() + _0x140aa1.data.countDownTime))); + for (let _0x5e2942 = 0; _0x5e2942 < (bdy_0x1fef7e > -1 && bdy_0x1fef7e < $.times ? bdy_0x1fef7e : $.times); _0x5e2942++) { + process.stdout.write("\n第" + (_0x5e2942 + 1) + "次抽奖结果:"); + for (let _0x137a3b of Array(1)) { + await bdy_0x18012c(_0x137a3b + 1); + if (!$.hotflag) { + break; + } + await $.wait(Math.random() * 500 + bdy_0x3b070f * 1000); + } + if ($.banip || !$.isLogin) { + break; + } + if ($.end) { + console.log("\n本轮结束了,开启新一轮"); + let _0x166417 = await bdy_0x53763c(0); + _0x166417.code == 0 && $.log("开启成功,结束时间: " + bdy_0x494669(new Date(Date.now() + _0x166417.data.countDownTime))); + } + $.txj && (await bdy_0x5c26b8()); + await $.wait(Math.random() * 500 + bdy_0x3b070f * 1000); + if ($.fail > bdy_0x2d6755) { + $.log("连续垃圾券,不继续抽了"); + break; } - _0x46cd8f = 15 * (_0x46cd8f >>> 16) + (65535 & _0x46cd8f); - _0xbc1074 = 15 * (_0xbc1074 >>> 16) + (65535 & _0xbc1074); } - return _0xbc1074 % 65521 << 16 | _0x46cd8f % 65521; -} -function bdy_0x2241e0(_0x11014a, _0x2d0e90, _0xd42b5) { - if (_0x11014a) { - return String.prototype.slice.call(_0x11014a, _0x2d0e90, _0xd42b5); + bdy_0x117437.length !== 0 && $.log("\n\n本次抽奖获得红包总计:" + bdy_0x117437.reduce((_0x40ee8b, _0x25dcd6) => _0x40ee8b + _0x25dcd6 * 100, 0) / 100 + "元"); + bdy_0x351a8f.length !== 0 && $.log("\n\n本次抽奖获得现金总计:" + bdy_0x351a8f.reduce((_0x2e89a3, _0x4cb823) => _0x2e89a3 + _0x4cb823 * 100, 0) / 100 + "元"); + if (txjscore.length !== 0) { + let _0x255575 = txjscore.reduce((_0x254246, _0x49c027) => _0x254246 + _0x49c027 * 100, 0) / 100; + $.log("\n\n本次抽奖获得提现金:" + _0x255575 + "个, 平均" + (_0x255575 / (bdy_0x1fef7e > -1 ? Math.min.apply(null, [bdy_0x1fef7e, $.times]) : $.times)).toFixed(4) + "个/抽"); } - return ""; -} -function bdy_0x2e7a50(_0x21a779) { - var _0x5596dd = { - magic: "tk", - version: "03" || "02", - platform: "w", - expires: "41", - producer: "l", - expr: bdy_0x591598(), - cipher: bdy_0x5b84f1(_0x21a779), - adler32: bdy_0x37b8b3(_0x5596dd.magic + _0x5596dd.version + _0x5596dd.platform + _0x5596dd.expires + _0x5596dd.producer + _0x5596dd.expr + _0x5596dd.cipher) + if (bdy_0x28ea05 != "true") { + if (new Date().getHours() < 6 && bdy_0x47d48d) { + return; + } + $.log("\n——————————————开始提现(间隔" + bdy_0x2fda37 + "秒)————————————————"); + $.log("\n当前提现模式:" + (bdy_0x31b67c == "1" ? bdy_0x3e5883 + "天内历史" : "本次所抽现金")); + $.log("上限转红包:" + (bdy_0x3f4fe2 ? "开启" : "关闭(续期♻️)")); + $.txsuc = []; + $.toredsuc = []; + $.failtxlist = []; + $.banip = false; + if (bdy_0x31b67c == "1") { + for (let _0x2a54d3 = 0; _0x2a54d3 < 500; _0x2a54d3++) { + if ($.nocashnum > 2 || $.toredfailnum > 4 || $.banip) { + break; + } + process.stdout.write("\n" + (_0x2a54d3 + 1) + "页:"); + let _0x3e2072 = await bdy_0x4a40d9(_0x2a54d3 + 1); + _0x3e2072 == "" && (await $.wait(5000), await bdy_0x4a40d9(_0x2a54d3 + 1)); + if (!$.baglist || $.baglist.length === 0) { + break; + } + for (let _0x1d93db of $.baglist) { + if (Math.max.apply(null, [new Date(_0x1d93db.createTime), new Date(_0x1d93db.startTime)]) < _0x565506 || $.toredfailnum > 4) { + $.nocashnum = 5; + break; + } + if (_0x1d93db.prizeType == 4) { + $.txfail = false; + if (_0x1d93db.state == 0 || _0x1d93db.state == 2) { + process.stdout.write("" + Number(_0x1d93db.amount)); + let _0x42328d = await bdy_0x5648ae(_0x1d93db, Number(_0x1d93db.amount)); + $.txfail && (await $.wait(5000), _0x42328d = await bdy_0x5648ae(_0x1d93db, Number(_0x1d93db.amount))); + $.txfail && $.failtxlist.push(_0x1d93db); + if (_0x42328d.data.message.includes("上限") && bdy_0x3f4fe2 == "true" && $.toredfailnum < 5) { + await bdy_0x34cca5(_0x1d93db, Number(_0x1d93db.amount)); + } + await $.wait(bdy_0x2fda37 * 1000); + } else { + _0x1d93db.state == 8; + } + } + } + await $.wait(3000); + } + $.banip = false; + while ($.failtxlist.length > 0) { + console.log("\n" + $.failtxlist.length); + for (let _0x5bfced = 0; _0x5bfced < $.failtxlist.length;) { + let _0x2d6bb8 = $.failtxlist[_0x5bfced]; + if (_0x2d6bb8.prizeType == 4) { + $.txfail = false; + process.stdout.write("" + Number(_0x2d6bb8.amount)); + let _0x3c5eac = await bdy_0x5648ae(_0x2d6bb8, Number(_0x2d6bb8.amount)); + if ($.txfail) { + await $.wait(5000); + _0x3c5eac = await bdy_0x5648ae(_0x2d6bb8, Number(_0x2d6bb8.amount)); + } + $.txfail ? _0x5bfced++ : $.failtxlist.splice(_0x5bfced, 1); + if (_0x3c5eac.data.message.includes("上限") && bdy_0x3f4fe2 == "true" && $.toredfailnum < 5) { + await bdy_0x34cca5(_0x2d6bb8, Number(_0x2d6bb8.amount)); + } + await $.wait(bdy_0x2fda37 * 1000); + } + } + } + } else { + for (let _0x323bb4 = 0; _0x323bb4 < 1; _0x323bb4++) { + if ($.nocashnum > 2 || $.toredfailnum > 4) { + break; + } + while (bdy_0x3820a5.length > 0) { + console.log("\n" + bdy_0x3820a5.length); + for (let _0xf8e80c = 0; _0xf8e80c < bdy_0x3820a5.length;) { + let _0x1d854a = bdy_0x3820a5[_0xf8e80c]; + if (_0x1d854a.prizeType == 4) { + $.txfail = false; + process.stdout.write("" + Number(_0x1d854a.amount)); + let _0x4558a8 = await bdy_0x5648ae(_0x1d854a, Number(_0x1d854a.amount)); + if ($.txfail) { + await $.wait(5000); + _0x4558a8 = await bdy_0x5648ae(_0x1d854a, Number(_0x1d854a.amount)); + } + $.txfail ? _0xf8e80c++ : bdy_0x3820a5.splice(_0xf8e80c, 1); + if (_0x4558a8.data.message.includes("上限") && bdy_0x3f4fe2 == "true" && $.toredfailnum < 5) { + await bdy_0x34cca5(_0x1d854a, Number(_0x1d854a.amount)); + } + await $.wait(bdy_0x2fda37 * 1000); + } + } + await $.wait(2000); + } + } + } + $.txsuc.length !== 0 && $.log("\n\n本次成功提现总计:" + $.txsuc.reduce((_0x3356b3, _0x74d9e2) => _0x3356b3 + _0x74d9e2 * 100, 0) / 100 + "元"); + $.toredsuc.length !== 0 && $.log("\n\n本次成功转红包总计:" + $.toredsuc.reduce((_0x20f1c0, _0x28ab9b) => _0x20f1c0 + _0x28ab9b * 100, 0) / 100 + "元"); + } else { + $.log("\n\n⚠已设置不提现!"); + } + bdy_0x3820a5 = []; + await $.wait(2000); +})().catch(_0xe04f5e => { + $.log("", "❌ " + $.name + ", 失败! 原因: " + _0xe04f5e + "!", ""); +}).finally(() => { + $.done(); +}); +async function bdy_0x53763c(_0x563651) { + const _0x5de13 = { + linkId: "wDNvX5t2N52cWEM8cLOa0g", + inviter: "" }; - return _0x5596dd.magic + _0x5596dd.version + _0x5596dd.platform + _0x5596dd.adler32 + _0x5596dd.expires + _0x5596dd.producer + _0x5596dd.expr + _0x5596dd.cipher; -} -function bdy_0x369850(_0x59b2f3) { - var _0x13e9b2 = new Uint8Array(_0x59b2f3.length); - Array.prototype.forEach.call(_0x13e9b2, function (_0x1a71b7, _0x248b92, _0x59ac45) { - _0x59ac45[_0x248b92] = _0x59b2f3.charCodeAt(_0x248b92); + let _0x3f2815 = _0x5de13, + _0x4a54f3 = { + appId: "eb67b", + functionId: "inviteFissionHome", + fn: "inviteFissionHome", + body: _0x3f2815, + appid: "activities_platform", + apid: "activities_platform", + clientVersion: $.UA.split(";")[2], + ver: $.UA.split(";")[2], + client: "ios", + cl: "ios", + user: $.UserName, + t: Date.now(), + code: 1, + xcr: $.xcrflag, + ua: $.UA + }; + _0x3f2815 = await bdy_0x26904d.getbody(_0x4a54f3); + if (!_0x3f2815) { + return; + } + return new Promise(async _0x3b5954 => { + $.dpost(bdy_0x15f0f3(_0x3f2815), async (_0x59f0e4, _0x2f3397, _0x19df92) => { + try { + if (_0x59f0e4) { + console.log("" + JSON.stringify(_0x59f0e4)); + console.log("homeinfo请求失败,请检查网路重试"); + } else { + _0x19df92 = JSON.parse(_0x19df92); + if (_0x19df92.code == 0) { + $.times = _0x19df92.data.prizeNum; + if (_0x563651) { + console.log("我的助力码:" + _0x19df92.data.inviter); + } + bdy_0x50f54e.push(_0x19df92.data.inviter); + } else { + console.log(_0x19df92.errMsg); + } + } + } catch (_0x29fe83) { + $.logErr(_0x29fe83, _0x2f3397); + } finally { + _0x3b5954(_0x19df92); + } + }); }); - return bdy_0x3e854c(_0x13e9b2); } -function bdy_0x3e854c(_0x30e8db) { - return Array.prototype.map.call(_0x30e8db, function (_0x3a7df7) { - var _0x53b2f3 = "00" + (_0x3a7df7 & 255).toString(16); - return _0x53b2f3.slice(-2); - }).join(""); -} -function bdy_0x2c5430(_0x22b3cc) { - return bdy_0x3e854c(bdy_0x215645(_0x22b3cc)); -} -function bdy_0x5b84f1(_0x1f0fbb) { - const _0x391f5b = { - size: 32, - dictType: "max", - customDict: null +async function bdy_0x5c26b8() { + const _0x258d02 = { + linkId: "wDNvX5t2N52cWEM8cLOa0g" }; - bdy_0x3b09e3(_0x391f5b); - var _0x138766 = "", - _0x4a1029 = Date.now(), - _0x13a20f = "FX", - _0x3c3904 = "4*iK&33Z|+6)", - _0x5e9de7 = bdy_0x2ea25a(_0x1f0fbb, _0x4a1029, _0x13a20f, _0x3c3904); - _0x138766 += bdy_0x369850(_0x5e9de7); - _0x138766 += bdy_0x369850(_0x13a20f); - _0x138766 += bdy_0x369850(_0x3c3904); - _0x138766 += bdy_0x2c5430(_0x4a1029); - _0x138766 += bdy_0x369850(_0x1f0fbb); - var _0x5dfd8b = bdy_0x2dc142.enc.Hex.parse(_0x138766), - _0x3b5739 = bdy_0x2dc142.AES.encrypt(_0x5dfd8b, bdy_0x2dc142.enc.Utf8.parse("gs8&99W04zm5U>Rz"), { - iv: bdy_0x2dc142.enc.Utf8.parse("0102030405060708") + let _0x239425 = _0x258d02, + _0x1c9743 = { + appId: "b8469", + functionId: "inviteFissionReceive", + fn: "inviteFissionReceive", + body: _0x239425, + appid: "activities_platform", + apid: "activities_platform", + clientVersion: $.UA.split(";")[2], + ver: $.UA.split(";")[2], + client: "ios", + cl: "ios", + user: $.UserName, + t: Date.now(), + code: 1, + xcr: $.xcrflag, + ua: $.UA + }; + $.xcrflag == 1 && ($.xcrflag = 0); + _0x239425 = await bdy_0x26904d.getbody(_0x1c9743); + if (!_0x239425) { + return; + } + return new Promise(async _0x44cef9 => { + $.dpost(bdy_0x15f0f3(_0x239425), async (_0x1fd013, _0x13a132, _0x49e0b2) => { + try { + if (_0x1fd013) { + console.log("" + JSON.stringify(_0x1fd013)); + console.log("receive请求失败,请检查网路重试"); + _0x1fd013.includes("403") && ($.banip = true); + } else { + _0x49e0b2 = JSON.parse(_0x49e0b2); + if (_0x49e0b2.code == 0) { + process.stdout.write("----提现金" + _0x49e0b2.data.amount + "(+" + _0x49e0b2.data.receiveList[0].amount + ")"); + txjscore.push(_0x49e0b2.data.receiveList[0].amount); + if (_0x49e0b2.data?.["state"] == 3) { + process.stdout.write("----恭喜达成"); + $.txj = false; + $.txjsuc = true; + } + } else { + if (_0x49e0b2.code == 80208) { + process.stdout.write("----送的抽奖次数没有提现金"); + } else { + _0x49e0b2.code == 80209 ? (process.stdout.write("----完成标识"), $.txj = false) : console.log(JSON.stringify(_0x49e0b2)); + } + } + } + } catch (_0x4860a7) { + $.logErr(_0x4860a7, _0x13a132); + } finally { + _0x44cef9(_0x49e0b2); + } }); - return bdy_0x4af231(bdy_0x2dc142.enc.Base64.stringify(_0x3b5739.ciphertext)); -} -function bdy_0x4af231(_0xcf3ee3) { - return _0xcf3ee3.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); -} -function bdy_0x2ea25a(_0x2a886c, _0x58d775, _0x3464d2, _0x2833fa) { - var _0x480cc4 = new Uint8Array(16); - Array.prototype.forEach.call(_0x480cc4, function (_0x323161, _0x501bcc, _0x21cd39) { - _0x21cd39[_0x501bcc] = _0x2a886c.charCodeAt(_0x501bcc); - }); - var _0x5c9206 = bdy_0x215645(_0x58d775), - _0x554fa2 = new Uint8Array(2); - Array.prototype.forEach.call(_0x554fa2, function (_0x42f84c, _0x5dedeb, _0x1763bd) { - _0x1763bd[_0x5dedeb] = _0x3464d2.charCodeAt(_0x5dedeb); - }); - var _0x532864 = new Uint8Array(12); - Array.prototype.forEach.call(_0x532864, function (_0x1f46bc, _0x46b7d2, _0x5e2918) { - _0x5e2918[_0x46b7d2] = _0x2833fa.charCodeAt(_0x46b7d2); }); - var _0x461887 = new Uint8Array(38); - _0x461887.set(_0x554fa2); - _0x461887.set(_0x532864, 2); - _0x461887.set(_0x5c9206, 14); - _0x461887.set(_0x480cc4, 22); - var _0x24fd16 = bdy_0x7f38a6(_0x461887); - _0x24fd16 >>>= 0; - var _0x431bab = "00000000" + _0x24fd16.toString(16); - return _0x431bab.substr(_0x431bab.length - 8); } -function bdy_0x215645(_0x46289e) { - var _0x3f94f6 = void 0; - _0x3f94f6 = new ArrayBuffer(2); - new DataView(_0x3f94f6).setInt16(0, 256, !0); - var _0x240904 = new Int16Array(_0x3f94f6)[0] === 256; - var _0x45f906 = Math.floor(_0x46289e / Math.pow(2, 32)); - var _0x59c3c1 = _0x46289e % Math.pow(2, 32); - var _0x53628d = new ArrayBuffer(8); - var _0x178860 = new DataView(_0x53628d); - _0x240904 ? (_0x178860.setUint32(0, _0x59c3c1, _0x240904), _0x178860.setUint32(4, _0x45f906, _0x240904)) : (_0x178860.setUint32(0, _0x45f906, _0x240904), _0x178860.setUint32(4, _0x59c3c1, _0x240904)); - return new Uint8Array(_0x53628d); -} -function bdy_0x591598() { - const _0x198bc1 = { - size: 32, - dictType: "max", - customDict: null +async function bdy_0x18012c(_0x4e616a) { + const _0x25240a = { + linkId: "wDNvX5t2N52cWEM8cLOa0g" }; - var _0x18a0d9 = bdy_0x3b09e3(_0x198bc1), - _0x1e4f43 = ["1", "2", "3"]; - for (var _0xa3f795 = ["+", "x"], _0xf2fe02 = 2 + Math.floor(Math.random() * 4), _0x4618f2 = "", _0x209723 = 0; _0x209723 < _0xf2fe02; _0x209723++) { - _0x4618f2 += _0x1e4f43[Math.floor(Math.random() * 3)]; - _0x209723 < _0xf2fe02 - 1 && (_0x4618f2 += _0xa3f795[Math.floor(Math.random() * 2)]); - } - _0x4618f2.length < 9 && (_0x4618f2 += _0x18a0d9.substr(0, 9 - _0x4618f2.length)); - var _0x59e896 = bdy_0x2dc142.enc.Utf8.parse(_0x4618f2), - _0x5f05ed = bdy_0x2dc142.enc.Base64.stringify(_0x59e896); - return bdy_0x4af231(_0x5f05ed); -} -function bdy_0x3b09e3() { - var _0x1e089d, - _0x528271 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - _0x556db5 = _0x528271.size, - _0x3004df = void 0 === _0x556db5 ? 10 : _0x556db5, - _0x37c094 = _0x528271.dictType, - _0x398f95 = void 0 === _0x37c094 ? "number" : _0x37c094, - _0x19bce0 = _0x528271.customDict, - _0x243a4a = ""; - if (_0x19bce0 && "string" == typeof _0x19bce0) { - _0x1e089d = _0x19bce0; - } else { - switch (_0x398f95) { - case "alphabet": - _0x1e089d = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; - break; - case "max": - _0x1e089d = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"; - break; - default: - _0x1e089d = "0123456789"; - } - } - for (; _0x3004df--;) { - _0x243a4a += _0x1e089d[Math.random() * _0x1e089d.length | 0]; - } - return _0x243a4a; -} -function bdy_0x37b8b3(_0x4cb9a4) { - var _0xf3d3 = bdy_0x589a6c(_0x4cb9a4) >>> 0, - _0x12c43b = "00000000" + _0xf3d3.toString(16); - return _0x12c43b.substr(_0x12c43b.length - 8); -} -function bdy_0x1cee52() { - var _0xc71409 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Date.now(), - _0x6398b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "yyyy-MM-dd", - _0x59eb11 = new Date(_0xc71409), - _0x2fd7f1 = _0x6398b, - _0x5a23ce = { - "M+": _0x59eb11.getMonth() + 1, - "d+": _0x59eb11.getDate(), - "D+": _0x59eb11.getDate(), - "h+": _0x59eb11.getHours(), - "H+": _0x59eb11.getHours(), - "m+": _0x59eb11.getMinutes(), - "s+": _0x59eb11.getSeconds(), - "w+": _0x59eb11.getDay(), - "q+": Math.floor((_0x59eb11.getMonth() + 3) / 3), - "S+": _0x59eb11.getMilliseconds() + let _0x4aba7c = _0x25240a, + _0x35a5a6 = { + appId: "c02c6", + functionId: "inviteFissionDrawPrize", + fn: "inviteFissionDrawPrize", + body: _0x4aba7c, + appid: "activities_platform", + apid: "activities_platform", + clientVersion: $.UA.split(";")[2], + ver: $.UA.split(";")[2], + client: "ios", + cl: "ios", + user: $.UserName, + t: Date.now(), + code: 1, + xcr: $.xcrflag, + ua: $.UA }; - /(y+)/i.test(_0x2fd7f1) && (_0x2fd7f1 = _0x2fd7f1.replace(RegExp.$1, "".concat(_0x59eb11.getFullYear()).substr(4 - RegExp.$1.length))); - Object.keys(_0x5a23ce).forEach(function (_0x69442a) { - if (new RegExp("(".concat(_0x69442a, ")")).test(_0x2fd7f1)) { - var _0x134310 = "S+" === _0x69442a ? "000" : "00"; - _0x2fd7f1 = _0x2fd7f1.replace(RegExp.$1, 1 == RegExp.$1.length ? _0x5a23ce[_0x69442a] : "".concat(_0x134310).concat(_0x5a23ce[_0x69442a]).substr("".concat(_0x5a23ce[_0x69442a]).length)); - } + $.xcrflag == 1 && ($.xcrflag = 0); + _0x4aba7c = await bdy_0x26904d.getbody(_0x35a5a6); + if (!_0x4aba7c) { + return; + } + return new Promise(async _0x951144 => { + $.dpost(bdy_0x15f0f3(_0x4aba7c), async (_0x2833c6, _0x7a9619, _0x56eb43) => { + try { + if (_0x2833c6) { + console.log("" + JSON.stringify(_0x2833c6)); + console.log("lottery请求失败,请检查网路重试"); + _0x2833c6.includes("403") && ($.banip = true); + } else { + _0x56eb43 = JSON.parse(_0x56eb43); + if (_0x56eb43.code == 0) { + const _0x54ef90 = _0x56eb43.data.prizeType; + if (!_0x54ef90) { + fail++; + } + switch (_0x54ef90) { + case 1: + process.stdout.write("垃.圾.券⚫"); + $.txjsuc && $.fail++; + $.fail++; + $.hotflag = false; + break; + case 4: + let _0x53c7d2 = parseFloat(_0x56eb43.data.prizeValue).toFixed(2); + process.stdout.write(_0x53c7d2 + "现金💰️"); + bdy_0x351a8f.push(_0x53c7d2); + const _0x47ac20 = { + prizeValue: _0x56eb43.data.prizeValue, + id: _0x56eb43.data.id, + poolBaseId: _0x56eb43.data.poolBaseId, + prizeGroupId: _0x56eb43.data.prizeGroupId, + prizeBaseId: _0x56eb43.data.prizeBaseId, + prizeType: _0x56eb43.data.prizeType, + amount: _0x56eb43.data.amount + }; + bdy_0x3820a5.push(_0x47ac20); + $.fail = 0; + $.hotflag = false; + break; + case 2: + let _0x4826b3 = parseFloat(_0x56eb43.data.prizeValue).toFixed(2); + process.stdout.write(_0x4826b3 + "红包🧧"); + bdy_0x117437.push(_0x4826b3); + $.fail = 0; + $.hotflag = false; + break; + default: + $.hotflag = false; + console.log(JSON.stringify(_0x56eb43.data)); + } + } else { + if (_0x56eb43.errMsg.includes("火爆")) { + process.stdout.write("未中奖 "); + $.hotflag = true; + } else { + if (_0x56eb43.errMsg.includes("结束")) { + $.end = true; + $.hotflag = false; + console.log(_0x56eb43.errMsg); + } else { + _0x56eb43.errMsg.includes("未登录") ? ($.isLogin = false, $.hotflag = false, console.log(_0x56eb43.errMsg)) : ($.hotflag = false, console.log(_0x56eb43.errMsg)); + } + } + } + } + } catch (_0x1c6ffe) { + $.logErr(_0x1c6ffe, _0x7a9619); + } finally { + _0x951144(_0x56eb43); + } + }); }); - return _0x2fd7f1; } -function bdy_0x4f5c58(_0x3dd158, _0x4affe4, _0x3a489a, _0xbb9b2f) { - let _0x1ba793 = { - version: "4.7", - fp: _0x4affe4, - appId: _0x3dd158, - timestamp: Date.now(), - platform: "web", - expandParams: "", - fv: "h5_file_v4.7.4" - }; - _0x1ba793.expandParams = _0xbb9b2f || ""; - const _0x542fb8 = { - Host: "cactus.jd.com", - "Content-Type": "application/json", - "User-agent": _0x3a489a +async function bdy_0x4a40d9(_0x4a4dd4) { + const _0x4ab29a = { + pageNum: _0x4a4dd4, + pageSize: 100, + linkId: "wDNvX5t2N52cWEM8cLOa0g", + business: "fission" }; - let _0x315b2f = { - url: "https://cactus.jd.com/request_algo?g_ty=ajax", - body: JSON.stringify(_0x1ba793), - headers: _0x542fb8, - timeout: 30000 + let _0x11e6ab = _0x4ab29a, + _0x28d177 = { + appId: "f2b1d", + functionId: "superRedBagList", + fn: "superRedBagList", + body: _0x11e6ab, + appid: "activities_platform", + apid: "activities_platform", + clientVersion: $.UA.split(";")[2], + ver: $.UA.split(";")[2], + client: "ios", + cl: "ios", + user: $.UserName, + t: Date.now(), + code: 1, + xcr: $.xcrflag, + ua: $.UA + }; + $.xcrflag == 1 && ($.xcrflag = 0); + _0x11e6ab = await bdy_0x26904d.getbody(_0x28d177); + if (!_0x11e6ab) { + return; + } + const _0x129bad = { + url: "https://api.m.jd.com/api", + body: _0x11e6ab + "&loginType=2&loginWQBiz=wegame&uuid=" + $.uuid + "&build=169088&screen=414*736&networkType=wifi&d_brand=iPhone&d_model=iPhone10,2&lang=zh_CN&osVersion=&partner=-1&cthr=1", + headers: {}, + ciphers: bdy_0x14e6c2.cpstr }; - return new Promise(async _0x1b41aa => { - bdy_0x1d49a3(_0x315b2f, (_0x4a73b9, _0x4b1dac, _0x46cddb) => { + _0x129bad.headers.Accept = "application/json, text/plain, */*"; + _0x129bad.headers["x-rp-client"] = "h5_1.0.0"; + _0x129bad.headers["Accept-Language"] = "zh-cn"; + _0x129bad.headers["Accept-Encoding"] = "gzip, deflate, br"; + _0x129bad.headers["Content-Type"] = "application/x-www-form-urlencoded"; + _0x129bad.headers.Origin = "https://pro.m.jd.com"; + _0x129bad.headers["User-Agent"] = $.UA; + _0x129bad.headers.Referer = "https://pro.m.jd.com/"; + _0x129bad.headers["x-referer-page"] = "https://pro.m.jd.com/"; + _0x129bad.headers["request-from"] = "native"; + _0x129bad.headers.Cookie = bdy_0x3f614c; + return new Promise(async _0x5db857 => { + $.dpost(_0x129bad, async (_0x23f0a8, _0xd09b47, _0x4f4fa4) => { try { - if (_0x4a73b9) { - console.log("" + JSON.stringify(_0x4a73b9)); - console.log("algo请求失败,请检查网路重试"); + if (_0x23f0a8) { + console.log("" + JSON.stringify(_0x23f0a8)); + console.log(" API请求失败,请检查网路重试"); + if (_0x23f0a8.includes("403")) { + $.banip = true; + } + _0x4f4fa4 = ""; } else { - _0x46cddb = JSON.parse(_0x46cddb); - _0x46cddb = _0x46cddb.data.result; + _0x4f4fa4 = JSON.parse(_0x4f4fa4); + _0x4f4fa4.code == 0 ? $.baglist = _0x4f4fa4.data.items : console.log(_0x4f4fa4.errMsg); } - } catch (_0xe62a62) { - console(_0xe62a62, _0x4b1dac); + } catch (_0x3db216) { + $.logErr(_0x3db216, _0xd09b47); } finally { - _0x1b41aa(_0x46cddb); + _0x5db857(_0x4f4fa4); } }); }); } -function bdy_0x140cd8(_0x439507) { - let _0x4e64c5 = _0x439507.size, - _0x383775 = _0x439507.num, - _0x47f172 = _0x383775, - _0x10236b = ""; - for (; _0x4e64c5--;) { - _0x10236b += _0x47f172[Math.random() * _0x47f172.length | 0]; - } - return _0x10236b; -} -function bdy_0x22f274(_0x256e29, _0x3587b4) { - for (let _0x37c88b = 0; _0x37c88b < _0x3587b4.length; _0x37c88b++) { - let _0x5572fd = _0x256e29.indexOf(_0x3587b4[_0x37c88b]); - _0x5572fd !== -1 && (_0x256e29 = _0x256e29.replace(_0x3587b4[_0x37c88b], "")); - } - return _0x256e29; -} -function bdy_0x4d5fa1(_0xf67269, _0x497eb0) { - let _0x175852 = [], - _0x11e936 = _0xf67269.length; - for (let _0x23fde9 = 0; _0x23fde9 < 10; _0x23fde9++) { - let _0x4f3e6a = _0xf67269[_0x23fde9]; - if (Math.random() * _0x11e936 < _0x497eb0 && (_0x175852.push(_0x4f3e6a), --_0x497eb0 == 0)) { - break; - } - _0x11e936--; - } - let _0x30e491 = ""; - for (let _0x5f1942 = 0; _0x5f1942 < _0x175852.length; _0x5f1942++) { - let _0x408faa = Math.random() * (_0x175852.length - _0x5f1942) | 0; - _0x30e491 += _0x175852[_0x408faa]; - _0x175852[_0x408faa] = _0x175852[_0x175852.length - _0x5f1942 - 1]; - } - return _0x30e491; -} -function bdy_0x5af17e() { - let _0xd19b97 = "1uct6d0jhq", - _0x40f902 = bdy_0x4d5fa1(_0xd19b97, 5), - _0x230e0b = Math.random() * 10 | 0, - _0x3b1ea7 = bdy_0x22f274(_0xd19b97, _0x40f902), - _0x142e65 = { - size: _0x230e0b, - num: _0x3b1ea7 +async function bdy_0x2e259e(_0x598bbd) { + const _0x148155 = { + linkId: "wDNvX5t2N52cWEM8cLOa0g", + isJdApp: true, + inviter: _0x598bbd + }; + let _0x53492a = _0x148155, + _0x5c976d = { + appId: "c5389", + functionId: "inviteFissionhelp", + fn: "inviteFissionhelp", + body: _0x53492a, + appid: "activities_platform", + apid: "activities_platform", + clientVersion: $.UA.split(";")[2], + ver: $.UA.split(";")[2], + client: "ios", + cl: "ios", + user: $.UserName, + t: Date.now(), + code: 1, + xcr: 1, + ua: $.UA }; - let _0x4f17ab = bdy_0x140cd8(_0x142e65) + _0x40f902 + bdy_0x140cd8({ - size: 10 - _0x230e0b, - num: _0x3b1ea7 - }) + _0x230e0b, - _0x11faac = _0x4f17ab.split(""), - _0x144b7a = _0x11faac.slice(0, 15), - _0x3e96e1 = _0x11faac.slice(15), - _0x577703 = []; - for (; _0x144b7a.length > 0;) { - _0x577703.push((35 - parseInt(_0x144b7a.pop(), 36)).toString(36)); - } - _0x577703 = _0x577703.concat(_0x3e96e1); - let _0x42c92e = _0x577703.join(""); - return _0x42c92e; -} -function bdy_0x439df7(_0x160156) { - let _0x240069 = _0x160156.size, - _0xf9e3e7 = _0x160156.num, - _0x37111b = ""; - for (; _0x240069--;) { - _0x37111b += _0xf9e3e7[Math.random() * _0xf9e3e7.length | 0]; - } - return _0x37111b; -} -class bdy_0x5c8ef6 { - constructor(_0x1e6889, _0x1f1cff, _0x2a2386) { - this[_0x1e6889] = _0x1e6889; - this.ua = _0x1f1cff; - this.fp = _0x2a2386 || this.__genFp(); - } - __genFp() { - let _0x2cf519 = "0123456789", - _0x5d65c9 = 13, - _0x429a7a = ""; - for (; _0x5d65c9--;) { - _0x429a7a += _0x2cf519[Math.random() * _0x2cf519.length | 0]; - } - return (_0x429a7a + Date.now()).slice(0, 16); + _0x53492a = await bdy_0x26904d.getbody(_0x5c976d); + if (!_0x53492a) { + return; } - async __genAlgo() { - this.time = Date.now(); - this.timestamp = format(this.time, "yyyyMMddHHmmssSSS"); - let { - data: _0x5777ce - } = await axios.post("https://cactus.jd.com/request_algo?g_ty=ajax", { - version: "4.7", - fp: this.fp, - appId: this[appId].toString(), - timestamp: this.time, - platform: "web", - expandParams: "" - }, { - headers: { - Host: "cactus.jd.com", - accept: "application/json", - "content-type": "application/json", - "user-agent": this.ua + return new Promise(async _0x43b1aa => { + $.dpost(bdy_0x15f0f3(_0x53492a), async (_0x32aecb, _0x570185, _0x3020f) => { + try { + if (_0x32aecb) { + console.log("" + JSON.stringify(_0x32aecb)); + console.log("help请求失败,请检查网路重试"); + _0x32aecb.includes("403") && ($.banip = true); + } else { + _0x3020f = JSON.parse(_0x3020f); + if (_0x3020f.code == 0) { + if (!_0x3020f.data.helpFlg) { + $.log("结果:不能助力自己!"); + return; + } + if (_0x3020f.data.helpResult == 1) { + $.suc++; + console.log("结果:助力成功 ✅ " + ($.suc || "")); + } else { + if (_0x3020f.data.helpResult == 6) { + console.log("结果:已经助力过TA!"); + } else { + if (_0x3020f.data.helpResult == 3) { + console.log("结果:没有次数!"); + } else { + if (_0x3020f.data.helpResult == 2) { + $.log("结果:太火爆了 💣"); + $.hot = true; + } else { + if (_0x3020f.data.helpResult == 4) { + $.log("结果:没有助力次数!"); + } else { + _0x3020f.data.helpResult == 8 ? $.log("结果:TA未开启新的一轮 💤") : console.log("结果:" + _0x3020f.data?.["helpResult"]); + } + } + } + } + } + } else { + console.log(_0x3020f.errMsg); + } + } + } catch (_0x468f10) { + $.logErr(_0x468f10, _0x570185); + } finally { + _0x43b1aa(_0x3020f); } }); - this.tk = _0x5777ce.data.result.tk; - this.rd = _0x5777ce.data.result.algo.match(/rd='(.*)'/)[1]; - this.enc = _0x5777ce.data.result.algo.match(/algo\.(.*)\(/)[1]; - } - __genKey(_0x22203e, _0x5ea650, _0x2d7532, _0x436038, _0x3316db) { - let _0x2dea5c = "" + _0x22203e + _0x5ea650 + _0x2d7532 + _0x436038 + this.rd; - return _0x3316db[this.enc](_0x2dea5c, _0x22203e); - } - __genH5st(_0x3490a5) { - let _0x2b3506 = this.__genKey(this.tk, this.fp, this.timestamp, this[appId], CryptoJS).toString(CryptoJS.enc.Hex), - _0x21ba18 = ""; - for (let _0x43411e of Object.keys(_0x3490a5)) { - _0x43411e === "body" ? _0x21ba18 += _0x43411e + ":" + CryptoJS.SHA256(_0x3490a5[_0x43411e]).toString(CryptoJS.enc.Hex) + "&" : _0x21ba18 += _0x43411e + ":" + _0x3490a5[_0x43411e] + "&"; - } - _0x21ba18 = _0x21ba18.slice(0, -1); - _0x21ba18 = CryptoJS.HmacSHA256(_0x21ba18, _0x2b3506).toString(CryptoJS.enc.Hex); - return encodeURIComponent(this.timestamp + ";" + this.fp + ";" + this[appId].toString() + ";" + this.tk + ";" + _0x21ba18 + ";3.0;" + this.time.toString()); - } + }); } -bdy_0x79d404(1); -async function bdy_0x57852c() { - let { - body: _0x43a7ea, - ua: _0x3d90e9, - user: _0x127f65, - clientVersion: _0x52291f, - client: _0x3d4502, - functionId: _0x490c82, - appId: _0x38def1, - code: _0xd22a01, - appid: _0x24243f, - xcr: _0x348f9a, - nco: _0x1892d2 - } = arguments[0]; - const _0x14350d = { - size: _0x1892d2 || 12, - type: "max" +async function bdy_0x5648ae(_0x53e63d, _0x368e18) { + let _0x5eacca = "functionId=apCashWithDraw&body={\"linkId\":\"wDNvX5t2N52cWEM8cLOa0g\",\"businessSource\":\"NONE\",\"base\":{\"id\":" + _0x53e63d.id + ",\"business\":\"fission\",\"poolBaseId\":" + _0x53e63d.poolBaseId + ",\"prizeGroupId\":" + _0x53e63d.prizeGroupId + ",\"prizeBaseId\":" + _0x53e63d.prizeBaseId + ",\"prizeType\":4}}&t=" + Date.now() + "&appid=activities_platform&client=ios&clientVersion=" + $.UA.split(";")[2]; + const _0x243c52 = { + Host: "api.m.jd.com", + Origin: "https://pro.m.jd.com", + Referer: "https://pro.m.jd.com/", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": $.UA, + Cookie: bdy_0x3f614c + }; + const _0x1d3845 = { + url: "https://api.m.jd.com/api", + body: _0x5eacca, + headers: _0x243c52 }; - let _0x35dbd2 = bdy_0x419a9e(_0x14350d), - _0x4664d4 = bdy_0x419a9e({ - size: _0x1892d2 || 12, - type: "max" + return new Promise(async _0x38725b => { + $.dpost(_0x1d3845, async (_0x1afa61, _0x1502b4, _0x1d0cf3) => { + try { + if (_0x1afa61) { + console.log("" + JSON.stringify(_0x1afa61)); + console.log("apCashWithDraw请求失败,请检查网路重试"); + if (_0x1afa61.includes("403")) { + $.banip = true; + } + } else { + _0x1d0cf3 = JSON.parse(_0x1d0cf3); + if (_0x1d0cf3.code == 0) { + if (_0x1d0cf3.data.message.indexOf("待发放") > -1) { + process.stdout.write("" + (!$.txfail ? "❌" : "❌ ")); + $.txfail = true; + } else { + if (_0x1d0cf3.data.message.includes("上限")) { + !bdy_0x3f4fe2 && process.stdout.write("♻️ "); + $.txfull = true; + $.txfail = false; + } else { + _0x1d0cf3.data.message.includes("提现") ? (process.stdout.write("✔️ "), $.txsuc.push(_0x368e18), $.txfail = false) : console.log(_0x1d0cf3.data.message); + } + } + } else { + console.log(_0x1d0cf3.errMsg); + } + } + } catch (_0x425a91) { + $.logErr(_0x425a91, _0x1502b4); + } finally { + _0x38725b(_0x1d0cf3 || ""); + } }); - (!bdy_0x29f152[_0x38def1] || _0x348f9a || bdy_0x29f152[_0x38def1].user != _0x127f65) && (bdy_0x29f152[_0x38def1] = {}, bdy_0x29f152[_0x38def1].fp = bdy_0x5af17e()); - _0x43a7ea = typeof _0x43a7ea !== "string" ? JSON.stringify(_0x43a7ea) : _0x43a7ea; - let _0xbac045 = ["wc", "wd", "l", "ls", "ml", "pl", "av", "ua", "sua", "pp", "extend", "pp1", "w", "h", "ow", "oh", "url", "og", "pf", "pr", "re", "random"], - _0x58cb5c = {}; - const _0x5ac92d = { - wd: 0, - l: 0, - ls: 0, - wk: 0, - bu1: "0.1.7", - bu2: -1, - bu3: 50, - bu4: 0, - b5: 0 + }); +} +async function bdy_0x34cca5(_0x3e5603, _0x5d05aa) { + let _0x1d521e = "functionId=apRecompenseDrawPrize&body={\"drawRecordId\":" + _0x3e5603.id + ",\"business\":\"fission\",\"poolId\":" + _0x3e5603.poolBaseId + ",\"prizeGroupId\":" + _0x3e5603.prizeGroupId + ",\"prizeId\":" + _0x3e5603.prizeBaseId + ",\"linkId\":\"wDNvX5t2N52cWEM8cLOa0g\"}&t=" + Date.now() + "&appid=activities_platform&client=ios&clientVersion=" + $.UA.split(";")[2]; + const _0x1bf936 = { + Host: "api.m.jd.com", + Origin: "https://pro.m.jd.com", + Referer: "https://pro.m.jd.com/", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": $.UA, + Cookie: bdy_0x3f614c }; - let _0x3f6ffe = [1, 0, "zh-CN", "zh-CN,en-US", 0, 0, _0x3d90e9.match(/(?<=\/)[0-9]\.0[^'"\n]+/g)[0], _0x3d90e9, _0x3d90e9.match(/\(([^\)]+)\)/)[1], {}, _0x5ac92d, "", 393, 873, 393, 779, "", "", "", 2.75, "", _0x35dbd2]; - for (let _0x18d2ec in _0xbac045) { - _0x58cb5c[_0xbac045[_0x18d2ec]] = _0x3f6ffe[_0x18d2ec]; - } - const _0x595aae = { - referer: "", - v: "h5_file_v4.7.4", - ai: _0x38def1, - fp: bdy_0x29f152[_0x38def1].fp + const _0x27efab = { + url: "https://api.m.jd.com/api", + body: _0x1d521e, + headers: _0x1bf936 }; - const _0x5bcb74 = { - ..._0x58cb5c, - ..._0x595aae + return new Promise(async _0x1e8cb3 => { + $.dpost(_0x27efab, async (_0x4a3a9a, _0x5c9163, _0x1ab69f) => { + try { + if (_0x4a3a9a) { + console.log("" + JSON.stringify(_0x4a3a9a)); + console.log("apRecompenseDrawPrize 请求失败,请检查网路重试"); + _0x4a3a9a.includes("403") && ($.banip = true); + } else { + _0x1ab69f = JSON.parse(_0x1ab69f); + if (_0x1ab69f.code == 0) { + if (_0x1ab69f.data.resCode === "0") { + process.stdout.write("🧧 "); + $.toredsuc.push(_0x5d05aa); + } else { + process.stdout.write("❎ "); + $.toredfailnum++; + } + } else { + if (_0x1ab69f.errMsg === "失败") { + process.stdout.write("❎ "); + $.toredfailnum++; + } else { + console.log(_0x1ab69f.errMsg); + } + } + } + } catch (_0x9fcdc9) { + $.logErr(_0x9fcdc9, _0x5c9163); + } finally { + _0x1e8cb3(_0x1ab69f); + } + }); + }); +} +function bdy_0x15f0f3(_0x465e36) { + const _0x94f4f6 = { + Accept: "application/json, text/plain, */*", + "x-rp-client": "h5_1.0.0", + "Content-type": "application/x-www-form-urlencoded", + "User-Agent": $.UA, + "x-referer-page": "https://pro.m.jd.com/", + Origin: "https://pro.m.jd.com", + "X-Requested-With": "com.jingdong.app.mall", + Referer: "https://pro.m.jd.com/", + "Accept-Encoding": "gzip, deflate, br", + "Accept-language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7", + Cookie: bdy_0x3f614c }; - let _0x58c599 = _0x5bcb74, - _0x21becf = new Date().getTime(); - bdy_0x29f152[_0x38def1].tk = bdy_0x2e7a50(bdy_0x29f152[_0x38def1].fp); - bdy_0x29f152[_0x38def1].user = _0x127f65; - let _0x2b8af9 = new Date().getTime(), - _0x3a2ff8 = bdy_0x1cee52(_0x2b8af9, "yyyyMMddhhmmssSSS"), - _0x1fb9fb = _0x3a2ff8 + "47", - _0x36887f = bdy_0x4414d0(bdy_0x29f152[_0x38def1].tk, bdy_0x29f152[_0x38def1].fp, _0x1fb9fb, _0x38def1); - const _0x25a394 = { - appid: _0x24243f, - functionId: _0x490c82, - body: _0x43a7ea + const _0x1f803e = { + url: "https://api.m.jd.com/api?" + _0x465e36, + headers: _0x94f4f6 }; - _0xd22a01 && (_0x25a394.t = _0x21becf); - _0x52291f && (_0x25a394.clientVersion = _0x52291f); - _0x3d4502 && (_0x25a394.client = _0x3d4502); - let _0x166f6b = _0x25a394, - _0x5a167a = ["appid", "body", "client", "clientVersion", "functionId", "t"], - _0x5cf746 = _0x5a167a.filter(_0x77da4a => _0x25a394[_0x77da4a]).map(_0x39c394 => _0x39c394 + ":" + (_0x39c394 == "body" ? bdy_0x2dc142.SHA256(_0x25a394[_0x39c394]).toString() : _0x25a394[_0x39c394])).join("&"), - _0x37c196 = bdy_0x2dc142.MD5(_0x36887f + _0x5cf746 + _0x36887f + "7n5 { + const _0x30d9d9 = { + Cookie: bdy_0x3f614c, + referer: "https://h5.m.jd.com/", + "User-Agent": $.UA }; - _0x3b85e7.pp.p1 = _0x127f65; - const _0x1a3625 = { - wd: 0, - l: 0, - ls: 0, - wk: 0, - bu1: "0.1.7", - bu2: -1, - bu3: 75, - bu4: 0, - bu5: 0, - bu6: 20 - }; - _0x3b85e7.extend = _0x1a3625; - _0x3b85e7.random = _0x4664d4; - _0x3b85e7.v = "h5_file_v4.7.4"; - _0x3b85e7.fp = bdy_0x29f152[_0x38def1].fp; - let _0x2bed59 = bdy_0x2dc142.AES.encrypt(JSON.stringify(_0x3b85e7, null, 2), bdy_0x2dc142.enc.Utf8.parse("X[FMV04Nfvd?Y6M_"), { - iv: bdy_0x2dc142.enc.Utf8.parse("0102030405060708"), - mode: bdy_0x2dc142.mode.CBC, - padding: bdy_0x2dc142.pad.Pkcs7 + const _0x5abc04 = { + url: "https://plogin.m.jd.com/cgi-bin/ml/islogin", + headers: _0x30d9d9, + timeout: 10000 + }; + $.get(_0x5abc04, (_0x1f918f, _0x18438d, _0x177f3d) => { + try { + if (_0x177f3d) { + _0x177f3d = JSON.parse(_0x177f3d); + if (!(_0x177f3d.islogin === "1")) { + _0x177f3d.islogin === "0" && ($.isLogin = false); + } + } + } catch (_0x4bbaa4) { + console.log(_0x4bbaa4); + } finally { + _0x113d0c(); + } + }); }); - _0x5509b7 = bdy_0xea2f35(_0x2bed59); - let _0x59bf39 = [_0x3a2ff8, bdy_0x29f152[_0x38def1].fp, _0x38def1, bdy_0x29f152[_0x38def1].tk, _0x37c196, 4.7, _0x2b8af9, _0x5509b7, _0x49836a].join(";"), - _0x4a84bc = Object.entries(_0x166f6b).map(([_0x252d96, _0x4d7084]) => _0x252d96 + "=" + (typeof _0x4d7084 == "string" ? encodeURIComponent(_0x4d7084) : encodeURIComponent(JSON.stringify(_0x4d7084)))).join("&"); - return _0x4a84bc + "&h5st=" + encodeURIComponent(_0x59bf39); } -function bdy_0xea2f35(_0x139119) { - let _0x1f29f7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").filter(Boolean), - _0x709710 = "WVUTSRQPONMLKJIHGFEDCBA-_9876543210zyxwvutsrqponmlkjihgfedcbaZYX".split("").filter(Boolean), - _0xf320b4 = Object.fromEntries(_0x1f29f7.map((_0x64f85f, _0x487993) => [_0x64f85f, _0x709710[_0x487993]])), - _0x9115f9 = _0x139119.ciphertext.toString(); - var _0x25e96a = 3 - _0x139119.ciphertext.sigBytes % 3; - for (let _0x1e80ca of Array(_0x25e96a)) { - _0x9115f9 += "0" + _0x25e96a; +function bdy_0x2357e0() { + return new Promise(_0x529c45 => { + !bdy_0x4952f3 ? $.msg($.name, "", "" + bdy_0x4ef907) : $.log("京东账号" + $.index + $.nickName + "\n" + bdy_0x4ef907); + _0x529c45(); + }); +} +function bdy_0x569d7e(_0x20cc97) { + try { + if (typeof JSON.parse(_0x20cc97) == "object") { + return true; + } + } catch (_0x1374a0) { + console.log(_0x1374a0); + console.log("京东服务器访问数据为空,请检查自身设备网络情况"); + return false; } - let _0x2bd16f = new Buffer.from(_0x9115f9, "hex").toString("Base64").split("").reverse().join(""); - return _0x2bd16f.split("").map(_0x164a18 => _0xf320b4[_0x164a18] || _0x164a18).join("").replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } -function bdy_0x1d49a3(_0x3c5861, _0x516d37 = () => {}) { - const { - url: _0x4fe5de, - ..._0x2aafe6 - } = _0x3c5861; - bdy_0x4ef7cc.post(_0x4fe5de, _0x2aafe6).then(_0x478402 => { - const { - statusCode: _0x3b85ab, - statusCode: _0x227e9c, - headers: _0x153823, - body: _0x16ba59 - } = _0x478402, - _0x19224d = { - status: _0x3b85ab, - statusCode: _0x227e9c, - headers: _0x153823, - body: _0x16ba59 - }; - _0x516d37(null, _0x19224d, _0x16ba59); - }, _0x5f4413 => { - const { - message: _0x3aa8ea, - response: _0x54002b - } = _0x5f4413; - _0x516d37(_0x3aa8ea, _0x54002b, _0x54002b && _0x54002b.body); +function bdy_0x31f0e6() { + const _0x2ceb12 = { + url: "https://src-dy-server-dmujhfwxmu.cn-hangzhou.fcapp.run/zzhb2", + timeout: 30000 + }; + return new Promise(_0x398524 => { + $.get(_0x2ceb12, async (_0x3fdbbf, _0x446e48, _0x20138f) => { + try { + if (_0x3fdbbf) { + console.log("\n服务连接失败,终止执行!"); + process.exit(111); + } else { + if (_0x20138f) { + _0x20138f = JSON.parse(_0x20138f); + if (_0x20138f.code === 200) { + bdy_0xf6c626 = _0x20138f.data; + } + } + } + } catch (_0x531f52) { + $.logErr(_0x531f52, _0x446e48); + } finally { + _0x398524(bdy_0xf6c626); + } + }); }); } -const bdy_0x4744e6 = { - getbody: bdy_0x57852c, - H5ST: bdy_0x5c8ef6 -}; -module.exports = bdy_0x4744e6; \ No newline at end of file +function bdy_0x494669(_0x24d9b6) { + const _0x4a4d52 = _0x24d9b6.getFullYear(), + _0x1789f5 = ("0" + (_0x24d9b6.getMonth() + 1)).slice(-2), + _0x2c9b3c = ("0" + _0x24d9b6.getDate()).slice(-2), + _0x2f258a = ("0" + _0x24d9b6.getHours()).slice(-2), + _0x25e974 = ("0" + _0x24d9b6.getMinutes()).slice(-2), + _0xcb8991 = ("0" + _0x24d9b6.getSeconds()).slice(-2); + return _0x4a4d52 + "/" + _0x1789f5 + "/" + _0x2c9b3c + " " + _0x2f258a + ":" + _0x25e974 + ":" + _0xcb8991; +} +function bdy_0x505699(_0x180040) { + if (typeof _0x180040 == "string") { + try { + return JSON.parse(_0x180040); + } catch (_0xf3974b) { + console.log(_0xf3974b); + $.msg($.name, "", "请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie"); + return []; + } + } +} \ No newline at end of file diff --git a/output.py b/output.py index e51ce19cf..979b8a336 100644 --- a/output.py +++ b/output.py @@ -1,4 +1,4 @@ -#2024-08-05 01:40:31 +#2024-08-05 01:57:02 import requests import os import time