最近由于需要反編譯一些C#寫的程序,早就聽說功能極為強(qiáng)大的反編譯工具,Reflector。
我用的版本是4.1.84.0,感覺用起來很爽,以后弄到的幾個(gè)很好用的DLL,我都反編譯,并弄出源碼了,為我省了不少工夫啊,反編譯出來的除了定義的變量名不一樣外,其余的簡直是一模一樣。
圍繞它開發(fā)的插件也很多,用著真是開心!我還找到一個(gè)插件可以把源碼導(dǎo)出到文件!更是爽!不過這個(gè)軟件還不支持Unicode ,需要自己寫一個(gè)轉(zhuǎn)化程序,兩個(gè)搭配起來用極爽!
有興趣的朋友也下載一個(gè)玩玩吧~ 哈哈! 由于使用過于簡單,就不介紹軟件使用了~
下載地址
http://www.aisto.com/roeder/dotnet/Download.aspx?File=Reflector
另外再提供一些Reflector的相關(guān)插件下載,enjoy?。。?!
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 |
FileGenerator插件的作用是:根據(jù)dll文件,把里面的源文件導(dǎo)出成文件,導(dǎo)出來的文件除了沒有注釋,變量名也變了,其它的可謂是沒有差別。對(duì)于一些比較好的控件,如果不是開源的,完全可以導(dǎo)出成文件,然后自己加上注釋,少許修改,很好的利用起來。(不開源的dll,用起來也不放心啊)
先根據(jù)上面的地址下載FileGenerator并解壓縮,然后運(yùn)行Reflector.exe,然后點(diǎn)擊View->Add-Ins...,彈出一個(gè)窗口,然后點(diǎn)擊Add->選擇FileGenerator里面的唯一一個(gè)dll文件:"FileGenerator.dll",點(diǎn)擊close.
然后回到Reflector窗口,Tool->Generator File(s)... 右邊就出現(xiàn)了插件的窗口,選中左邊的dll文件,點(diǎn)擊右邊的導(dǎo)出文件,源代碼就全部導(dǎo)出來了,真是爽??!
聯(lián)系客服