吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1064|回复: 2
收起左侧

[求助] 【js】调试某网站js时遇到了知识盲区,请高手帮忙释义

[复制链接]
thepoy 发表于 2021-4-2 11:25
原函数内容:
[JavaScript] 纯文本查看 复制代码
function _0x4f4255(_0x3ba732) {
    var _0x36c422 = {
        'Pfxgn': function(_0x302f4c, _0x5c7745) {
            return _0x302f4c === _0x5c7745;
        },
        'sFzZZ': _0x5b71('0x188'),
        'Boleo': _0x5b71('0x189'),
        'TnYaD': _0x5b71('0x18a'),
        'CCbWP': function(_0x5d2ad8, _0x5c56d2) {
            return _0x5d2ad8 !== _0x5c56d2;
        },
        'cWmTL': function(_0x546d11, _0x55047f) {
            return _0x546d11 + _0x55047f;
        },
        'KzPaa': function(_0x58920f, _0x2d8afd) {
            return _0x58920f / _0x2d8afd;
        },
        'ufPsK': _0x5b71('0x17'),
        'VhytW': function(_0x515079, _0x1e2f61) {
            return _0x515079 % _0x1e2f61;
        },
        'eZvqm': _0x5b71('0x18b'),
        'HwDUY': _0x5b71('0x18c'),
        'nnxXT': _0x5b71('0x18d'),
        'blElB': function(_0x3eef66, _0x1358cc) {
            return _0x3eef66 + _0x1358cc;
        },
        'PAZam': _0x5b71('0x18e'),
        'VhZXn': function(_0x52f6e0, _0xe3c4a1) {
            return _0x52f6e0(_0xe3c4a1);
        }
    };
    function _0x3aad19(_0x3ac151) {
        if (_0x36c422[_0x5b71('0x18f')](typeof _0x3ac151, _0x36c422[_0x5b71('0x190')])) {
            return function(_0x14fa2c) { }[_0x5b71('0x176')](_0x36c422[_0x5b71('0x191')])[_0x5b71('0x0')](_0x36c422[_0x5b71('0x192')]);
        } else {
            if (_0x36c422[_0x5b71('0x193')](_0x36c422[_0x5b71('0x194')]('' + (_0x3ac151 / _0x3ac151))[_0x36c422[_0x5b71('0x196')]], 0x1) || _0x36c422[_0x5b71('0x18f')](_0x36c422[_0x5b71('0x197')](_0x3ac151, 0x14), 0x0)) {
                (function() {
                    return !![];
                }[_0x5b71('0x176')](_0x36c422[_0x5b71('0x194')](_0x36c422[_0x5b71('0x198')], _0x36c422[_0x5b71('0x199')]))[_0x5b71('0x19a')](_0x36c422[_0x5b71('0x19b')]));
            } else {
                (function() {
                    return ![];
                }[_0x5b71('0x176')](_0x36c422[_0x5b71('0x19c')](_0x36c422[_0x5b71('0x198')], _0x36c422[_0x5b71('0x199')]))[_0x5b71('0x0')](_0x36c422[_0x5b71('0x19d')]));
            }
        }
        _0x36c422[_0x5b71('0x19e')](_0x3aad19, ++_0x3ac151);
    }
    try {
        if (_0x3ba732) {
            return _0x3aad19;
        } else {
            _0x36c422[_0x5b71('0x19e')](_0x3aad19, 0x0);
        }
    } catch (_0x315828) { }
}


转化成能看懂的函数:
[JavaScript] 纯文本查看 复制代码
function _0x4f4255(_0x3ba732) {
    function _0x3aad19(_0x3ac151) {
        if (typeof _0x3ac151 === "string") {
            return function(_0x14fa2c) { }["constructor"]("while (true) {}")["apply"]("counter");  // 这行代码是什么意思?
        } else {
            if (("" + (_0x3ac151 / _0x3ac151)).length === 1 || _0x3ac151 % 20 === 0) {
                (function() {
                    return true;
                }["constructor"]("debugger")["call"]("action"));  // 这行代码是什么意思?
            } else {
                (function() {
                    return false;
                }["constructor"]("debugger")["apply"]("stateObject"));   // 这行代码是什么意思?
            }
        }
        _0x3aad19(++_0x3ac151);
    }
    try {
        if (_0x3ba732) {
            return _0x3aad19;
        } else {
            _0x3aad19(0);
        }
    } catch (e) { }
}


爬虫时遇到的无限debugger,这个js文件里多处设置无限debugger的陷阱,其他陷阱基本已解决,就卡到了这里,因为看不懂,所以不知道如何解决,请高手帮忙解决一下,谢谢

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

diaosi123 发表于 2021-4-2 12:26
直接掉不香吗?非要费力解密
 楼主| thepoy 发表于 2021-4-2 15:06
本帖最后由 thepoy 于 2021-4-2 15:07 编辑
diaosi123 发表于 2021-4-2 12:26
直接掉不香吗?非要费力解密

header里有多个动态参数不知道从哪里来的,直接调没有用啊。
经过费力调试发现这些参数由多个js文件生成,就不得不解密了
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-26 05:54

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表