Diabl0 Posted February 5, 2017 Share Posted February 5, 2017 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 Sign In or Sign Up Any help will be much appreciated. Link to comment Share on other sites More sharing options...
0 Diabl0 Posted February 5, 2017 Author Share Posted February 5, 2017 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 More sharing options...
Question
Diabl0Just 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
Error Image:
Any help will be much appreciated.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts