extremecoders-re/pyinstxtractor — reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python command line tool that can take a PyInstaller packaged app file and unpack it into a folder so I can inspect what is inside. I want it to work on common Windows executables and Linux ELF binaries made with PyInstaller, and it should save out the embedded files, especially the Python bytecode files, in a way that decompiler tools can recognize them without extra fixing.

When I run it with something like python pyinstxtractor.py myapp.exe, it should clearly print what it found, such as the detected PyInstaller version, Python version, how many files are in the archive, possible entry point files, and whether extraction finished successfully. If there is a PYZ archive inside, unpack that too.

Please keep it as a single straightforward script with a small README showing usage and an example of the output. It should work in both Python 2 and Python 3 if possible. If you need to, look up current PyInstaller archive details online so it behaves like the real extractor people use.

Want more depth? Deep Reverse