本帖最后由 lucklys 于 2023-8-1 17:46 编辑
[JavaScript] 纯文本查看 复制代码 function a0_0x27a0b0(_0x5b85d0) {
function _0x15f1d2(_0x3a516f) {
var _0x145dd4 = a0_0x2a8b;
if (typeof _0x3a516f === _0x145dd4(0x169))
return function(_0x3a72ae) {}
['constructor']('while\x20(true)\x20{}')['apply'](_0x145dd4(0x632));
else
('' + _0x3a516f / _0x3a516f)['length'] !== 0x1 || _0x3a516f % 0x14 === 0x0 ? function() {
return !![];
}
[_0x145dd4(0x234)](_0x145dd4(0x2e5) + _0x145dd4(0x3e8))['call'](_0x145dd4(0x438)) : function() {
return ![];
}
[_0x145dd4(0x234)]('debu' + _0x145dd4(0x3e8))['apply'](_0x145dd4(0x574));
_0x15f1d2(++_0x3a516f);
}
try {
if (_0x5b85d0)
return _0x15f1d2;
else
_0x15f1d2(0x0);
} catch (_0x21141a) {}
}
这段代码 是我找到的 debugger 的生成代码,在控制台中把这个函数重写没有用,这有啥办法重写吗
解决了
[JavaScript] 纯文本查看 复制代码 var constructorHook = constructor;
Function.prototype.constructor = function(s) {
if (s == "debugger") {
return function() {}
}
return constructorHook(s);
} |