Teen Programmers Unite  
 

 

Return to forum top

exe to source code

Posted by qtiphead88 [send private reply] at July 03, 2003, 02:02:23 AM

is it possible to convert an exe file into source code?
how?
not for bad reasons just have abet going with a friend
if so please tell me how.
and can you make it something other than jibberish like when you open an exe in notepad

Posted by CodeX [send private reply] at July 03, 2003, 08:39:58 AM

Yes, you can dissassemble any program into assembler code. There are free decompilers for java out there too. NASM comes with a built-in disassembler program and will disassemble all the apps that you can make with it (which is an impressive range). DJ java decompiler is free and available online, just do a search.

If you mean return the code to the source it originally was, then, no. You don't get back variable names, function names, comments, or any of that stuff. I'd suggest using nasm, it's fast, free, and will do what you need it to do.

Posted by Neumann [send private reply] at July 03, 2003, 09:15:09 AM

I used Rec (Reverse Engineering Compiler) to decompile source-code from suspicious .exe files people sent me on IRC. It produces understandable, but not compilable, C code. The author site says: "It reads an executable file, and attempts to produce a C-like representation of the code and data used to build the executable file."

http://www.backerstreet.com/rec/rec.htm

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.