Monday, July 27, 2009

Do you guys know how to recover a source code (.cpp file) from the .exe file of c++ program? Thanks.?

You can't recover source code from a compiled binary, it's impossible. If it were as easy as that, there wouldn't be this huge difference between "open source" (eg. Linux) and "closed source" (eg. Windows), because they could both have their source easily recovered. But that's not how it works. If you want the source code of an .exe, you need to ask for it from the developer of that program.

Do you guys know how to recover a source code (.cpp file) from the .exe file of c++ program? Thanks.?
find out the corresponding code for system("cat __FILE__");


in windows
Reply:Maybe .. if the .exe was compiled in debug mode. Otherwise you can get the assembler statements, but they will probably be ugly and almost impossible to understand.
Reply:You can recover a source code(.cpp file). Just go to ms-dos prompt then go the file path where in the files are saved then copy the file that has extension name (.bak file) that is the back up your .cpp file.
Reply:If all you have is the .exe then you will need a C++ de-compiler program.


No comments:

Post a Comment