j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
1.06k stars 126 forks source link

Issue with multiple assignments #101

Open Ciarands opened 3 months ago

Ciarands commented 3 months ago

Describe the bug

I believe I'm looking at the same obfuscation as referenced in #94 however I'd like to mention I'm also running into: TypeError: Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got undefined at Object.validate It seems like inlineVariable is failing to handle for assignments such as g0 = J0 = "GrFC".

Expected Behaviour

Assignment expressions that reference assignment expressions should reference their right most value.

Code

https://pst.innomi.net/paste/ynyugusgwq7tvg655gmevjxn

Logs

No response

j4k0xb commented 3 months ago

Fixed that particular error, but it fails to deobfuscate for the same reasons as #94 later