是否可以避免破坏Chrome中的调试器语句? [英] Is it possible to avoid breaking on a debugger statement in Chrome?

查看:91
本文介绍了是否可以避免破坏Chrome中的调试器语句?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对一个严重混淆的JS进行逆向工程,作者所做的一个技巧就是在匿名函数中不断调用调试器语句:

I'm trying to reverse engineer a heavily obfuscated JS and one of the tricks the author does is to continuously call the debugger statement from within an anonymous function:

不幸的是,我无法右击并从不暂停它,因为每次调用该函数时都会生成一个新的匿名函数。我打开DevTools检查代码的唯一方法是切换禁用所有断点按钮,但也会禁用我的断点。

Unfortunately, I cannot right click and Never pause it, because each time the function is called a new anonymous function is spawned. The only way for me to inspect the code with DevTools open is to toggle the Disable all breakpoints button, but that disables my breakpoints too.

有没有办法在Chrome中专门禁用所有调试器语句

Is there any way to disable exclusively all debugger statements in Chrome?

如果没有,可以做些什么来绕过这个反篡改技巧?

推荐答案

将有问题的 webworker.js 文件下载到本地驱动器,并使用文本编辑器替换所有出现的调试器with;。

Download the offending webworker.js file to your local drive, and use a text editor to replace all occurrences of "debugger" with ";".

然后使用Chrome扩展程序替换远程资源,并修改本地版本。

Then use a Chrome extension to replace the remote resource with your local modified version.

https://chrome.google.com/webstore/detail/resource-override/pkoacgokdfckfpndoffpifphamojphii?hl=en

FYI :我不认可上述扩展名。这是我通过谷歌发现的第一个。

FYI: I do not endorse the above extension. It was just the first I found via Google.

这篇关于是否可以避免破坏Chrome中的调试器语句?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆