Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best tool to decompile a C# .Net 1.1 application [duplicate]

Possible Duplicate:
A .net disassembler/decompiler
Is there a “free” alternative to .NET Reflector?

A good while ago we wrote C# .NET 1.1 application for a customer and during the process of office moves and redundancies, the source code was not checked into Source Safe.

The customer has now reported an issue and we don't want to rewrite the app from scratch.

I believe we should be able to get the source code by decompiling the executable. Can anyone recommend a good tool to use (preferably a free one).

As we wrote the application in the first place, I don't expect there to be any legal issues with decompiling but please correct me if I'm wrong.

like image 253
TeamWild Avatar asked Feb 02 '12 10:02

TeamWild


People also ask

Is it possible to decompile C code?

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.

Is C easy to decompile?

C# is inherently easier to decompile into source code because it contains meta-data and most C# code must comply with a set of rules called "verifiable code". Decompilers take advantage of the adherence to these rules along with attached metadata to make decompilation much better than equivalent C++ decompilers.

Can you decompile C# code?

In order to disable Just My Code navigate to Tools > Options (or Debug > Options) > Debugging > General, deselect Enable Just My Code. Decompilation will only generate source code files in C#.


2 Answers

I always used .Net Reflector, but now you need to find an old version of it when it was free...

Now you can try one of the following .Net decompiler (listed in no particular order)

  • JustDecompile --- http://www.telerik.com/products/decompiler.aspx
  • dotPeek --- http://www.jetbrains.com/decompiler
  • .NET CodeReflect --- http://www.devextras.com/decompiler
  • ILSpy --- http://ilspy.net
  • DisSharp Decompiler --- http://netdecompiler.com/
  • Assembly Analyzer --- http://asmanalyzer.codeplex.com/

Here are also some IL decompiler for the real hardcore developer :-)

  • Dotnet IL Editor --- http://sourceforge.net/projects/dile/
  • MSIL Disassembler --- http://msdn.microsoft.com/en-us/library/f7dy01k1%28v=vs.80%29.aspx

You may also find some useful information on these answers:

  • Something Better than .NET Reflector?
  • Open Source Alternatives to Reflector?
like image 188
Max Avatar answered Sep 19 '22 22:09

Max


try dotpeek

like image 44
Maged Samaan Avatar answered Sep 22 '22 22:09

Maged Samaan