Results 1 to 6 of 6
Dear all,
how can i view the code of a file which is of type:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses ...
- 09-09-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 17
binary files
Dear all,
how can i view the code of a file which is of type:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
Is there anything better or which gives a comprehensive output than strings ?
cheers
- 09-09-2009 #2
If it's an open source application, you can get hold of the source code. If you installed it with your system, the source will be available through your package manager but you might have to turn on a repository to provide source code packages.
Linux user #126863 - see http://linuxcounter.net/
- 09-09-2009 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
As Roxoff said, if the source is available, look at that. Since the executable has been stripped of symbol information, there is no way to look at the function call and variable signatures.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-09-2009 #4Just Joined!
- Join Date
- Apr 2009
- Posts
- 17
Thanks Rox and rubber,
This is a shell script that has been compiled with some tool. I want to see whether the scripts could be re-engineered.
- 09-09-2009 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Sounds like the author(s) of the script wanted to avoid just this. There are decompiler tools that will generate "human readable" code. Just make sure you keep your Advil handy for all the headaches you'll get trying to understand what's going on...
Frankly, I don't think that would allow you to "reverse engineer" the script very well, however. Better to document the behavior of the application as thoroughly as possible, and use that as a set of specifications to re-write the code in the language of your choice. Call it an exercise in white-box reverse engineering. Been there, done that...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-10-2009 #6Just Joined!
- Join Date
- Apr 2009
- Posts
- 17
Rubber thanks for the reply mate.
We need to alter that script. It'll take ages to redo the whole thing. Any tools that U know that will decode it for me.
cheers


Reply With Quote
