top | item 35309134

(no title)

atsushin | 2 years ago

Really fun analysis, wasn't aware that Python scripts could be packaged into an executable until now, learned something new. Thanks for sharing!

discuss

order

anonym29|2 years ago

PyInstaller is only one of several ways to do this. It bundles the Python interpreter, script, and dependencies together, drops them in a temp directory, and then starts the script using that interpreter, but that isn't the only technique.

There are also source-to-source translation tools like Nuitka that translate Python to C, which can then be compiled to a PE. Nuitka is less reliable than PyInstaller, but harder to reverse engineer for predictable reasons.

flangola7|2 years ago

>Nuitka is less reliable than PyInstaller, but harder to reverse engineer for predictable reasons.

That will not matter for long. GPT-4 can turn assembly back into C and generate appropriate comments.