Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Decompiler
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
yucao89
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 124
Location: madrid

PostPosted: Fri Feb 28, 2003 1:40 pm    Post subject: Decompiler Reply with quote

Can some say to me how to decompile a program?
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Fri Feb 28, 2003 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Fri Feb 28, 2003 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
yucao89
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 124
Location: madrid

PostPosted: Fri Feb 28, 2003 4:37 pm    Post subject: Then how can you understand the HEX code Reply with quote

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
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Fri Feb 28, 2003 4:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
yucao89
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 124
Location: madrid

PostPosted: Fri Feb 28, 2003 5:02 pm    Post subject: I want to see the Dotnet Reply with quote

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
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Fri Feb 28, 2003 5:11 pm    Post subject: Reply with quote

DotGNU Portable.NET
You might want to check this out.
Back to top
View user's profile Send private message
yucao89
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 124
Location: madrid

PostPosted: Fri Feb 28, 2003 5:14 pm    Post subject: Dotnet portable Reply with quote

Thanks
Back to top
View user's profile Send private message
drahz
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 80

PostPosted: Fri Jun 04, 2004 1:24 am    Post subject: Reply with quote

here is a C decompiler link http://www.uncc.info/
_________________
meh!
cyber crimes Department of Justice website
http://www.usdoj.gov/criminal/cybercrime/cccases.html
Back to top
View user's profile Send private message
ssvb
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 96

PostPosted: Fri Jun 04, 2004 8:21 am    Post subject: Reply with quote

Here is another link: http://boomerang.sourceforge.net
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Fri Jun 04, 2004 8:41 am    Post subject: Re: I want to see the Dotnet Reply with quote

yucao89 wrote:
I want to develop a dotnet for Linux


Go Mono!

HTH,
Andrew
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Jun 04, 2004 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Wed Feb 09, 2005 3:33 am    Post subject: Reply with quote

drahz wrote:
here is a C decompiler link http://www.uncc.info/


the link is broken.
_________________
:D :D
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Wed Feb 09, 2005 3:35 am    Post subject: Reply with quote

ssvb wrote:
Here is another link: http://boomerang.sourceforge.net


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

_________________
:D :D
Back to top
View user's profile Send private message
DarkStorm_Inc
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 105
Location: The Ether

PostPosted: Wed Feb 09, 2005 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Wed Feb 09, 2005 12:38 pm    Post subject: Reply with quote

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 ...
_________________
:D :D
Back to top
View user's profile Send private message
ssvb
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 96

PostPosted: Thu Feb 10, 2005 10:22 am    Post subject: Reply with quote

linux_girl wrote:
ssvb wrote:
Here is another link: http://boomerang.sourceforge.net


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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Thu Feb 10, 2005 7:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Sat Feb 26, 2005 11:48 am    Post subject: Reply with quote

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]
_________________
:D :D


Last edited by linux_girl on Sat Feb 26, 2005 4:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 423

PostPosted: Sat Feb 26, 2005 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sat Feb 26, 2005 3:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sun Feb 27, 2005 6:13 am    Post subject: Reply with quote

there are tools in portage for checking for buffer overflows. They are referenced in the gentoo hardened documentation.
Back to top
View user's profile Send private message
SameGuy
n00b
n00b


Joined: 14 Nov 2020
Posts: 3

PostPosted: Sat Nov 14, 2020 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 498
Location: Brisbane, Australia

PostPosted: Sun Nov 15, 2020 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum