Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

python - How to decompile files from PyInstaller PYZ file

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 TrueFalse). 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...