-
Notifications
You must be signed in to change notification settings - Fork 132
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
Error: Cannot read properties of undefined (reading 'charAt') #113
Comments
Full error/stack:
Which seems to correspond to this section of the code: webcrack/apps/playground/src/context/DeobfuscateContext.tsx Lines 48 to 56 in 404a331
Specifically that error seems to come from webcrack/apps/playground/src/sandbox.ts Lines 11 to 17 in 404a331
At a bit of an informed guess, I believe that is being triggered by this section of sandbox code as passed into the main webcrack/apps/playground/src/webcrack.worker.ts Lines 26 to 54 in 404a331
With webcrack/packages/webcrack/src/index.ts Lines 158 to 159 in 404a331
And webcrack/packages/webcrack/src/ast-utils/transform.ts Lines 7 to 21 in 404a331
As a naive guess, I think this may be caused by one of the 'deobfuscate' rules that relies on eval'ing the code; and presumably that code doesn't execute properly in It looks like when this error is hit, the whole deobfuscate process may bail out. I haven't looked too deeply, but I wonder if it would be possible to skip the I wonder if it also might be helpful to add some extra context to that |
Describe the bug
Getting Error: Cannot read properties of undefined (reading 'charAt') when using https://webcrack.netlify.app/ to deobfuscate
Expected Behaviour
Deobfuscate
Code
https://abs.twimg.com/responsive-web/client-web/ondemand.s.d0ac096a.js
Logs
No response
The text was updated successfully, but these errors were encountered: