如何检查.NET DLL是否使用不安全的代码?
给定一个.NET组件(DLL或EXE),我如何确保使用命令行工具(或不)使用不安全的代码?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
给定一个.NET组件(DLL或EXE),我如何确保使用命令行工具(或不)使用不安全的代码?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
i 谷歌搜索此代码可帮助您入门:
I googled this code to help you get started:
使用 peverify 。
不安全组件的示例输出:
安全组装的示例输出:
这不仅将检测标记为“不安全”的代码,还会检测到本机库。
nb
peverify
应安装 Visual Studio ,使用Visual Studio 开发人员命令提示时最容易致电。Use PEVerify.
Example output for an unsafe assembly:
Example output for a safe assembly:
This will not only detect code marked "unsafe", but also calls to native libraries.
N.B.
peverify
should come installed with Visual Studio, and is easiest to call when using the Visual Studio Developer Command Prompt.