戈戈:《论语》读了许多天可有心得br> 狄狄:错误要么是“过了”,要么是“不及”,重要的就是把握住度。
戈戈:程朱理学常说格物致知。那些红绿线平时可格出了些什么br> 狄狄:随机漫步的傻瓜,价值,习惯遗忘。
戈戈:你未看此花时,此花与汝心同归于寂。你来看此花时,则此花颜色一时明白起来。便知此花不在你的心外。
狄狄:修道了嚒,神神叨叨的…
狄狄:最近累死了。
戈戈:丁元英告诉年轻人不要轻易说这个词,说完就真的马上要倒下。想干成点事,别把别人看得太轻,别把自己看得太重。
戈戈:我想找个井沿扒着看看,哪有br> 狄狄:农村!
狄狄:这盘菜不是人人都能吃得,扒上了饱了眼福,再掉下去可就跌入了地狱。
戈戈:你注意到书上那句“见路不走”吗br> 狄狄:见路非路,即见因果。
幕落。
文章目录
- 1、dotPeek
-
- 1.1 功能简介
- 1.2 文件格式支持
- 1.3 使用测试
- 2、ILSpy
- 3、dnSpy
- 4、.NET Reflector
- 5、ildasm
- 6、获取.Net程序依赖项(C#代码实现)
- 结语
1、dotPeek
官网地址:https://www.jetbrains.com/decompiler/
dotPeek 是 JetBrains 开发的一款.Net反编译工具,是.Net工具套件中的一个,而且免费使用。
1.1 功能简介
To assist you in working with compiled assemblies, dotPeek provides lots of features for:
- Exploring .NET assemblies
- Working with decompiled code, original source code, and IL code
- Navigation and search
- Debugging compiled code
1.2 文件格式支持
dotPeek decompiles any .NET assemblies and presents them as C# or IL code. Supported file types include:
- Libraries (.dll)
- Executable files (.exe)
- Windows 8 metadata files (.winmd)
- Archives (.zip)
- NuGet packages (.nupkg)
- Microsoft Visual Studio Extensions packages (.vsix)
下面来一张动图来简单说明一下反编译的整个流程:
以下是使用ILSpy反编译作者写的C#程序的.exe(ProjectManager.exe):
以下是使用dnSpy反编译作者写的C#程序的.exe(ProjectManager.exe):
-
Look inside any .NET code
Debug your application
Follow bugs through your application to see where the problem is – your own code, third-party libraries, or components used by your application. -
Understand how applications work
Inherited an application with no documentation and no commentsUse .NET Reflector to understand how the code runs and avoid bugs. -
Look inside APIs, SharePoint, and other third-party platforms
Third-party platforms aren’t always well-documented. Use .NET Reflector to look inside their assemblies, and see how they work and which APIs you can call.
以下是使用Reflector反编译作者写的C#程序的.exe(ProjectManager.exe):
查看C#的dll或exe所依赖.Net版本。
Microsoft SDK自带的ildasm.exe工具, 是一个反编译工具, 可以查看编译好后的dll的文件。
双击ildasm.exe, 把你要识别的.dll文件拖进来, 就会反编译了. 接着在ildasm里, 双击第一行的MANIFEST, 前面五行会类似如下显示, 注意一定要是mscorlib。
当你看到.ver 1:0:5000:0, 说明它是在.net1.1的版本下编译的;
如果看到的是.ver 2:0:0:0, 说明它是.net2.0版本下编译的。
这里看到的是.ver 4:0:0:0,说明它是.net4.0版本下编译的。 爱看书的小沐(备注csdn) QQ名片
来源:爱看书的小沐
声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!