473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

is there any powerful program that can.....

I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?

Thanks a lot~
Nov 14 '05 #1
7 1820
news.hku.hk <bi******@hkusua.hku.hk> scribbled the following:
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?


Such programs are known as decompilers, but they're not perfect. It is
impossible for a decompiler to give you back the same source code as the
original, because compiling is a lossy process. For example, all
comments, formatting and usually all local variable names are lost. This
is known as the "hamburger to cow" problem.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Bad things only happen to scoundrels."
- Moominmamma
Nov 14 '05 #2
Joona I Palaste wrote:
news.hku.hk <bi******@hkusua.hku.hk> scribbled the following:
I'd like to ask if there is any program that can give me the source
file (*.cpp) when i only have the executable file (*.exe) ?


Such programs are known as decompilers, but they're not perfect. It is
impossible for a decompiler to give you back the same source code as
the original, because compiling is a lossy process. For example, all
comments, formatting and usually all local variable names are lost.
This is known as the "hamburger to cow" problem.


Not to forget about any optimizations that have been performed :)

And if all symbols have been stripped (such as "local" functions being
static), all gets even worse.

Good luck,

Martijn
http://www.sereneconcepts.nl
Nov 14 '05 #3
"news.hku.hk" <bi******@hkusua.hku.hk> writes:
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?


For me gdb usually does just fine at finding my source files, as
long as I haven't moved or deleted them since I compiled.
--
"C has its problems, but a language designed from scratch would have some too,
and we know C's problems."
--Bjarne Stroustrup
Nov 14 '05 #4
news.hku.hk wrote:
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?


C++ questions are off-topic here, but I'll answer this anyway: No, there is
not.
If this is your own program, now is the time to learn to back up your
sources. Otherwise, stop trying to steal other people's work.
--
Martin Ambuhl
Nov 14 '05 #5
Martin Ambuhl <ma*****@earthlink.net> writes:
news.hku.hk wrote:
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?


[...] Otherwise, stop trying to steal other people's work.


Huh? There are perfectly valid reasons to reverse engineer a program.
If they apply, reverse engineering is also legal in most countries.

Martin
Nov 14 '05 #6
In article <40********@newsgate.hku.hk>, bi******@hkusua.hku.hk says...
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?

Thanks a lot~


http://www.woodmann.com/crackz/Tools.htm

The above link is probably not 100% legit (or even 50), but it has
information on your question.

This isn't the place for it.

--
Randy Howard
2reply remove FOOBAR

Nov 14 '05 #7
news.hku.hk wrote:
I'd like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?


Certainly, but it's a subroutine of the Graphic Omnicient Device (or G.O.D. for
short), and is only available for the Harlie OS.

--
Lew Pitcher

Master Codewright and JOAT-in-training
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.

Nov 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Brian Kelley | last post by:
def res(): try: a = 1 return finally: print "do I get here?" res() outputs "do I get here?"
1
by: Chris | last post by:
Our company developed the last couple of years a development tool: using this tool we configure and program (using SQL, and Java-Script) very, very easy an application. The output of the effort is...
7
by: Dan V. | last post by:
Still struggling with css. Anyone know how to put a tope background colour (matches the right part of the banner image) that stretches to the max. size of the window like the main div? My header...
9
by: news.hku.hk | last post by:
I'd like to ask if there is any program that can give me the source file (*.cpp) when i only have the executable file (*.exe) ? Thanks a lot~
19
by: Roberto Dias | last post by:
Why is C++ a powerful language? Does it fit for engineering purpose? I mean, for doing matrices manipulation, numerical computing, solving equations, and, eventually, for file streaming. Should I...
4
by: PontiMax | last post by:
Hi. Not sure whether this is the right group but I am looking for some powerful asp.net grid control. The grid should be editable, allow some header adjustments (e.g. multi-part row and column...
7
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}"...
28
by: steve yee | last post by:
i think c should adapt c++ template standard, as well as namespace. if so, c can replace c++ in many cases.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.