Problem:
How can I extract files from an executable created by PyInstaller?
Solution:
Clone the pyinstxtractor-ng repository:
git clone https://github.com/pyinstxtractor/pyinstxtractor-ng.git
Extract the executable:
cd pyinstxtractor-ng python pyinstxtractor-ng.py "<path_to_/dist/app>"
Install dependencies:
sudo yum install cmake make clang
Clone the pycdc repository:
git clone https://github.com/zrax/pycdc.git
Build and compile:
cd pycdc cmake CMakeLists.txt make
Decompile the bytecode:
./pycdc "<path_to_/app_extracted/app.pyc>"
By following these steps, you can extract and decompile files from a PyInstaller-generated executable.
The usage of pycdc will fail if you used a newer version of Python to compile.
If they were compiled by a newer Python version (i.e.3.9-3.12)
-- use PyLingual.io service! <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<