This tutorial is aimed for decompiling binaries packed up using PyInstaller.
The best(?) way to identify a pyinstaller binary is by checking the strings output of the binary to see if anything related to Python is in there. The Python version could be identified from the strings output as well. For instance, an output containing the string "6python310.dll" implies the Python version used to build the executable is 3.10.
- First things first, set up a virtual environment with venv. If the Python version used to build the executable is known, use that version of Python in the shell.
# Switch to the required Python version
pyenv install