extremecoders-re / pyinstxtractor

PyInstaller Extractor
GNU General Public License v3.0
2.82k stars 604 forks source link

Missing encrypted files after successful extract #58

Closed UltraV8 closed 1 year ago

UltraV8 commented 2 years ago

I’m trying to extract a PYZ that I know it should contains *.pyc.encrypted files. The extraction finished without any errors but those files are missing, what could be the reason for that?

extremecoders-re commented 2 years ago

There should be a pyz file within the extracted directory. What's the size of that file?

UltraV8 commented 2 years ago

It’s about 12M

extremecoders-re commented 2 years ago

Please make sure you're using the same version of Python as the one used to build the executable. Running pyinstxtractor in a different version of Python would skip pyz extraction.

Alternatively try pyinstxtractor-ng: https://github.com/pyinstxtractor/pyinstxtractor-ng It's a standalone tool and doesn't require even a Python installation.

UltraV8 commented 1 year ago

Thanks for the reply, I verified that they are both the same version -3.8, and tried the portable version but got the same results. Could it be that these modules are loaded only at runtime and they can’t be extracted statically?

extremecoders-re commented 1 year ago

Loading at runtime doesn't matter. If the pyz is there it should be extracted, unless its using a custom pyinstaller bootloader.