-
Notifications
You must be signed in to change notification settings - Fork 154
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
control flow switch deobfuscation not triggering without string array #158
Comments
(nvm ignore my comment, didn't read the code properly) |
My initial assumption also was that it's due to the AssignmentExpressions instead of the VariableDeclarations but even after modifying the script to use |
Nvm, looks like only the web version is failing. Works locally |
Ok found the root cause: for optimization webcrack only runs most other deobfuscations if a string array exists:
webcrack/packages/webcrack/src/deobfuscate/index.ts Lines 73 to 77 in 60dbb7f
If you paste a dummy one in the script it works: function _0xa94b() { var _0x5a635b = [""]; _0xa94b = function () { return _0x5a635b; }; return _0xa94b(); } |
That's… funny. |
Describe the bug
I am currently trying to make a PR for this. If I don't make one within 3 days, assume I gave up. 😆
Expected Behaviour
The control flow should be resolved. The dispatcher functions are a separate issue.
Code
Logs
The text was updated successfully, but these errors were encountered: