Question

Is there a way to disassemble Pro*C/C++ executable files?

Was it helpful?

Solution

In general there should be disassemblers available for executables, regardless how they have been created (gcc, proC, handwritten, etc.) but decompiling an optimized binary most probably leads to unreadable or source.

Also, Pro C/C++ is not directly a compiler but outputs C/C++ code which then in turn is compiled by a platform native compiler (gcc, xlc, vc++, etc.).

Furthermore the generated code is often not directly compilable again without lots of manual corrections.

If you still want to try your luck, have a look at this list of x86 disassemblers for a start.

OTHER TIPS

Try PE Explorer Disassembler, a very decent disassembler for 32-bit executable files.

You should try disassembling with disassembler tool of your choice. At the end of the day, executables compiled with PRO C/C++ preprocessor are just plain C/C++ executables.

If what you're looking for is SQL sentences within your code, you might want to take a look at:

$ strings your_executable_file

It will give you a list of all constants strings present in your executable, and chances are that you are going to get SQL sentences with that.

Good luck.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top