Assuming you wish to integrate with whatever antivirus is already present on the system rather than bundling your own, you should check out the way Firefox 3 does this.
Bugs 103487 and 408153 - Inform anti-virus software when Firefox downloads an executable (using the Windows "IOfficeAntiVirus" and "IAttachmentExecute" APIs).
(of course if you wish to bundle your own, check out ClamAV/ClamWin, but then you must deal with updates, etc, and you should probably first check there is not a fully updated solution on the target system for politeness)
大多数 Windows 防病毒软件都提供 shell 集成(在资源管理器中右键单击文件来扫描该文件),这意味着运行可执行文件、DDE 或 COM。 所有这些都为另一个程序提供了一个入口点来调用相同的机制。
Platform?
Most Windows anti-virus provide shell integration (right click on a file in explorer to scan that file), which will either mean running an executable, DDE or COM. All of which provide an entry point to another program to call the same mechanism.
If you discover a suspicious file on your machine, or suspect that a program you downloaded from the Internet might be malicious, you can check the files here.
Indicate the file to be checked; it will automatically be uploaded from your computer to a dedicated server, where it will be scanned using Kaspersky Anti-Virus. Multiple independent tests and publications acknowledge the solution to have exceptional detection rates. Updates every three hours ensure that even the very newest viruses can be detected.
Only one file of up to 1 MB can be checked at any one time. If the file is too large, a window with an error message will be displayed. Type the name of the file in the window at the top of this page, or find the file using 'Browse'. Then click on 'Submit'.
这实际上取决于您要使用哪个 AV 程序。 阅读您选择的任何解决方案的文档,您可能会找到命令行界面或可以调用的其他一些 API。 没有“通用”方法可以做到这一点(跨 AV)。
It really depends on which AV program you're going to use. Read the documentation for whatever solution you choose and you'll probably find a command-line interface or some other API you can call. There's no "generic" way of doing this (across AVs).
发布评论
评论(7)
假设您希望与系统上已有的任何防病毒软件集成,而不是捆绑您自己的防病毒软件,您应该查看 Firefox 3 的实现方式。
(当然,如果您想捆绑自己的解决方案,请查看 ClamAV/ClamWin,但是您必须处理更新等问题,出于礼貌,您可能应该首先检查目标系统上是否有完全更新的解决方案)
Assuming you wish to integrate with whatever antivirus is already present on the system rather than bundling your own, you should check out the way Firefox 3 does this.
(of course if you wish to bundle your own, check out ClamAV/ClamWin, but then you must deal with updates, etc, and you should probably first check there is not a fully updated solution on the target system for politeness)
视窗? 没问题。 查看 ClamWin。 它基于 ClamAV。
Windows? No problem. Check out ClamWin. It is based on ClamAV.
平台?
大多数 Windows 防病毒软件都提供 shell 集成(在资源管理器中右键单击文件来扫描该文件),这意味着运行可执行文件、DDE 或 COM。 所有这些都为另一个程序提供了一个入口点来调用相同的机制。
Platform?
Most Windows anti-virus provide shell integration (right click on a file in explorer to scan that file), which will either mean running an executable, DDE or COM. All of which provide an entry point to another program to call the same mechanism.
查看 ClamAV。
Check out ClamAV.
也许您可以使用此 Web 服务,假设文件小于 1MB:
http://www.kaspersky.com/扫描病毒
Maybe you could use this web service, assuming the file is less than 1MB:
http://www.kaspersky.com/scanforvirus
您可以使用调试器或反汇编器
You can use a Debugger or a Disassembler
这实际上取决于您要使用哪个 AV 程序。 阅读您选择的任何解决方案的文档,您可能会找到命令行界面或可以调用的其他一些 API。 没有“通用”方法可以做到这一点(跨 AV)。
It really depends on which AV program you're going to use. Read the documentation for whatever solution you choose and you'll probably find a command-line interface or some other API you can call. There's no "generic" way of doing this (across AVs).