The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Ripping source code from .exe
Discuss Ripping source code from .exe in the C Programming forum on Dev Shed. Ripping source code from .exe C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 23rd, 2002, 12:32 PM
|
|
Junior Member
|
|
Join Date: Apr 2002
Location: Norwich, UK
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Ripping source code from .exe
Howdy,
I've got a .exe file that was composed in Borland C++ Builder 4, I was wondering if there is anyway of getting at the source code easily. It's not an especially big/complex program.
Cheers
|

October 23rd, 2002, 01:05 PM
|
 |
/(bb|[^b]{2})/
|
|
Join Date: Nov 2001
Location: Somewhere in the great unknown
|
|
|
Not unless it was compiled with debug code. And then if it was, you would still need access to the source. So to make a long story short, no.
If you don't have the source, you have to contact the programmer/company that created it and get the source that way (assuming they release thier source).
|

October 23rd, 2002, 01:18 PM
|
|
Contributing User
|
|
Join Date: Oct 2000
Location: Back in the real world.
|
|
|
easily? no. you could learn assembler and how to use a debugger like softice. then you have some kind of "source code". with some practise, you can even read parts the C code from it.
|

October 23rd, 2002, 01:23 PM
|
|
Registered User
|
|
Join Date: Oct 2002
Posts: 21
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
...
well i figure, when u compile a program it makes the .exe so if u can get a prog that decompiles u could probably get the source.
i know in JAVA u can get progs that get the source code from binary class files.
|

October 23rd, 2002, 01:36 PM
|
|
Contributing User
|
|
Join Date: Oct 2000
Location: Back in the real world.
|
|
|
you cannot easily because
there is not that many assembler instructions. so many different c commands compile to much fewer instructions.
if the program was not compiled for debugging, all information that is somewhat "verbose" in a high-level language (like variables or function names) is lost.
and most compilers optimize the code after the first pass of only translating. thus the code can be modified for different reasons and the same C command can compile to different assembler code if used in different context.
there is probably some more reasons i can not think of right now.
|

October 23rd, 2002, 02:04 PM
|
|
Junior Member
|
|
Join Date: Apr 2002
Location: Norwich, UK
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Ah well, guess I'm actually going to have to do my coursework properly
Cheers for getting back so fast though peeps!
Fenris
|

October 25th, 2002, 02:02 PM
|
|
Contributing User
|
|
Join Date: Dec 2000
Location: UK
Posts: 50
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
Its possible
As people can and have ripped all the source code from Windows, added in some bits, and then recompiled it.
I believe.
They also had access to some very nice computers for a ong period of time (probably a cray).
Doing the coursework is probably the easiest way.
Unless it involves trees in haskell.
|

October 25th, 2002, 02:16 PM
|
 |
/(bb|[^b]{2})/
|
|
Join Date: Nov 2001
Location: Somewhere in the great unknown
|
|
|
The sourcecode that was seen by these people was assembly, not C.
It is possible to alter the code and recompile it but you have to know assembly to do this.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|