Firefox版本3如何在Windows上调用防病毒功能来扫描下载? [英] How does Firefox Version 3 invoke the anti-virus feature on Windows to scan a download?

查看:230
本文介绍了Firefox版本3如何在Windows上调用防病毒功能来扫描下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

StackOverflow的另一个问题是询问如何完成,但一般的问题,如何火狐管理这是更有用的,并会回答这个问题也。



没有阅读所有的源代码到Firefox(我没有时间) - 是谁足够熟悉的Firefox V3的能力,以调用任何下载的EXE文件的扫描知道它是如何工作的?
我认为任何防病毒程序与主动保护将挂钩到窗口,并自动运行。 firefox是否检测到这些钩子,并通过创建一个windows文件夹并将其从临时文件名下载后移动到名为.exe的新文件名来启动它们,从而触发自动保护?或者他们做别的事情?



(这是一个编程问题,我想知道如何写这个一般,这将回答上述问题,但也是一个很好的知识点添加到知识库即是stackoverflow。)

此外,商业反病毒程序提供的任何程序化的SDK和API最终用户应用程序集成,我想了解一下。尤其是MS Forefront,MS Security Essentials,Norton或其他主要玩家。

opswat中的OESIS 似乎提供这个作为一个商业的SDK /应用程序,这是一个惊喜,因为它可能应该是一个Windows API,因为我们在这里做的是在所有必须使用Windows的人类的公共利益。] - 实际上它是 - 它被内置到Windows外壳。查看这个问题的第一个链接获取更多的资源。

解决方案

我通过Mozilla代码库快速搜索,发现这些源代码文件:

  ./ toolkit / components / downloads / src / nsDownloadScanner.cpp 
./toolkit/components/downloads /src/nsDownloadScanner.h

接近顶端的评论可能会有您的答案:



lockquote
下载扫描程序试图使用
两种不同的病毒扫描
在Windows上可用的接口 -
IOfficeAntiVirus Windows 95 / NT 4和
IE 5)和IAttachmentExecute(XPSP2
以上)。后者接口
支持在内部调用IOfficeAntiVirus
,同时还为XPSP2 + ADS分支添加了支持
,这些分支定义了
安全相关的提示。 b $ b


Another question on StackOverflow is asking how this is done, but the general question of how Firefox manages this is even more useful, and would answer that question also.

Without reading all the source code to firefox (I haven't time) - is anyone familiar enough with Firefox V3's ability to invoke a scan on any downloaded EXE file to know how it works? I would think any anti-virus program with active protection would hook into windows and be run automatically. Does firefox detect these hooks and bring them up by creating a windows folder and moving the file after it is downloaded from a temporary filename, to a new file name with .exe in the name, thus triggering the automatic protection? Or do they do something else?

(This is a programming question in that I want to know how to write this in general, and this would answer the above question, but also be a good piece of knowledge to add to the knowledgebase-that-is-stackoverflow.)

Also, any programmatic SDKs and APIs that commercial anti-virus programs provide for end-user application integration, I would like to know about. Especially MS Forefront, MS Security Essentials, Norton, or any other major players.

OESIS from opswat appears to provide this as a commercial SDK/application, which is a surprise when it probably should be a Windows API, given that what we're doing here is in the public good of all humans who have to use windows.] - actually it is - it is built into the windows shell. See the first link in this question for more resources.

解决方案

I did a quick search through the Mozilla code base and found these source files:

./toolkit/components/downloads/src/nsDownloadScanner.cpp
./toolkit/components/downloads/src/nsDownloadScanner.h

A comment close to the top may have your answer:

Download scanner attempts to make use of one of two different virus scanning interfaces available on Windows - IOfficeAntiVirus (Windows 95/NT 4 and IE 5) and IAttachmentExecute (XPSP2 and up). The latter interface supports calling IOfficeAntiVirus internally, while also adding support for XPSP2+ ADS forks which define security related prompting on downloaded content.

这篇关于Firefox版本3如何在Windows上调用防病毒功能来扫描下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆