Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to decompile Linux .so?

Tags:

Is there any way to decompile Linux .so?

like image 983
Rella Avatar asked Feb 21 '10 18:02

Rella


People also ask

Can so files be decompiled?

so binary file to native c/c++ code. The source is not part of binary files. You can decompile the binary code, but it will not be the original source code, and will not really be readable. In general you can't.

How do I read a .so file?

How to Open a SO File. SO files can technically be opened with GNU Compiler Collection but these types of files aren't intended to be viewed or used like you might another type of file. Instead, they're just placed in an appropriate folder and used automatically by other programs via Linux's dynamic link loader.

Is decompiler legal or not?

Decompiling is absolutely LEGAL, regardless of what the shills say. At most, you can be sued for unauthorized activity relating to software unless you're redistributing it.

Is it possible to decompile a binary?

You can decompile the binary. That won't give you your source code, but it'll give you some source code with the same behavior. You won't get the variable names unless it was a debug binary. You won't get the exact same logic unless you compiled without optimizations.


2 Answers

There are decompilers, but a decompiler might not emit code in the same language that the original program was written in.

There are also disassemblers, which will reassemble the machine code into assembly.


The Decompilation Wiki may be a good source of additional information.

like image 135
jschmier Avatar answered Oct 10 '22 16:10

jschmier


You can disassemble the code with objdump(1) for example.

like image 35
Nikolai Fetissov Avatar answered Oct 10 '22 15:10

Nikolai Fetissov