Recommend .Net and C# for reverse decompilation of four major tools

Reprinted from: https://blog.csdn.net/kongwei521/article/details/54927689

In the process of project development, it is estimated that some people have encountered the same experience as me: there is a major bug in the operating environment that needs to be solved urgently, or because the computer hangs up, the old code overwrites the new code, and in this case, we cannot directly Modify this bug in the current code and release it, which will cause more serious problems, because it is equivalent to a version rollback. And the computer hangs up and there is no code at all. In this case, we can only use some reverse skills and tools to parse the dll released on the server. Then you just simply modify a method or function in a .Net assembly, and the assembly is still from yourself or your team. This is really a very easy thing. The program is completely different, and you won't encounter unbreakable encryption algorithms or obfuscated packers. So I'm going to summarize the tools I've used one by one.

Four recommended compilation tools

1: .Net Reflector [Charge]

When it comes to .Net reverse, in fact, many people's first reaction is Reflector, an artifact. This is due to Reflector's good user experience and powerful plug-in functions. On the other hand, it is due to Reflector's perfect intelligent decompilation capabilities. , using it can not only see the decompiled IL source code and even directly decompile the C# source code, and it is almost the same as the code when it was written. If necessary, you can directly save it as a project file and open it with Visual Studio, but now it has been The fee is charged, so the old drivers choose the cracked version, and the rich choose the genuine version. The cracked address will not be released here, you can search by yourself.

How to use: You can directly drag and drop the dll and exe to the left, or select the file

Official website: http://www.red-gate.com/products/dotnet-development/reflector/

2: ILSpy/dnSpy [Free]

ILSpy is the only free and open source .NET decompiler released under the MIT license. ILSpy's code generation and syntax highlighting does a great job. For decompiled assemblies, it can either save it in one file or create a project for all files. ILSpy is a standalone tool with no Visual Studio integration. ,ILSpy  was born to completely replace the fee-based Reflector, it is produced by the iCSharpCode team, which developed the famous SharpDevelop. ILSpy is completely open source. The use of ILSpy is completely similar to the above Reflector. You can directly drag and drop the dll and exe to the left, or select the file.

Official website: http://ilspy.net/

ILSPY also has a fellow disciple, which feels stronger than ILSPY

dnSpy is a .NET assembly editor, decompiler, and debugger forked from ILSpy

* Assembly editor
* Decompiler
* Debugger
* Tabs and tab groups
* Themes (blue, dark, light and high contrast)

If you want to help, fork the project and send pull requests.

Latest release: https://github.com/0xd4d/dnSpy/releases

Latest build: https://ci.appveyor.com/project/0xd4d/dnspy/build/artifacts


3: JetBrains dotPeek [Free]

JetBrains is a Czech software development company that produces a large number of well-known development tools, including: IntelliJ IDEA, PHPStorm, ReSharper, TeamCity, YouTrack, etc., each of which is very popular. dotPeek  is a .Net decompilation tool developed by JetBrains. It is one of the .Net tool suites. Compared with the previous tools, dotPeek is a relatively small one. The code it generates is of high quality. Will try to fetch the code from the source code server. DotPeek's navigation features and shortcuts are very convenient. It also pinpoints symbol usage and supports plugins. DotPeek cannot be integrated with Visual Studio. Personally, I feel that its biggest feature is the Visual Studio style, which should be more friendly to those who have been developing under Visual Studio for a long time.

Official website: http://www.jetbrains.com/decompiler/

4: Telerik JustDecompile [Requires input of information to install] If you don't like this, uninstall it

Telerik JustDecompile is a free .NET decompiler, but has commercial support. The code it generates is also of high quality. It can create a project for the code obtained by decompiling the assembly. JustDecompile provides a robust search function that supports full-text search and symbol-use search. It also has a plugin system and there are currently two extensions available on Telerik's website. JustDecompile cannot be integrated with Visual Studio.

Official website: http://www.telerik.com/products/decompiler.aspx

 

Summarize:

It is more comfortable to use as follows:

dnSPY>ILSPY>Net Reflector>doPeek

The following is a comparison of the methods in a dll after decompilation:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324839440&siteId=291194637