1

How do I convert a EXE file created with PyInstaller back to a .py file?

I already tried python-exe-unpack-master, but that didn't work. Further I've seen this article: How do you reverse engineer an EXE "compiled" with PyInstaller but I don't know how to extract the EXE's append data.

Is there a other way? Or can someone explain me more about the method I gave.

user2357112
  • 260,549
  • 28
  • 431
  • 505
S. Known
  • 195
  • 2
  • 2
  • 10

1 Answers1

2

You can extract the contents of the .exe file using PyInstaller Extractor. Run it like this:

python pyinstxtractor.py executable.exe

You will get your python file.

Swaroop Humane
  • 1,770
  • 1
  • 7
  • 17
  • Its not recognized. Do I need to install Pyinstyaller extractor appart from Pyinstaller, or Is there A certain directory where I need to be, or did you just misspell it? – S. Known Jul 11 '18 at 07:05
  • Nvm my last comment – S. Known Jul 11 '18 at 07:05
  • Listen I already tried this, It gives me 204 pyc files, wich I can uncompyle with uncompyle6, but my code isnt in one of those py files – S. Known Jul 11 '18 at 07:06
  • Please use this url and help yourself buddy. https://github.com/countercept/python-exe-unpacker/blob/master/pyinstxtractor.py – Swaroop Humane Jul 11 '18 at 07:10
  • @Pythonologist I already was there, but I couldnt figure out how I could get my code back, that the reason why Im on this forum... – S. Known Jul 11 '18 at 07:20