-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new scriptlet that prevents some anti-debugging #3378
Comments
@D4niloMR |
Doesn't work, I don't see nothing logged with |
Well it's based on
If that works, then this should also work... Maybe |
There is this extension specialized in defusing anti-devtools: https://github.com/Andrews54757/Anti-Anti-Debug AMO: https://addons.mozilla.org/en-US/firefox/addon/anti-anti-debug/ |
That extension seems good. Still it would be handy to have a scriptlet to trap |
|
same reason for |
|
|
what about |
Why not try it? |
It works, but seems to take a lot of resources, especially on Firefox. |
At |
Yes, but I wasn't with devtools opened while profiling and it still used a lot of resources. I can't reproduce this issue anymore on that site though. I can on |
Looks like it's related to the scriptlet sending logging information to uBO's background process -- might be an issue when a site does something very fast non-stop which is being trapped by uBO. |
Now it becomes unresponsive, more noticeable when the logger/devtools is open. Firefox still freezes if wait long enough. |
I am going to need all the details of what I need to do to reproduce. I could reproduce performance issue only when the logger was opened when navigating to Now if you have another scenario causing issue, I will need all the details on how to reproduce on my side, and profiling data is welcome. |
The issue of the resources is fixed. Now I'm reporting that on my end, navigating through the devtools tabs is unresponsive, like network tab, sources/debugger and expanding nodes in inspector. But this is probably the site's own issue, I didn't notice that the snippet in the description and the Anti Anti Debug extension was throwing error and stopping the debugger call. Once I added |
You shouldn't be using This doesn't throw:
You can try at |
Yes, but on my end if it doesn't throw I suffer from the issue above. |
Yes, same for me:
Description says: "-- the value is interpreted the same way the value for
For me it throws after pasted manually in dev console, but not when used in the scriptlet on the site, maybe that's why it works for me and for D4niloMR. (I tested on Firefox). |
How about this: veev.to##+js(trusted-replace-argument, Function.prototype.constructor, 0, {"value": "/* debugger */"}, condition, debugger) |
I cannot reproduce debugger statement, so need someone to test. |
Logger says: In all cases, dev tools are still unresponsive / laggy / freezing (like without the scriptlet) every time dev tools are opened or closed. The only filter which works and fixes dev tools for me, is the one with |
Right, I didn't realize an exception worked better. In that case, this filter might be a better match:
|
The above filter works fine as well for me (on both Firefox and Chromium). |
Also works fine for me. |
Prerequisites
I tried to reproduce the issue when...
Description
Mostly for websites that has obfuscated code with anti-debugging. Maybe in the future it will be possible to replace the snippet below with trusted-replace-argument .
Only the proxy is necessary.
A specific URL where the issue occurs.
Steps to Reproduce
Expected behavior
Visiting site with obfuscated code the debugger statement is not executed.
Actual behavior
Visiting site with obfuscated code and anti debugger, the debugger statement is executed.
uBO version
1.59.1b22
Browser name and version
Firefox Developer Edition 131.0b6
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: