View previous topic :: View next topic |
Author |
Message |
yucao89 Tux's lil' helper


Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Feb 28, 2003 1:40 pm Post subject: Decompiler |
|
|
Can some say to me how to decompile a program? |
|
Back to top |
|
 |
lghman Guru


Joined: 29 Nov 2002 Posts: 548 Location: Florida
|
Posted: Fri Feb 28, 2003 2:35 pm Post subject: |
|
|
First off what do u mean by DECOMPILE a program. Uninstall it or take it from binary computer code to regular human readable code. The latter of the two isnt possible, all you can do is take it from binary code to hex code. To make it hex code, just download any hex editor.
--sonik _________________ "What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud |
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Fri Feb 28, 2003 2:49 pm Post subject: |
|
|
A quick google showed up this document. _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
 |
yucao89 Tux's lil' helper


Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Feb 28, 2003 4:37 pm Post subject: Then how can you understand the HEX code |
|
|
I have ultraedit on my dual boot windows! and how do you understand the HEX code. My question is can you traslate a binary program to a C++ / C source code? |
|
Back to top |
|
 |
David_Escott l33t

Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Fri Feb 28, 2003 4:59 pm Post subject: |
|
|
There certainly are decompilers and dissasemblers, although I dont know how well they work (and I suspect they are compiler specific). I have seen JAD (a java decompiler before) and it works fairly well although many of the variables end up with not very descriptive generics like variable1 variable2 etc. I would try a sourceforge search if there is anything there you will probably find it. Keep in mind however that if you do use a decompiler and the write software based on the routines you find there I am fairly sure that you would be violating some kind of IP.
The binary is not really readable at all although an x86 dissassembler can make it a little better. If you want to learn some assemby you might try: http://linuxassembly.org/ |
|
Back to top |
|
 |
yucao89 Tux's lil' helper


Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Feb 28, 2003 5:02 pm Post subject: I want to see the Dotnet |
|
|
Everyone knows what is dotnet from microsoft. I wanna look there source code and try to edit IT! Thanks for your advice on JAva decompilers, i am a Java programmer, Thanks! I want to develop a dotnet for Linux |
|
Back to top |
|
 |
avendesora Veteran


Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Fri Feb 28, 2003 5:11 pm Post subject: |
|
|
DotGNU Portable.NET
You might want to check this out. |
|
Back to top |
|
 |
yucao89 Tux's lil' helper


Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Feb 28, 2003 5:14 pm Post subject: Dotnet portable |
|
|
Thanks |
|
Back to top |
|
 |
drahz Tux's lil' helper


Joined: 20 Feb 2004 Posts: 80
|
|
Back to top |
|
 |
ssvb Tux's lil' helper

Joined: 06 Nov 2003 Posts: 96
|
|
Back to top |
|
 |
andrew_j_w Guru


Joined: 28 Jun 2003 Posts: 534 Location: York, UK
|
Posted: Fri Jun 04, 2004 8:41 am Post subject: Re: I want to see the Dotnet |
|
|
yucao89 wrote: | I want to develop a dotnet for Linux |
Go Mono!
HTH,
Andrew |
|
Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Fri Jun 04, 2004 8:15 pm Post subject: |
|
|
If you want a .NET decompiler, take a look at the excellent Reflector. For decompiling (and more generally program transformations), see http://www.program-transformation.org/. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
 |
linux_girl Apprentice

Joined: 12 Sep 2003 Posts: 287
|
Posted: Wed Feb 09, 2005 3:33 am Post subject: |
|
|
the link is broken. _________________
 |
|
Back to top |
|
 |
linux_girl Apprentice

Joined: 12 Sep 2003 Posts: 287
|
Posted: Wed Feb 09, 2005 3:35 am Post subject: |
|
|
boomerang dont have src code aviable +
Code: |
./boomerang -v -o output test/pentium/toproc
./boomerang: error while loading shared libraries: libgc.so.1: cannot open shared object file: No such file or directory
-(05:11:38)- [511 HIST] [0 jobs] [39 up] [min 6] [74 files 228M]
[pbx06@HackXoR:2 ~/boomerang-alpha-0.1] $ldd boomerang
linux-gate.so.1 => (0xffffe000)
libBinaryFile.so => ./lib/libBinaryFile.so (0xb7ffb000)
libgc.so.1 => not found
|
_________________
 |
|
Back to top |
|
 |
DarkStorm_Inc Tux's lil' helper


Joined: 07 Feb 2005 Posts: 105 Location: The Ether
|
Posted: Wed Feb 09, 2005 5:31 am Post subject: |
|
|
its near impossible to find a decompiler than will decompile into C/C++ code.. more or less any decompiler you find will only output into assembly code that most people cant read, or cant read well.. for large programs anyway.. Besides.. id rather have something to decompile visual basic programs. There are a few VB programs I wouldnt mind translating to C that are not OS and port to linux |
|
Back to top |
|
 |
linux_girl Apprentice

Joined: 12 Sep 2003 Posts: 287
|
Posted: Wed Feb 09, 2005 12:38 pm Post subject: |
|
|
i am just wondering (dont know mutch about asm) is there a reliable way to fetche for possible security flaw by using a generic tool to audit the asm code ? like buffer overflows ... format string ... _________________
 |
|
Back to top |
|
 |
ssvb Tux's lil' helper

Joined: 06 Nov 2003 Posts: 96
|
Posted: Thu Feb 10, 2005 10:22 am Post subject: |
|
|
linux_girl wrote: |
boomerang dont have src code aviable +
|
That's not quite true, the sources are here:
http://sourceforge.net/project/showfiles.php?group_id=48519
But boomerang developers recommend to use CVS version as it is most up to date.
edit: Sorry, there is really no sources tarball available for download, so the only way to get the sources is CVS (as I did). |
|
Back to top |
|
 |
thebigslide l33t


Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Thu Feb 10, 2005 7:41 pm Post subject: |
|
|
linux_girl wrote: | i am just wondering (dont know mutch about asm) is there a reliable way to fetche for possible security flaw by using a generic tool to audit the asm code ? like buffer overflows ... format string ... |
Not a reliable way. There are apps. I saw one the other day on forum.hackinthebox.org, I think. I'll try and find it for you. |
|
Back to top |
|
 |
linux_girl Apprentice

Joined: 12 Sep 2003 Posts: 287
|
Posted: Sat Feb 26, 2005 11:48 am Post subject: |
|
|
Code: |
[ c ]
[ ] f(x)
[ ]========>> [ asm ]
[ ] g(y)
[ ] <<=====
|
from asm to c u have nany choice for any y in asm |g(y)| >=1
[EDIT]
in short u take the C code and make asm code
C code is a set then asm is another set. asm is a hell lot smaller. => that is why it is hard to get the src back
[/EDIT] _________________

Last edited by linux_girl on Sat Feb 26, 2005 4:27 pm; edited 1 time in total |
|
Back to top |
|
 |
mattst88 Developer


Joined: 28 Oct 2004 Posts: 423
|
Posted: Sat Feb 26, 2005 2:24 pm Post subject: |
|
|
linux_girl wrote: | Code: |
[ c ]
[ ] f(x)
[ ]========>> [ asm ]
[ ] g(y)
[ ] <<=====
|
from asm to c u have nany choice for any y in asm |g(y)| >=1 |
that sentence was unintelligible. |
|
Back to top |
|
 |
lbrtuk l33t


Joined: 08 May 2003 Posts: 910
|
Posted: Sat Feb 26, 2005 3:04 pm Post subject: |
|
|
linux_girl wrote: | i am just wondering (dont know mutch about asm) is there a reliable way to fetche for possible security flaw by using a generic tool to audit the asm code ? like buffer overflows ... format string ... |
If you run your code through valgrind it can pick up many misuses of memory which could lead to a security flaw.
To the OP: 'Decompiling' really isn't as easy as you seem to think it is. If it were, every piece of software on earth would be 'open source'. Sure, there are ways of getting source that'll do the same thing as the program, but the source will not be sane to any human because when it was compiled, it was distilled down the the bare essential instructions to get the machine to do things. |
|
Back to top |
|
 |
thebigslide l33t


Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sun Feb 27, 2005 6:13 am Post subject: |
|
|
there are tools in portage for checking for buffer overflows. They are referenced in the gentoo hardened documentation. |
|
Back to top |
|
 |
SameGuy n00b

Joined: 14 Nov 2020 Posts: 3
|
Posted: Sat Nov 14, 2020 6:04 pm Post subject: |
|
|
Whether a program is decompilable or not depends on the language it was written.
Java, Python, C# artifacts are easily decompilable.
C++, Rust and other languages without intermediate bytecode representation can't be decompiled. But they can be disassembled. _________________ For every complex problem there is an answer that is clear, simple, and wrong. |
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 498 Location: Brisbane, Australia
|
Posted: Sun Nov 15, 2020 11:20 am Post subject: |
|
|
Have look at www.hex-rays.com _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
 |
|