how to convert exe to python source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pruthvi
    New Member
    • Sep 2006
    • 1

    how to convert exe to python source code

    Hi,
    I have a python executable file. I dont know what are the functions in it.
    So i want to convert that into source file. I have tried to download decompyler but i dont know how to make it work. Can anyone help me..??

    Thanks in advance
  • EvanPMth
    New Member
    • Sep 2006
    • 3

    #2
    It depends on what you want to do. Was the exe file originally a python script that was converted to exe using py2exe or some other module. Or is it just some random .exe program.

    If it was originally a python script I don’t know if it is possible to reverse that action, going from exe to py. It’s a little more complicated then that too because py is an interpreted language so, when creating an .exe program from a py script, it compiles all the different modules (import ...) and the actual python interpreter into the exe file. so its a little more complicated then just decompiling it.

    For a random exe file, it was most likely not written in python. Some either used VB or C# or Java etc. There are ways you can tell what was used by the orientation of the other files packaged with the exe and also what the program looks like and how it functions. VB (visual basic) programs are very easy to recognize, they just have a feel to them. If it was VB, there are decompiles out there.

    It is not realistic to just Take an exe file and convert it python. Depending on the program i would just recreate it the way you would like it to be.

    If this is what you were talking about let me know.

    Comment

    Working...