Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
SERVICE
  • 0

Locked Anyone Good At Reversing Python Apps?


Diabl0

Question

Just like the title says... i got an issue with decompiling a certain python app.

Been at it for hours, already disassembled the code and got me my Library.zip and PYTHONSCRIPT files.

 

When i move on to try disassembling the PYTHONSCRIPT file to obtain the pyc files i get a "bad martial data" error.

 

Script I Made to do that is here

import marshal, imp

file = open('PYTHONSCRIPT', 'rb')

file.seek(17) # Skip the header

ob=marshal.load(f)

for i in range(0, len(ob)):

open(str(i) + '.pyc', 'wb').write(imp.get_magic() + '\0'*4 + marshal.dumps(ob))

file.close()

 

Error Image:

This is the hidden content, please

 

Any help will be much appreciated.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

  • 0

Re: Anyone Good At Reversing Python Apps?

 

Scratch that, solved it.

Seems the issue was running the script with the same version that compiled the exe, then use a pyc to py decrypter like easy py decrypter

 

Topic Locked.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.