文章目录
clamav官网地址
clamav git 地址:https://github.com/Cisco-Talos/clamav
clamav官网:https://www.clamav.net/
简介
clamav 是一个开源的防病毒工具,主要对 邮件扫描。
clamav 开源工具介绍 参考
centos7安装clamav
参考: centos 7中安装clamav-0.105.0 或是其他版本(rpm安装)
参考:Linux病毒扫描工具ClamAV(Clam AntiVirus)安装使用
clamscan文件扫描
参考:
clamd服务
clamav扫描文件方式
- 可以通过命令行工具clamscan 进行文件扫描
- 启动服务clamd, 使用clamdscan进行文件扫描
- 启动服务clamd,使用golang的 go-clamd 库进行文件扫描
- 启动服务clamd,使用python的 pyclam 库进行文件扫描
- 参考:使用ClamAV杀毒软件clamd常驻服务教程与范例
clamd配置文件
配置文件参考:ClamAV 之 Clamd.conf 配置文件参数文档
配置文件地址:clamd.conf 配置文件地址
采用rpm安装之后的配置文件路径:/usr/local/etc/clamd.conf
可以使用命令查找配置文件的路径:
find / -name clamd.conf
clamd启动配置参数:(其他许多参数默认即可)
# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
LocalSocket /tmp/clamd.socket
# TCP port address.
# Default: no
TCPSocket 3310
# Close the connection when the data size limit is exceeded.
# The value should match your MTA's limit for a maximum attachment size.
# Default: 100M
StreamMaxLength 25M
# Waiting for data from a client socket will timeout after this time (seconds).
# Default: 120
ReadTimeout 300
# Maximum number of threads running at the same time.
# Default: 10
MaxThreads 20
# Maximum length the queue of pending connections may grow to.
# Default: 200
MaxConnectionQueueLength 30
clamdscan命令的使用
参考:参考
golang调用clamav
go-clamd git 地址: https://github.com/dutchcoders/go-clamd