How to decompile files from PyInstaller PYZ file

南楼画角 提交于 2019-12-18 17:35:17

问题


I have exe build by pyinstaller, so, i unpack it, and now i want unpack file *.pyz, where containing all script files, but filenames without extensions (only file names and is_packet in tuple True\False). Example files list, where return Zlib

BeautifulSoup
ConfigParser
HTMLParser
PyQt4
Queue
StringIO
UserDict
_LWPCookieJar
_MozillaCookieJar
__future__
_abcoll
_strptime
_threading_local

How you can see, files without extensions and all files encrypted. Example this unpacked files: http://www.sendspace.com/file/pky00m

So, how i can decompile it? Thanks


回答1:


I have written a python script which will take a pyinstaller generated exe file and extract its contents including the PYZ file and every thing within

After using that script use Easy Python Decompiler to decompile the generated pyc files.

If you are more interested , I have written a detailed paper on reversing such an application. Here is the link.

http://tuts4you.com/download.php?view.3541



来源:https://stackoverflow.com/questions/18303122/how-to-decompile-files-from-pyinstaller-pyz-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!