3 ms·
When was the last time you were able to unminify a javascript file that you wanted to investigate and were able to make sense out of it?
by mdszy 7y ago
When was the last time you were able to unminify a javascript file that you wanted to investigate and were able to make sense out of it?
- deleted 7y ago[deleted]
- mpeg 7y agoJavascript is pretty accessible even when minified and optimised via something like closure. WASM requires a lot more knowhow to reverse engineer; I've had to do it a few times for CTFs and some blockchain-related tools that use them, and it's a lot trickier compared to JS.
- vsareto 7y agoThe wat format seems decently readable. You can convert between the two easily unless there’s obfuscation tools already.
- reificator 7y agoWithin the last month or two, certainly. You have to be willing to edit it, start renaming variables to describe what they hold, rename them again if they get something unexpected assigned, rename functions once you have a good idea of what they're trying to do, and repeat until everything has a name.
- mdszy 7y agoSo it sounds like you're having to reverse engineer it, similar to any "binary blob". Sounds very "open" to me.
- reificator 7y agoI'm not arguing openness. Merely that minified js can be understood with some effort.
- vbezhenar 7y agoWasm is very easy to understand. I guess it lacks tools for proper reverse-engineering, to allow defining meaningful names, to use some sane language instead of default Wasm text format, but once tools will be there, it'll be much easier to understand than minified JavaScript because it's so simple.