- #1
liokaiser
- 4
- 0
anyone knows how to obtain the source code from the execute file itself?
That's not entirely true. There are "underground" programs that can decompile programs to the exact source code (I know of 2 that work for sure). However; these programs are illegal and cannot be obtained. Also, you need to remember, fully decompiling software is against the law. There was a supreme court ruling about this issue awhile back. So your only hope of seeing the unfinished source code of a program, is by using reverse engineering.chroot said:It's not possible to obtain the exact same source code that the original authors wrote. Variable names, for example, are generally lost during the compilation. All you can do is use a decompiler to generate one of the possible source codes that could have been compiled to the given code.
- Warren
I'm not going to name any here for obvious reasons. Contact me on AIM one day and I'll link you to a few sites with the programs. And yes, you do lose comments and the format, but you never lose variable and constant names. Sometimes, however, they are "hidden" and harder to come across.chroot said:Cod,
Please name some of these mythical underground programs. When you compile a program in C, for example, you lose comments, formatting, and often variable and constant names. There is no way to recreate this lost information, even in principle.
- Warren
Cod said:I'm not going to name any here for obvious reasons. Contact me on AIM one day and I'll link you to a few sites with the programs. And yes, you do lose comments and the format, but you never lose variable and constant names. Sometimes, however, they are "hidden" and harder to come across.
chroot said:master_coda,
I was just waiting to hear about these "elite hacker decompilers" that are capable of decompiling Windows into source before making those statements.
- Warren
Too ambitious. I'll be happy when I finish the one that just identifies infinite loops.Originally posted by master_coda:
But these discussions distract me from writing my program that automatically finds and fixes all the bugs in a program.
chroot said:gnome,
Look into the so-called "Cleanroom Software Engineering" techniques. A good book is Stavely's "Toward Zero Defect Programming." If you learn to use consistent and verifiable structures in your code, you'll be much less likely to introduce bugs of that kind.
- Warren
gnome said:Too ambitious. I'll be happy when I finish the one that just identifies infinite loops.
chronon said:No problem. Say your computer can access at most N bits of storage. Then it can have at most [tex]2^N[/tex] distinct states. You just run the program for [tex]2^N[/tex] steps. :zzz: If it hasn't finished by then, its stuck in an infinite loop.
Concord said:Sooo, where are the *relations* of your posts to the OP ?
Is this some sort of secret code?originally posted by Concord:
Sooo, where are the *relations* of your posts to the OP ?
gnome said:Is this some sort of secret code?
Decompiling is the process of converting a compiled program or code into its original source code. This is often used for debugging, understanding how a program works, or making modifications to the code.
The legality of decompiling a program varies by country and jurisdiction. In some cases, it may be considered fair use for personal use, but it is always best to consult a legal professional before decompiling any program.
There are various decompilers available, such as IDA Pro, Ghidra, and Jadx, that can be used for decompiling programs. These tools often require some technical knowledge and may not always be able to produce a perfect representation of the original source code.
Decompiling a program may not always result in a perfect representation of the original source code. Some code may be missing or may be difficult to understand. Additionally, decompiled code may not always be executable and may require additional modifications to work properly.
Not all programs can be decompiled. Some programs may have obfuscated or encrypted code that makes it difficult or impossible to decompile. Additionally, some programs may have been intentionally designed to prevent decompiling for security reasons.