24

Is there any way to decompile Linux .so?

jschmier
  • 15,458
  • 6
  • 54
  • 72
Rella
  • 65,003
  • 109
  • 363
  • 636
  • Is the source not available for the library you are looking to reverse engineer? – jschmier Feb 21 '10 at 18:51
  • 3
    http://stackoverflow.com/questions/1558370/how-can-i-decompile-linux-binaries-from-windows http://stackoverflow.com/questions/2168794/how-to-view-source-code-of-dll-files/2168826#2168826 – Carlos Gutiérrez Feb 21 '10 at 18:52
  • There is. but I want to try it on some with no source to - just for fun...=) – Rella Feb 21 '10 at 18:55

2 Answers2

16

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

Nikolai Fetissov
  • 82,306
  • 11
  • 110
  • 171
16

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.

jschmier
  • 15,458
  • 6
  • 54
  • 72