.Net反编译工具Reflector

 .Net反编译工具Reflector它是一个类浏览器和反编译器,可以分析程序集并向您展示它的所有秘密,反编译.EXE .DLL .MCL格式的文件。.net 框架向全世界引入了可用来分析任何基于 .net 的代码(无论它是单个类还是完整的程序集)的反射概念。反射还可以用来检索有关特定程序集中包含的各种类、方法和属性的信息。使用 .net reflector,您可以浏览程序集的类和方法,可以分析由这些类和方法生成的 microsoft 中间语言 (msil),并且可以反编译这些类和方法并查看 c# 或 visual basic .net 中的等价类和方法。
 

 Reflector插件使用方法:

       以FileDisassembler这个插件为例(它可以把exe或dll文件反编译成原始的cs文件,反编译的效果相当好,99%都是正确的,只有一些注释等会有错误。),先根据下面的地址下载过来并解压缩,然后运行Reflector.exe,然后点击View->Add- Ins,弹出一个窗口,然后点击Add->选择你下载过来的Reflector.FileDisassembler.dll插件,再点击close。到此插进装载完毕。
         然后回到Reflector窗口,Tool->File Disassembler,右边就出现了插件的窗口,File->Open打开你要反编译的DLL文件,然后选中左边的dll文件,点击右边插件的相关功能导出文件,源代码就全部导出来了。当然这样就还原的源码可不是完全还原,然后自己加上注释,少许修改,就是真正的源码了。

 Reflector常用插件下载地址:

Reflector.FileDisassembler
This add-in can be used to dump the disassembler output to files for any Reflector supported language.
Website Download   Reflector.CodeMetrics
Analyses .NET assemblies and shows design quality metrics. The menu item is registered under the "Tools" menu.
Website Download   Reflector.SQL2005Browser
This add-in allows to browse .NET assemblies stored in SQL Server 2005 (Yukon) databases.
Website Download   Reflector.DelphiLanguage
The Delphi view that is used inside .NET Reflector provided as a language add-in.
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 coding. 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.FileGenerator
This add-in can be used to dump the disassembler output to files for any Reflector supported language.
Download   Reflector.Graph
This add-in draws assembly dependency graphs and IL graphs.
Website Download   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

转载于:https://www.cnblogs.com/mingyongcheng/archive/2011/06/27/2091601.html

Reflector是一款比较强大的反编译工具,相信很多朋友都用过它,但reflector本身有很多局限性,比如只能一个一个的查看方法等,但幸好reflector支持插件功能目前网上有很多reflector的插件,本人找取了两个应用范围很广,并且广受好评的插件:Reflector.FileDisassembler和Reflector.FileGenerator和Reflector进行了整合,放在了一个压缩包中,大家可以直接解压缩后就开始使用,其中FileGenerator在网上没有现成dll,本人编译后将其取出,放在了压缩包中,一直在苦苦找寻的朋友这次可以拿来直接用了:) 本压缩包中Reflector.exe已经升级为最新的5.0版本,具体的使用方法不多说了,只简单介绍一下本压缩包的使用步骤: 先下载本压缩包并解压缩,运行其中的Reflector.exe(主程序),初次运行会弹出错误提示对话框,因为引用的两个插件DLL是按照我本地实际情况配置的,所以你还需要根据你的实际情况来从新配置一下,方法很简单,我们拿引用FileGenerator.dll来做一个范例, 首先介绍一下Filegenerator,FileGenerator插件的作用是:根据dll文件,把里面的源文件导出成文件,导出来的文件除了没有注释,变量名也变了,其它的可谓是没有差别。对于一些比较好的控件,如果不是开源的,完全可以导出成文件,然后自己加上注释,少许修改,很好的利用起来。(不开源的dll,用起来也不放心啊) 具体的初始化设置方法:点击View->Add-Ins...,弹出一个窗口,然后点击Add->选择文件夹里面的:"FileGenerator.dll",点击close. 然后回到Reflector窗口,Tool->Generator File(s)... 右边就出现了插件的窗口,选中左边的dll文件,点击右边的导出文件,源代码就全部导出来了! 另一个插件Reflector.FileDisassembler.dll设置方法也和这个一样。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值