2

How to reverse engineer Python scripts turned into binaries with cx_Freeze?

2
  • Hi and welcome to RE.SE. All questions here are Q&A, thanks for your contribution. No need to point it out with custom "tags", though. I removed the answer from what's formally the question and made cosmetic adjustments to the answer as well.
    – 0xC0000022L
    Commented Nov 6, 2020 at 9:14
  • Thanks! it wouldnt let me submit the question without that extra text thats why I put it there Commented Nov 9, 2020 at 17:59

1 Answer 1

2
  1. find the library.zip inside the lib folder included
  2. extract EXENAME__main__.pyc (EXENAME is the name of the exe)
  3. run pip install decompyle3
  4. run decompyle3 EXENAME__main__.pyc and the source will be printed onto the screen
1
  • I'm getting xdis might need to be informed about version '3.8.18' and Unknown magic number 3495 or KeyError depending on using decompyle3 or uncompyle6
    – No Name
    Commented Jan 17 at 0:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.