clamav-win32

ClamWin clamav win32 移植版。(ClamWin clamav win32 port.)

Github stars Tracking Chart

ClamAV 原生 win32 移植

版权所有(c)2005-2019 Gianluigi Tiesi sherpya@netfarm.it

这个程序是免费软件;您可以根据自由软件基金会发布的 GNU Library General Public License 的条款重新分发和/或修改它;许可证的第2版,或(根据您的选择)任何更高版本。

该库的发布是希望它有用,但没有任何担保;甚至没有适销性或特定用途适用性的暗示保证。有关更多详细信息,请参阅GNU库通用公共许可证。您应该已经收到了GNU Library General Public License 的副本以及该软件;如果没有,请写信给基金会公司,51,Franklin Street,Fifth Floor,Boston,MA 02110-1301 USA

特性

  • [clamav] 占用空间小(所有发布都在 1.5 MiB 左右 —— 除了 llvm fat;)dll)
  • [clamav] 原生 win64 移植
  • [clamav] 支持 unc 路径,exotic/long 文件名
  • [clamav] 漂亮的图标;)
  • [clamscan] 内存扫描器(在内存中加载模块扫描 n盘)
  • [llvm] jit dll 是可选的,因为旧的操作系统不支持将以 dinamically 方式加载
  • [freshclam] win98/ME 上的原生 dns txt 查询 / Win2k+ 上的 DnsAPI 查询
  • [clamd/freshclam] 也作为 Windows 服务

获取资源

克隆存储库使用:

git clone --recursive https://github.com/clamwin/clamav-win32.git

笔记

您可以使用 clamav.reg 文件在注册表中存储数据库和配置路径(我将来可以创建一个 nsis 安装程序),路径也可以是 REG_EXPAND_SZ,这里允许使用环境变量(即您可以使用 %HomeDrive%\ClamAV 等路径)。

要使用使用 Visual Studio 2005 编译的二进制文件,需要msvcrt80并排组装,“简单方法”是在可执行文件目录中解压缩 Microsoft.VC80.CRT.zip,目录 Microsoft.VC80.CRT 必须按原样放置,直接将 dll 放在可执行文件的同一目录中将无法正常工作。在 Windows 9x 上,您应该将 dll 和清单放在 Windows 系统目录中,而不使用 Microsoft.VC80.CRT 目录。有关此内容的详细信息,请参阅相关的 msdn-page。您也可以直接从 Microsoft 下载 redist 包。

libclamunrar 在 Windows 9x 上使用时需要 unicows.dll,它捆绑在存档中,如果不使用 Windows 9x,可以安全地删除它。

Overview

Name With Ownerclamwin/clamav-win32
Primary LanguageC
Program languageC (Language Count: 4)
PlatformWindows
License:
Release Count21
Last Release Namev0.103.11 (Posted on )
First Release Namev0.99.3 (Posted on )
Created At2017-12-20 16:08:33
Pushed At2023-11-10 20:30:21
Last Commit At
Stargazers Count55
Watchers Count13
Fork Count21
Commits Count204
Has Issues Enabled
Issues Count18
Issue Open Count9
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

ClamAV native win32 port

Copyright (c) 2005-2019 Gianluigi Tiesi sherpya@netfarm.it

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this software; if not, write to the
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Features

  • [clamav] small footprint (all distribution is around 1.5 MiB - except llvm fat ;) dll)
  • [clamav] native win64 port
  • [clamav] support for unc paths, exotic/long file names
  • [clamav] nice icons ;)
  • [clamscan] memory scanner (in memory loaded modules are scanned n-disk)
  • [llvm] jit dll is optional, and since not supported on old os will be loaded dinamically
  • [freshclam] native dns txt query on win98/ME / DnsAPI query on Win2k+
  • [clamd/freshclam] also as Windows Services

Getting sources

Clone repository using:

git clone --recursive https://github.com/clamwin/clamav-win32.git

Notes

  • You can store database and config paths in the registry using
    clamav.reg file (I may make a nsis installer in the future),
    paths can be also REG_EXPAND_SZ, environment variables are
    allowed here (i.e. you can use paths like %HomeDrive%\ClamAV).

  • libclamunrar needs unicows.dll when used on Windows 9x, you can download from
    Microsoft Layer for Unicode

Running Clamd and FreshClam as daemon

  • import clamav.reg file
  • create C:\ClamAV and C:\ClamAV\db
  • put executables in C:\ClamAV
  • create freshclam.conf in C:\ClamAV
  • create clamd.conf in C:\ClamAV
  • install the service with (in Administrator cmd prompt): clamd.exe --install
  • launch freshclam.exe to download the virus database

freshclam.conf

DatabaseMirror database.clamav.net
DNSDatabaseInfo current.cvd.clamav.net

clamd.conf

TCPSocket 3310
TCPAddr 127.0.0.1
MaxThreads 2
LogFile C:\ClamAV\clamd.log
DatabaseDirectory C:\ClamAV\db

Make sure C:\Clamav is writable by the System Service user.

Finally start the service with net start clamd


Please dot report bugs directly to bugs@clamav.net

To the top