Use the .NET Reflector plugin FileDisassembler restore source code

xiaoxiao2021-03-20  224

.NET Reflector, it is a class browser and an anti-compiler that analyzes the assembly and displays all of its secrets. The .NET framework introduces the reflection concept that can be used to analyze any .NET-based code (whether it is a single or complete assembly). Reflection can also be used to retrieve information about the various classes, methods, and attributes included in a particular program. Using .NET Reflector, you can browse the class and method of the assembly, you can analyze the Microsoft Intermediate Language (MSIL) generated by these classes and methods, and can be used to compile these classes and methods and view C # or Visual Basic? Net Equivalent classes and methods. In order to demonstrate the mode of work of .Net Reflector, I will load and analyze the NUNITEXAMPLE assembly that has already been displayed in front. The figure below shows the assembly loaded in .NET Reflector. Inside the .NET Reflector, there are various tools that can be used to further analyze the assembly. To view MSIL constituting a method, click this method and select DisasseMbler from the menu. In addition to being able to view MSIL, you can also view the C # form of the method by selecting Decompiler under the Tools menu. You can view this method in the form of Visual Basic .NET or Delphi by changing your choice under the Languages ​​menu. The following is the code generated by .NET Reflector:

Public void hashtableaddtest () {

Hashtable hashtable1;

Hashtable1 = new hashtable ();

Hashtable1.add ("key1", "value1");

Hashtable1.add ("key2", "value2");

Assert.Arequal ("Value1", Hashtable1 ["KEY1"], "Wrong Object Returned!");

AskERT.Arequal ("Value2", Hashtable1 ["KEY2"], "Wrong Object Returned!");

}

The previous code looks like I actually written for this method. The following is the actual code in the assembly:

Public void hashtableaddtest () {

Hashtable ht = new hashtable ();

Ht.Add ("Key1", "Value1");

HT.ADD ("Key2", "Value2");

Assert.Arequal ("Value1", HT ["Key1"], "Wrong Object Returned!");

Assert.Arequal ("Value2", HT ["Key2"], "Wrong Object Returned!");

}

Although there are some small differences in the above code, they are functionally identical.

Although this example is a good way to display actual code and anti-compile code, in my opinion, it does not mean the best use of .NET Reflector - Analysis .NET Framework assembly and method. The .NET framework provides many different ways to perform similar operations. For example, if you need to read a set of data from XML, there are a variety of ways to use XMLDocument, XPathnavigator or XmlReader to complete the work. By using the .NET Reflector, you can view what Microsoft uses what works when writing the data set, or see what work when they read data from the configuration file. .NET REFLEctor or an excellent way to learn the best implementation policies: Create objects such as httphandlers or configuration handler, because you can understand how the Microsoft Workgroup actually generates these objects in the framework. .NET REFLEctor is written by Lutz Roeder

download link:

http://www.aisto.com/roeder/dotnet

Now introduce one of its plugins. perfectly worked. Restore source code. !

Www.denisbauer.com/downloads/reflector.fileDisassembler.zip

This is the plug-in download address!

Open the Reflector, add the DLL to the inside in the View menu!

Then load a DLL. Select it. Select Tools-File Disassembler to open the right File Disassembler window and select Generate

This reduces the source code. But it is not completely reduced!

There are other Plug-in below.

.NET Reflector Add-INS

This website lists add-ins for .NET Reflector. After downloading one of the add-ins copy the files to the same directory as your 'Reflector.exe' file and load them via the 'Add-Ins' command under the 'View' Menu. You Can Download Reflector

Here.

-------------------------------------------------- ------------------------------

Reflector.fileDisassembler

.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.delphilanguage

.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.mcpplanguage

This Add-in Extends Reflector With a Managed C Language Rendering Module.

Website

Download ------------------------------------- -------------------------------

Reflector.chromelanguage

This Add-in Extends Reflector With a chrome language rendering module.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.diff

This Add-in Shows Differences Between Two Versions of the Same Assembly.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.visualstudio

This Program Is Hosting .NET Reflector Inside The Visual Studio 2003 IDE. Run Reflector.visualstudio.exe To Register The Add-in With Visual Studio.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.classView

SHOWS CLASS Definitions as Plain Text with color code. The menu item is registered under the "tools" menu.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.codemodelView

THIS Add-in Shows The Underlying Code Model Objects for a SELECTED NODE IN .NET REFLEctor. The Menu Item Is Registered Under The "Tools" menu.

Website

Download

-------------------------------------------------- ------------------------------

Reflector.filenerator

.

Download

-------------------------------------------------- ------------------------------

Reflector.graph

This Add-in Draws Assembly Dependency Graphs and Il Graphs. It also supports method ranking and type ranking.

Website

-------------------------------------------------- ------------------------------

Reflector.openRunningAssembly

Opens an assembly or dependency from a process running on the system. The menu item is registered under the "tools" menu.website

Download

-------------------------------------------------- ------------------------------

Reflector.mbunit

This add-in allows loading and executing mbunit unit test fixtures in reflector. The source code is provided online.

Website

-------------------------------------------------- ------------------------------

Disclaimer: The Content of this Website is provided "as is" with no warranties, and confers no rights.

转载请注明原文地址:https://www.9cbs.com/read-130394.html

New Post(0)