.Net Decompiler for MAC or Linux

.NET Reflector for Mono

As I was looking for a Mono decompiler, I found this page and tested the answers :

  • Mono.Cecil works great but it's a library and I was looking for a GUI
  • ILSpy doesn't run under Mono (Linux) since it uses WPF. Same for .NET CodeReflect, JustDecompile and dotPeek.
  • Perhaps Reflector works, but I don't really want to pay to know

Finally I found it was possible to decompile assemblies directly in MonoDevelop

Is there a way to extract C++ code from a Windows .exe driver or a Mac OS driver?

No. You cannot extract the original source code from a compiled binary.
You can reverse engineer it, though.

How do I decompile Java class files?

Update February 2016:

www.javadecompilers.com lists JAD as being:

the most popular Java decompiler, but primarily of this age only. Written in C++, so very fast.

Outdated, unsupported and does not decompile correctly Java 5 and later

So your mileage may vary with recent jdk (7, 8).

The same site list other tools.

And javadecompiler, as noted by Salvador Valencia in the comments (Sept 2017), offers a SaaS where you upload the .class file to the cloud and it returns you the decompiled code.


Original answer: Oct. 2008

  • The final release of JSR 176, defining the major features of J2SE 5.0 (Java SE 5), has been published on September 30, 2004.
  • The lastest Java version supported by JAD, the famous Java decompiler written by Mr. Pavel Kouznetsov, is JDK 1.3.
  • Most of the Java decompilers downloadable today from the Internet, such as “DJ Java Decompiler” or “Cavaj Java Decompiler”, are powered by JAD: they can not display Java 5 sources.

Java Decompiler (Yet another Fast Java decompiler) has:

  • Explicit support for decompiling and analyzing Java 5+ “.class” files.
  • A nice GUI:

screenshot

It works with compilers from JDK 1.1.8 up to JDK 1.7.0, and others (Jikes, JRockit, etc.).

It features an online live demo version that is actually fully functional! You can just drop a jar file on the page and see the decompiled source code without installing anything.

How do I decompile a .NET EXE into readable C# source code?

Reflector and its add-in FileDisassembler.

Reflector will allow to see the source code. FileDisassembler will allow you to convert it into a VS solution.

Is it possible to decompile a C++ executable file

Duplicate of this question here.

Yes, it is possible, however when it comes to peeking function bodies and the like, you might have a little less luck. Operating systems like Kali Linux specialize in de-compilation and reverse engineering, so maybe look into a VM of that. And of course, windows has a lot of applications you can use as well to check the application code.

Look over the other question for specific app suggestions. :)

  • Edit : You will most likely have lost all your logic and function bodies, but you might be able to recover the overall structure. It's your EXE so you might be more familiar with how it was all connected up.


Related Topics



Leave a reply



Submit