PyInstaller Extractor is a Python script that unpacks files from PyInstaller-built executables. It repairs pyc headers so bytecode tools can read extracted modules.
Overview
PyInstaller Extractor targets analysts and developers who need to inspect applications packaged with PyInstaller. You run the script against an executable filename and it writes out the embedded archive contents, including Python bytecode files.
The tool adjusts pyc headers automatically so decompilers recognize the bytecode. It runs on Python 2.x or 3.x, with guidance to match the Python version used to build the binary when unpacking PYZ archives to avoid unmarshalling errors.
A broad range of PyInstaller release versions is listed as tested, with note that other versions may still work. Linux ELF binaries can be extracted without extra utilities. After extraction, workflows often continue with Python decompilers such as Uncompyle6 or Decompyle++.
A separate standalone binary build exists that does not require Python at runtime and supports encrypted PyInstaller executables across supported versions.
Key features
- Unpack PyInstaller executables
- Automatic pyc header fixing
- Python 2 and 3 script runtime
- Wide PyInstaller version coverage
- Native Linux ELF extraction
- PYZ archive extraction
- Documented usage and FAQ
- Companion standalone extractor noted
Use cases
- Inspect PyInstaller-packaged apps
- Recover bytecode for decompilation
- Analyze bundled dependencies
- Study Linux ELF PyInstaller builds
- Support authorized reverse-engineering workflows