为您的 .exe 捆绑病毒防护

发布于 2024-09-30 03:45:04 字数 41 浏览 4 评论 0原文

有没有办法可以为我的最终 .exe 捆绑病毒防护(一种病毒防护罩)?

Is there a way i could bundle virus protection(a kind of virus shield) for my final .exe?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

满意归宿 2024-10-07 03:45:05

如果他们编辑您的程序(您试图防范的内容),那么他们将删除您添加的任何检查,或绕过它们。

您唯一真正的选择(最终不会被规避)是以管理员身份安装,并依赖用户系统上的病毒扫描软件。

如果您的程序是 .NET,那么您可以进行代码签名,并将程序的真正内容作为 .DLL 安装在 GAC 中,并且仅保留 .exe 不受保护。那么至少你的大部分程序将受到修改所需的提升/管理访问权限的保护。

无论您使用哪种解决方案,如果黑客获得了盒子的管理员访问权限,您就无法采取任何措施来保护您的程序。

如果您想保护您的服务器,请不要信任客户端程序 - 服务器软件中的程序检查和攻击保护。当然,了解安全性并执行 IT 最佳实践,以确保您的服务器不被破解,而且如果确实被破解,也不会给黑客带来太多优势。

If they edit your program (what you are trying to guard against), then they will remove any checks you add, or bypass them.

Your only real option (that won't eventually be circumvented) is to install as admin, and rely on virus scanning software on the user's system.

If your program is .NET, then you can do code signing, and install the real guts of your program in the GAC, as .DLLs, and leave only your .exe unprotected. Then at least most of your program would be guarded by elevation/admin access being required to modify it.

No matter what solution you use, if hackers get admin access on the box, there is nothing you can do to protect your program.

If you're trying to protect your server, then don't trust client programs - program checks and attack protections into the server software. And of course, learn about security, and perform IT best practices to make sure your server isn't cracked, and if it does get cracked, doesn't give much advantage to the hacker.

冷情 2024-10-07 03:45:05

您可以对您的 exe 进行数字签名,并在启动时检查该 exe 是否由您签名。

或者您可以只嵌入 exe 的哈希值。问题是您需要对其进行安排,以便散列忽略嵌入散列的位置,因为否则散列会更改散列。

You could digitally sign your exe and check if the exe is signed by you on startup.

Or you can just embed a hash of the exe. The problem is that you need to arrange it so that the hashing ignores the place where the hash is embedded since else the hash changes the hash.

〆一缕阳光ご 2024-10-07 03:45:05

如果您想防止可执行文件被修改,您可以保存它们的校验和并在应用程序启动时检查它们。

If you want to prevent modification of your executable files, you can save checksums of them and check them when application is started.

別甾虛僞 2024-10-07 03:45:05

检查您的 exe 病毒的入口点并修改它以执行自己的代码

check the entry point of your exe viruses modify it in order to execute their own code

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文