4 ms·
Looks like a great tool. Will start playing with it whenever I have to dive into an existing project again. One thing I'd like to note, though, is that most en
by Aeveus 2y ago
Looks like a great tool. Will start playing with it whenever I have to dive into an existing project again.
One thing I'd like to note, though, is that most engineers (at least around and including myself) would be triggered by the "Insta-load" example of executing base64 encoded (and thus obfuscated) code.
- kajecounterhack 2y agoI was just about to post that it freaked me out a little, but wasn't sure if I was going to be the only one.
- Spivak 2y agoThe insta-load is fine. You're supposed to save the snippet, decode and uncompress it, look at it to see what it does and that it's completely self-contained uncontroversial Python code and copy-paste your version that you bookmarked. It's super short.
- tacoooooooo 2y agonot hard to see it with open('wat_source.py', 'w') as f: f.write(zlib.decompress(base64.b64decode(code.encode())).decode())
- fuzztester 2y agojust so that it is clear for everyone, including newbies here, does the insta-load code snippet work like this: the author has encoded the wat module's source code into base64. the snippet shown decodes that back into python code, and then executes it on the fly, thus having the same effect as importing the wat module in the normal python way?
- igrek51 2y agoYes, that has the same effect as installing the package. So if you feel uncomfortable, you can either install the pip package (and of course review the installed code) or review the decoded string before executing it. It's not that obfuscated anyways, it's still quite readable.
- fuzztester 2y agogot it, thanks.
- deleted 2y ago[deleted]