《封号码罗》关于js逆向猿人学第二题cookies里面m值的获取[纯扣算法](二十六)

news2025/1/7 5:54:42

这一题有点儿误打误撞的感觉。
在这里插入图片描述
本题使用了抓包工具Fiddler,m值在cookie里面,而且这个cookie是本地生成的
在这里插入图片描述
抓包发现有两次请求,第一次返回了一堆JS,而且cookie里面没有m值,第二次请求就带上了m值,所以m应该是返回的JS生成的,所以对返回的JS复制下来进行分析
在这里插入图片描述
复制下来之后就是一堆这玩意儿,不太好读代码,先用工具解混淆
在这里插入图片描述

然后代码就容易阅读了
在这里插入图片描述

分析代码,先看看cookie的格式

document["cookie"] = "m" + _0x18af09() + "=" + _0x102a4a(_0xa9034b) + "|" + _0xa9034b + "; path=/";
m=777a08f281273fa63d279a12282a27c5|1684832974000

从上面就可以分析出来:_0x18af09()这个肯定返回了一个空字符串,所以重点应该是_0x102a4a(_0xa9034b),它生成了m前段的值,_0x102a4a这个函数接收的参数,是一个时间戳

在这里插入图片描述
用颜色区分,更容易观察_0x18af09这个方法既然返回了一个空,会不会内部有别的操作,查看这个函数发现,它是对代码是否格式化的检测,是反爬虫调试的,所以这个方法的调用全部注释掉,然后把自执行函数修改删除,整理之后的代码:

qz = [10, 99, 111, 110, 115, 111, 108, 101, 32, 61, 32, 110, 101, 119, 32, 79, 98, 106, 101, 99, 116, 40, 41, 10, 99, 111, 110, 115, 111, 108, 101, 46, 108, 111, 103, 32, 61, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 40, 115, 41, 32, 123, 10, 32, 32, 32, 32, 119, 104, 105, 108, 101, 32, 40, 49, 41, 123, 10, 32, 32, 32, 32, 32, 32, 32, 32, 102, 111, 114, 40, 105, 61, 48, 59, 105, 60, 49, 49, 48, 48, 48, 48, 48, 59, 105, 43, 43, 41, 123, 10, 32, 32, 32, 32, 32, 32, 32, 32, 104, 105, 115, 116, 111, 114, 121, 46, 112, 117, 115, 104, 83, 116, 97, 116, 101, 40, 48, 44, 48, 44, 105, 41, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 125, 10, 32, 32, 32, 32, 125, 10, 10, 125, 10, 99, 111, 110, 115, 111, 108, 101, 46, 116, 111, 83, 116, 114, 105, 110, 103, 32, 61, 32, 39, 91, 111, 98, 106, 101, 99, 116, 32, 79, 98, 106, 101, 99, 116, 93, 39, 10, 99, 111, 110, 115, 111, 108, 101, 46, 108, 111, 103, 46, 116, 111, 83, 116, 114, 105, 110, 103, 32, 61, 32, 39, 402, 32, 116, 111, 83, 116, 114, 105, 110, 103, 40, 41, 32, 123, 32, 91, 110, 97, 116, 105, 118, 101, 32, 99, 111, 100, 101, 93, 32, 125, 39, 10];

var _0x59ccfb = function () {
    var _0x1b4dea = true;
    return function (_0x259216, _0x3577c6) {
        var _0xbb162d = _0x1b4dea ? function () {
            if (_0x3577c6) {
                var _0x12d896 = _0x3577c6["apply"](_0x259216, arguments);

                _0x3577c6 = null;
                return _0x12d896;
            }
        } : function () {
        };

        _0x1b4dea = false;
        return _0xbb162d;
    };
}();

var _0x18fc8e = function () {
    var _0x3239bd = true;
    return function (_0x326b22, _0x4e96d2) {
        var _0x227598 = _0x3239bd ? function () {
            if (_0x4e96d2) {
                var _0x656b78 = _0x4e96d2["apply"](_0x326b22, arguments);

                _0x4e96d2 = null;
                return _0x656b78;
            }
        } : function () {
        };

        _0x3239bd = false;
        return _0x227598;
    };
}();

function _0x14c966(_0x194910, _0x173b58) {
    var _0x260bc5 = (65535 & _0x194910) + (65535 & _0x173b58);

    return (_0x194910 >> 16) + (_0x173b58 >> 16) + (_0x260bc5 >> 16) << 16 | 65535 & _0x260bc5;
}

function _0x5dfa06(_0x532a20, _0x533aa9) {
    return _0x532a20 << _0x533aa9 | _0x532a20 >>> 32 - _0x533aa9;
}

function _0x3e81cf(_0x2792eb, _0x1d0738, _0x501597, _0x34858a, _0x25d2b3, _0x19aa5a) {
    return _0x14c966(_0x5dfa06(_0x14c966(_0x14c966(_0x1d0738, _0x2792eb), _0x14c966(_0x34858a, _0x19aa5a)), _0x25d2b3), _0x501597);
}

function _0x3a2b5a(_0x151a19, _0x5a4430, _0x2b266e, _0x15b1ee, _0x17080a, _0x49e3f9, _0x5c1555) {
    return _0x3e81cf(_0x5a4430 & _0x2b266e | ~_0x5a4430 & _0x15b1ee, _0x151a19, _0x5a4430, _0x17080a, _0x49e3f9, _0x5c1555);
}

function _0x440c24(_0x369c8e, _0x2f6fcc, _0xef60f4, _0x51bb51, _0x5f270f, _0x14b623, _0xc35404) {
    return _0x3e81cf(_0x2f6fcc & _0x51bb51 | _0xef60f4 & ~_0x51bb51, _0x369c8e, _0x2f6fcc, _0x5f270f, _0x14b623, _0xc35404);
}

function _0x5b940e(_0x4d19ec, _0x1595e6) {
    let _0x5e3c9d = [99, 111, 110, 115, 111, 108, 101];
    let _0xb76cea = "";

    for (let _0x508a42 = 0; _0x508a42 < _0x5e3c9d["length"]; _0x508a42++) {
        _0xb76cea += String["fromCharCode"](_0x5e3c9d[_0x508a42]);
    }

    return _0xb76cea;
}

function _0x31fb05(_0xd9e3c1, _0x329f8c, _0x541e60, _0x22212f, _0x5cab07, _0x4e80d7, _0x4571e1) {
    return _0x3e81cf(_0x329f8c ^ _0x541e60 ^ _0x22212f, _0xd9e3c1, _0x329f8c, _0x5cab07, _0x4e80d7, _0x4571e1);
}

function _0x1386af(_0xa56ba0, _0x45215a, _0x29d4f5, _0x28549f, _0xa8a737, _0x4b3f90, _0x3049c4) {
    return _0x3e81cf(_0x29d4f5 ^ (_0x45215a | ~_0x28549f), _0xa56ba0, _0x45215a, _0xa8a737, _0x4b3f90, _0x3049c4);
}

function _0x4663ee(_0xaed4be, _0x6dee0e) {
    if (_0x6dee0e) {
        return _0x1386af(_0xaed4be);
    }

    return _0x5b940e(_0xaed4be);
}

function _0x8043ca(_0x3e86ac, _0x28fb3c) {
    let _0x5e1dda = "";

    for (let _0x2aa724 = 0; _0x2aa724 < _0x3e86ac["length"]; _0x2aa724++) {
        _0x5e1dda += String["fromCharCode"](_0x3e86ac[_0x2aa724]);
    }

    return _0x5e1dda;
}

function _0x18af09(_0x1388af, _0x250fcc) {
    return ""
    var _0x492e01 = _0x59ccfb(this, function () {
        var _0xe6462d = function () {
            var _0x462b61 = _0xe6462d["constructor"]("return /\" + this + \"/")()["compile"]("^([^ ]+( +[^ ]+)+)+[^ ]}");

            return !_0x462b61["test"](_0x492e01);
        };

        return _0xe6462d();
    });

    _0x492e01();

    (function () {
        _0x18fc8e(this, function () {
            var _0x340927 = new RegExp("function *\\( *\\)");

            var _0x4466d1 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", "i");

            var _0xc20892 = $dbsm_0x9b56a8("init");

            if (!_0x340927["test"](_0xc20892 + "chain") || !_0x4466d1["test"](_0xc20892 + "input")) {
                _0xc20892("0");
            } else {
                $dbsm_0x9b56a8();
            }
        })();
    })();

    _0x4663ee();

    qz = [10, 99, 111, 110, 115, 111, 108, 101, 32, 61, 32, 110, 101, 119, 32, 79, 98, 106, 101, 99, 116, 40, 41, 10, 99, 111, 110, 115, 111, 108, 101, 46, 108, 111, 103, 32, 61, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 40, 115, 41, 32, 123, 10, 32, 32, 32, 32, 119, 104, 105, 108, 101, 32, 40, 49, 41, 123, 10, 32, 32, 32, 32, 32, 32, 32, 32, 102, 111, 114, 40, 105, 61, 48, 59, 105, 60, 49, 49, 48, 48, 48, 48, 48, 59, 105, 43, 43, 41, 123, 10, 32, 32, 32, 32, 32, 32, 32, 32, 104, 105, 115, 116, 111, 114, 121, 46, 112, 117, 115, 104, 83, 116, 97, 116, 101, 40, 48, 44, 48, 44, 105, 41, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 125, 10, 32, 32, 32, 32, 125, 10, 10, 125, 10, 99, 111, 110, 115, 111, 108, 101, 46, 116, 111, 83, 116, 114, 105, 110, 103, 32, 61, 32, 39, 91, 111, 98, 106, 101, 99, 116, 32, 79, 98, 106, 101, 99, 116, 93, 39, 10, 99, 111, 110, 115, 111, 108, 101, 46, 108, 111, 103, 46, 116, 111, 83, 116, 114, 105, 110, 103, 32, 61, 32, 39, 402, 32, 116, 111, 83, 116, 114, 105, 110, 103, 40, 41, 32, 123, 32, 91, 110, 97, 116, 105, 118, 101, 32, 99, 111, 100, 101, 93, 32, 125, 39, 10];
    eval(_0x8043ca(qz));

    try {
        if (global) {
            console["log"]("人生苦短,何必python?");
        } else {
            while (1) {
                console["log"]("人生苦短,何必python?");
                debugger;
            }
        }
    } catch (_0x4a1afa) {
        return navigator["vendorSub"];
    }
}

// setInterval(_0x18af09(), 500);

function _0x1fe562(_0x599b70, _0x16a6a9) {
    _0x599b70[_0x16a6a9 >> 5] |= 128 << _0x16a6a9 % 32, _0x599b70[14 + (_0x16a6a9 + 64 >>> 9 << 4)] = _0x16a6a9;

    if (qz) {
        var _0x361523,
            _0x31dd72,
            _0x954427,
            _0x4cb172,
            _0x3bf2cc,
            _0x5dd2eb = 1732584193,
            _0x5793bb = -271733879,
            _0x359294 = -1732584194,
            _0x16e6cd = 271733878;
    } else {
        var _0x361523,
            _0x31dd72,
            _0x954427,
            _0x4cb172,
            _0x3bf2cc,
            _0x5dd2eb = 0,
            _0x5793bb = -0,
            _0x359294 = -0,
            _0x16e6cd = 0;
    }

    for (_0x361523 = 0; _0x361523 < _0x599b70["length"]; _0x361523 += 16) _0x31dd72 = _0x5dd2eb, _0x954427 = _0x5793bb, _0x4cb172 = _0x359294, _0x3bf2cc = _0x16e6cd, _0x5dd2eb = _0x3a2b5a(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523], 7, -680876936), _0x16e6cd = _0x3a2b5a(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 1], 12, -389564586), _0x359294 = _0x3a2b5a(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 2], 17, 606105819), _0x5793bb = _0x3a2b5a(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 3], 22, -1044525330), _0x5dd2eb = _0x3a2b5a(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 4], 7, -176418897), _0x16e6cd = _0x3a2b5a(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 5], 12, 1200080426), _0x359294 = _0x3a2b5a(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 6], 17, -1473231341), _0x5793bb = _0x3a2b5a(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 7], 22, -45705983), _0x5dd2eb = _0x3a2b5a(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 8], 7, 1770010416), _0x16e6cd = _0x3a2b5a(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 9], 12, -1958414417), _0x359294 = _0x3a2b5a(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 10], 17, -42063), _0x5793bb = _0x3a2b5a(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 11], 22, -1990404162), _0x5dd2eb = _0x3a2b5a(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 12], 7, 1804603682), _0x16e6cd = _0x3a2b5a(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 13], 12, -40341101), _0x359294 = _0x3a2b5a(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 14], 17, -1502882290), _0x5793bb = _0x3a2b5a(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 15], 22, 1236535329), _0x5dd2eb = _0x440c24(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 1], 5, -165796510), _0x16e6cd = _0x440c24(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 6], 9, -1069501632), _0x359294 = _0x440c24(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 11], 14, 643717713), _0x5793bb = _0x440c24(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523], 20, -373897302), _0x5dd2eb = _0x440c24(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 5], 5, -701558691), _0x16e6cd = _0x440c24(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 10], 9, 38016083), _0x359294 = _0x440c24(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 15], 14, -660478335), _0x5793bb = _0x440c24(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 4], 20, -405537848), _0x5dd2eb = _0x440c24(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 9], 5, 568446438), _0x16e6cd = _0x440c24(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 14], 9, -1019803690), _0x359294 = _0x440c24(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 3], 14, -187363961), _0x5793bb = _0x440c24(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 8], 20, 1163531501), _0x5dd2eb = _0x440c24(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 13], 5, -1444681467), _0x16e6cd = _0x440c24(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 2], 9, -51403784), _0x359294 = _0x440c24(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 7], 14, 1735328473), _0x5793bb = _0x440c24(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 12], 20, -1926607734), _0x5dd2eb = _0x31fb05(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 5], 4, -378558), _0x16e6cd = _0x31fb05(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 8], 11, -2022574463), _0x359294 = _0x31fb05(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 11], 16, 1839030562), _0x5793bb = _0x31fb05(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 14], 23, -35309556), _0x5dd2eb = _0x31fb05(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 1], 4, -1530992060), _0x16e6cd = _0x31fb05(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 4], 11, 1272893353), _0x359294 = _0x31fb05(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 7], 16, -155497632), _0x5793bb = _0x31fb05(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 10], 23, -1094730640), _0x5dd2eb = _0x31fb05(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 13], 4, 681279174), _0x16e6cd = _0x31fb05(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523], 11, -358537222), _0x359294 = _0x31fb05(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 3], 16, -722521979), _0x5793bb = _0x31fb05(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 6], 23, 76029189), _0x5dd2eb = _0x31fb05(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 9], 4, -640364487), _0x16e6cd = _0x31fb05(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 12], 11, -421815835), _0x359294 = _0x31fb05(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 15], 16, 530742520), _0x5793bb = _0x31fb05(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 2], 23, -995338651), _0x5dd2eb = _0x1386af(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523], 6, -198630844), _0x16e6cd = _0x1386af(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 7], 10, 1126891415), _0x359294 = _0x1386af(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 14], 15, -1416354905), _0x5793bb = _0x1386af(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 5], 21, -57434055), _0x5dd2eb = _0x1386af(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 12], 6, 1700485571), _0x16e6cd = _0x1386af(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 3], 10, -1894986606), _0x359294 = _0x1386af(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 10], 15, -1051523), _0x5793bb = _0x1386af(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 1], 21, -2054922799), _0x5dd2eb = _0x1386af(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 8], 6, 1873313359), _0x16e6cd = _0x1386af(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 15], 10, -30611744), _0x359294 = _0x1386af(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 6], 15, -1560198380), _0x5793bb = _0x1386af(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 13], 21, 1309151649), _0x5dd2eb = _0x1386af(_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd, _0x599b70[_0x361523 + 4], 6, -145523070), _0x16e6cd = _0x1386af(_0x16e6cd, _0x5dd2eb, _0x5793bb, _0x359294, _0x599b70[_0x361523 + 11], 10, -1120210379), _0x359294 = _0x1386af(_0x359294, _0x16e6cd, _0x5dd2eb, _0x5793bb, _0x599b70[_0x361523 + 2], 15, 718787259), _0x5793bb = _0x1386af(_0x5793bb, _0x359294, _0x16e6cd, _0x5dd2eb, _0x599b70[_0x361523 + 9], 21, -343485441), _0x5dd2eb = _0x14c966(_0x5dd2eb, _0x31dd72), _0x5793bb = _0x14c966(_0x5793bb, _0x954427), _0x359294 = _0x14c966(_0x359294, _0x4cb172), _0x16e6cd = _0x14c966(_0x16e6cd, _0x3bf2cc);

    return [_0x5dd2eb, _0x5793bb, _0x359294, _0x16e6cd];
}

function _0x2346e9(_0x4d9284) {
    var _0x1fd9c9,
        _0x4b8675 = "",
        _0x2f47db = 32 * _0x4d9284["length"];

    for (_0x1fd9c9 = 0; _0x1fd9c9 < _0x2f47db; _0x1fd9c9 += 8) _0x4b8675 += String["fromCharCode"](_0x4d9284[_0x1fd9c9 >> 5] >>> _0x1fd9c9 % 32 & 255);

    return _0x4b8675;
}

function _0x27ac36(_0x22c48b) {
    var _0x577c64,
        _0x12d6a3 = [];

    for (_0x12d6a3[(_0x22c48b["length"] >> 2) - 1] = undefined, _0x577c64 = 0; _0x577c64 < _0x12d6a3["length"]; _0x577c64 += 1) _0x12d6a3[_0x577c64] = 0;

    var _0x178524 = 8 * _0x22c48b["length"];

    for (_0x577c64 = 0; _0x577c64 < _0x178524; _0x577c64 += 8) _0x12d6a3[_0x577c64 >> 5] |= (255 & _0x22c48b["charCodeAt"](_0x577c64 / 8)) << _0x577c64 % 32;

    return _0x12d6a3;
}

function _0x27ecce(_0x3b44de) {
    return _0x2346e9(_0x1fe562(_0x27ac36(_0x3b44de), 8 * _0x3b44de["length"]));
}

function _0x463191(_0x3c0f1f) {
    var _0xe992bf,
        _0x201108,
        _0x1f0b5c = "0123456789abcdef",
        _0xad0964 = "";

    for (_0x201108 = 0; _0x201108 < _0x3c0f1f["length"]; _0x201108 += 1) _0xe992bf = _0x3c0f1f["charCodeAt"](_0x201108), _0xad0964 += _0x1f0b5c["charAt"](_0xe992bf >>> 4 & 15) + _0x1f0b5c["charAt"](15 & _0xe992bf);

    return _0xad0964;
}

function _0x2f7178(_0x350477) {
    return unescape(encodeURIComponent(_0x350477));
}

function _0x569bb2(_0x2d13e0) {
    return _0x27ecce(_0x2f7178(_0x2d13e0));
}

function _0x2da53f(_0x36e146) {
    return _0x463191(_0x569bb2(_0x36e146));
}

function _0x102a4a(_0x48c91d, _0x1d3f1f, _0x56b51e) {
    // _0x18af09();
    if (_0x1d3f1f) {
        if (_0x56b51e) {
            return _0x5b940e(_0x1d3f1f, _0x48c91d);
        } else {
            return y(_0x1d3f1f, _0x48c91d);
        }
    } else if (_0x56b51e) {
        return _0x569bb2(_0x48c91d);
    } else {
        return _0x2da53f(_0x48c91d);
    }
    // return _0x1d3f1f ? _0x56b51e ? _0x5b940e(_0x1d3f1f, _0x48c91d) : y(_0x1d3f1f, _0x48c91d) : _0x56b51e ? _0x569bb2(_0x48c91d) : _0x2da53f(_0x48c91d);
}

function _0x1208e3(_0xa9034b, _0x12cfdf) {
    // var cookie = "m" + _0x18af09() + "=" + _0x102a4a(_0xa9034b) + "|" + _0xa9034b + "; path=/";
    var cookie ={};
    cookie["m"] = _0x102a4a(_0xa9034b) + "|" + _0xa9034b
    // location["reload"]();
    return cookie
}

function _0x413192(_0x406c9e, _0x773f57) {
    return Date["parse"](new Date());
}


function get_js_m() {
    var m = _0x1208e3(_0x413192());
    // console.log(m);
    return m["m"]
}

get_js_m()
# -*-coding: utf-8 -*-
# @Time    : 2023/5/23 17:44
# @Author  : allen
# @File    : match_01.py
# @Software: PyCharm
import os
import execjs
import requests
import jsonpath

os.environ["EXECJS_RUNTIME"] = "Node"

headers = {
    'User-Agent': 'yuanrenxue.project'
}


def get_m():
    ctx = execjs.compile(open("match_03.js", encoding="utf-8").read())
    data = ctx.call('get_js_m')
    return data


# get_m()

value = 0
for index in range(1, 6):
    m = get_m()
    cookies = {
        "m": m
    }
    url = f"https://match.yuanrenxue.cn/api/match/2?page={index}"
    res = requests.get(url, headers=headers, cookies=cookies).json()
    print(res)
    value += sum(jsonpath.jsonpath(res, '$..value'))
print(value / 50)

在这里插入图片描述
坑1:定时器和debugger函数直接删
在这里插入图片描述
坑2:也不算是坑,只是不太方便读的三元表达式,转化成if-else更方便读
在这里插入图片描述
这一点:chatGPT能帮忙解决
在这里插入图片描述
需要chatGPT账号的,可以联系作者获取,微信:gcw-410,昵称:浅情人不知,备注:chatGPT

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/562009.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

信号完整性分析基础知识之传输线和反射(七):带负载传输线、感性不连续引起的反射

带负载传输线 如果在传输线上有一个小的容性负载&#xff0c;信号会出现失真&#xff0c;上升时间也会降低。每个分立电容都会降低信号在其附近看到的阻抗。如果传输线上分布有多个容性负载&#xff08;例如一个总线上每隔1.2inch有一个2pF的连接器残桩&#xff0c;或者一个内…

单模光纤一维模场分布的MATLAB仿真

根据已知的单模光纤电场z分量分布&#xff0c;可以用MATLAB展示一维的模场分布 具体来说&#xff0c;通过数值计算解出给定光纤&#xff08;n_1&#xff0c;n_2&#xff0c;a&#xff09;参数时对应的V参量 通过特征方程解出V对应的W和U 通过这三个参数带入到光场的表达式中…

07. 算法之一致性哈希算法介绍

前言 哈希算法在程序开发中的很多地方都能看到他的身影&#xff0c;但是哈希有他的局限性&#xff0c;比如如果两个key哈希到同一个位置的时候&#xff0c;此时就不好处理。本节我们介绍一下常规处理方式。 1. 什么是哈希算法 哈希算法将任意长度的二进制值映射为较短的固定…

界面控件DevExtreme使用指南 - 如何自定义上下文菜单和工具栏

DevExtreme File Manager&#xff08;文件管理器&#xff09;小部件现在支持自定义内置的工具栏和上下文菜单&#xff0c;用户可以使用标准和定义的命令项填充项目集合&#xff0c;并配置设置来更改其外观和操作。 DevExtreme拥有高性能的HTML5 / JavaScript小部件集合&#x…

基于Keras-YOLO实现目标检测

Keras-YOLO 3项目使用Python语言实现了YOLO v3网络模型&#xff0c;并且可以导入Darknet网络预先训练好的权重文件信息直接使用网络进行目标识别。 1. 下载Keras-YOLO 3项目 执行如下命令下载Keras-YOLO 3项目代码&#xff1a; git clone https://github.com/qqwweee/keras-…

直播和短视频美颜sdk的开发流程、代码分析

目前&#xff0c;美颜技术是提高视频质量的重要手段之一&#xff0c;特别是短视频和直播两个行业。本文将介绍其开发流程和代码分析。 一、美颜SDK的开发流程 1.需求分析 首先我们需要明确的一点就是“需求”&#xff0c;例如&#xff1a;美颜效果、美颜程度、性能要求等。同…

解决找不到微信支付V3版本公钥问题

参考微信文档链接为签名验证-接口规则 | 微信支付商户平台文档中心 写的内容特别不明显&#xff0c;往下面看会找到 下载openssl工具使用命令从私钥证书中导出即可。

地图在线编辑平台,无基础轻松实现私域地图

位构云平台让用户轻松构建诸如空间信息管理、建筑信息管理及三维空间数据可视化、导航等类型应用的多平台、综合型地图引擎&#xff0c;基于OpenGLES/WebGL三维可视化技术体系的自主研发图形引擎&#xff0c;可以让开发者轻松构建运行在 Web、Android、iOS 等多平台的应用程序。…

安捷伦DSO80404B(Agilent)dso80404b租售回收 数字示波器

DSO80404B 是 Agilent 的 4 GHz、4 通道数字示波器。测量电子电路或组件中随时间变化的电压或电流信号&#xff0c;以显示振幅、频率和上升时间等。应用包括故障排除、生产测试和设计。 附加功能&#xff1a; 4 GHz 带宽&#xff0c;可升级至 13 GHz 4个模拟通道 高达 40 G…

day10 前端技术-HTMLCSS

HTML 含义:超文本标记语言,静态网页,用于在浏览器显示数据 双标签:<> </>,开始标签和结束标签同时出现 单标签: 属性名:属性后面的值都加双引号 常用的HTML标签 :文档的根标签 :HTML页面的头部标签 “”:页面标题 “”:页面主体部分 “ “ “ 到 ”:标题…

『树莓派云台机器人』02. 电脑连接树莓派 配置开发环境

目录 1. 下载ssh交互工具 Xshell 与XFTP&#xff08;有过相关使用经历的朋友可以跳过这一节内容&#xff09;2. 下载VNC远程控制工具软件3. 连接过程4. Xshell 命令工具5. XFTP 文件传送工具6. 关于联网总结 欢迎关注 『树莓派云台机器人』 博客&#xff0c;持续更新中 欢迎关注…

PoseiSwap IDO在Bounce上启动在即,如何参与?

目前&#xff0c;Nautilus Chain 生态基本完成测试&#xff0c;并即将在不久上线主网。PoseiSwap 作为 Nautilus Chain 上的首个 DEX&#xff0c;也即将面向市场并上线正式版本。我们看到&#xff0c; PoseiSwap 也正式发布了新的市场进程&#xff0c;基于其治理代币 POSE 的 I…

转辙机介绍

简介 转辙机是指用以可靠地转换道岔位置&#xff0c;改变道岔开通方向&#xff0c;锁闭道岔尖轨&#xff0c;反映道岔位置的重要的信号基础设备&#xff0c;它可以很好地保证行车安全&#xff0c;提高运输效率&#xff0c;改善行车人员的劳动强度。 分类 01、转辙机按动作时…

如何做出有价值的知识管理文档?

知识管理文档是企业中重要的资产&#xff0c;它可以帮助企业员工更好地理解业务流程、产品功能、标准操作等信息。如何做出有价值的知识管理文档&#xff0c;满足员工知识需求&#xff0c;提高工作效率&#xff0c;本文将探讨以下几个方面&#xff1a; 一、制定有效的知识管理…

jsp网上鞋城系统Myeclipse开发mysql数据库web结构java编程计算机网页项目

一、源码特点 java 网上鞋城系统 是一套完善的web设计系统&#xff0c;对理解JSP java编程开发语言有帮助&#xff0c;系统具有完整的源代码和数据库&#xff0c;系统主要采用B/S模式开发。开发环境为TOMCAT7.0,Myeclipse8.5 开发&#xff0c;数据库为Mysql&#xff0c;使用j…

建议熟知:2023谷歌新搜索规则!

谷歌作为全球最大的搜索引擎之一&#xff0c;不断更新和调整其搜索算法和规则&#xff0c;以提供更精准、高质量的搜索结果。2023年&#xff0c;谷歌搜索将迎来一系列新的搜索规则&#xff0c;同时&#xff0c;AI工具的快速发展也为谷歌搜索带来了全新的应用场景和可能性。 这…

基于Go开发PaaS平台1

Go开发PaaS平台核心功能 代码仓库地址GitHub - yunixiangfeng/gopaas 1 云原生PaaS平台介绍 随着云计算的发展&#xff0c;越来越多的企业逐步的把IT资源迁移到云上。PaaS平台作为基础设施基座&#xff0c;可以帮助企业快速构建功能丰富的容器云平台&#xff0c;提升交付效率…

应用在智能手表中监测温度的数字红外接近检测模块

智能手表是将手表内置智能化系统、搭载智能手机系统而连接于网络而实现多功能&#xff0c;能同步手机中的电话、短信、邮件、照片、音乐等。显示方式包括指针、数字、图像等。随着对于健身、运动的高度关注&#xff0c;以及大众购买力的增强&#xff0c;智能手表这个可穿戴设备…

SpringCloud 性能优化

Springcloud的性能问题 Springcloud 原始的配置&#xff0c;性能是很低的&#xff0c;大家可以使用Jmeter测试一下&#xff0c;QPS不会到50。要做到高并发&#xff0c;需要做不少的配置优化&#xff0c;主要的配置优化有以下几点&#xff1a; Feign 配置优化hystrix配置 优化…

《水经注地图服务》地图服务与通用设置说明

&#xff08;本文首发于“水经注GIS”公号&#xff0c;关注公号免费领取地图数据&#xff09; 《水经注地图服务》&#xff08;WeServer&#xff09;是一款可快速发布全国乃至全球海量卫星影像的地图发布服务产品&#xff0c;该产品完全遵循OGC相关协议标准&#xff0c;是一个基…