ENNAENNA

pyinstxtractor

GPL-3.0

๐Ÿงฌ Reverse Engineering ยท Python

pyinstxtractor extracts the contents of executables created by PyInstaller, recovering the original compiled Python bytecode (.pyc files), data files, and package structure. When combined with a Python decompiler (like uncompyle6 or decompyle3), it enables full source code recovery from distributed Python applications. The tool handles various PyInstaller versions and packaging modes (onefile, onedir), extracts the Python version used for compilation, and identifies the main script entry point. Essential for malware analysis of Python-based threats and reverse engineering of packaged Python applications.

4.3kstars
747forks
21issues
Updated 20d ago
+I use this

Installation

$ git clone https://github.com/extremecoders-re/pyinstxtractor.git

Use Cases

  • Extracting Python source from PyInstaller executables
  • Malware analysis of Python-based threats
  • Recovering resources from packaged Python apps
  • Determining Python version and dependencies of compiled binaries

Tags

pyinstallerpythonextractiondecompilationmalware-analysisdecompilepycpyc-filespyinstaller-extractorpython-decompilerreverse-engineering

Community Reviews

More in Reverse Engineering