Firefox 版本 3 如何调用 Windows 上的防病毒功能来扫描下载内容?

发布于 2024-09-10 21:03:45 字数 890 浏览 2 评论 0原文

StackOverflow 上的另一个问题是询问这是如何完成的,但一般问题是Firefox 如何管理这个问题甚至更有用,并且也可以回答这个问题。

无需阅读 Firefox 的所有源代码(我没有时间) - 是否有人足够熟悉 Firefox V3 对任何下载的 EXE 文件调用扫描的能力,以了解它是如何工作的? 我认为任何具有主动保护功能的防病毒程序都会连接到 Windows 并自动运行。 Firefox 是否会检测到这些钩子,并通过创建 Windows 文件夹并将文件从临时文件名下载后移动到名称中包含 .exe 的新文件名来启动它们,从而触发自动保护?或者他们还做其他事情吗?

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

此外,我想了解商业防病毒程序为最终用户应用程序集成提供的任何编程 SDK 和 API。特别是 MS Forefront、MS Security Essentials、Norton 或任何其他主要参与者。

opswat 的 OESIS 似乎将此作为商业 SDK 提供/应用程序,这很令人惊讶,因为它可能应该是一个 Windows API,因为我们在这里所做的事情是为了所有必须使用 Windows 的人的公共利益。] - 事实上它是 - 它内置于 Windows shell 中。请参阅此问题中的第一个链接以获取更多资源。

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.

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

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

发布评论

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

评论(1

世俗缘 2024-09-17 21:03:45

我快速搜索了 Mozilla 代码库并找到了这些源文件:

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

靠近顶部的评论可能有您的答案:

下载扫描仪尝试使用
两种不同病毒扫描之一
Windows 上可用的接口 -
IOfficeAntiVirus(Windows 95/NT 4 和
IE 5) 和 IAttachmentExecute (XPSP2
及以上)。后一个界面
支持调用IOfficeAntiVirus
在内部,同时还增加支持
对于 XPSP2+ ADS 分叉,它定义了
安全相关提示开启
下载的内容。

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.

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