js 逆向

(function () {
    var parse_=JSON.parse;
JSON.parse=function (jp) {
    console.log("duanzhule------",jp);
    debugger;
    return parse_(jp);
        
    }
})();

  hook字符串  典型网站   全国建筑市场监管公共服务平台(四库一平台)

ajax    拦截特定参数

(function () {
    // 保存原生的 XMLHttpRequest.open 方法
    var open = window.XMLHttpRequest.prototype.open;

    // 重写 XMLHttpRequest.open 方法
    window.XMLHttpRequest.prototype.open = function (method, url, async) {
        // 检查请求的 URL 中是否包含字母 "t"
        if (url.indexOf("t") != -1) {
            debugger; // 如果包含,则在这里断点(触发调试器)
        }
        // 调用原生的 open 方法,确保请求正常进行
        return open.apply(this, arguments);
    };
})();

 

posted on 2025-10-17 16:20  土豆爸  阅读(12)  评论(0)    收藏  举报

导航