当前位置:网站首页>杀毒软件 clamav 的安装和使用
杀毒软件 clamav 的安装和使用
2022-07-27 00:13:00 【青霄】
目录
一、clamAV介绍
- clamscan 命令:通用,不依赖服务,命令参数较多,执行速度稍慢
- clamdscan 命令:是一个搭配clamd常驻服务的扫毒工具,功能非常类似clamscan,执行效率较高,但是可用的参数较少(因为部分功能是由 clamd 控制的)。不用带 -r ,默认会递归扫描子目录
二、安装ClamAV、clamdscan
apt -y install clamav clamtk clamav-daemon clamdscan device-tree-compiler


三、手动更新数据库
四、用法
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*4.1、clamscan用法
-i告诉ClamAV仅显示受感染的文件
-r`标志使扫描递归
--max-scansize=标志设置您希望ClamAV爬网的最大数据量。最大值是4000M请记住,这是正在读取的实际数据,而不是文件的大小。
--max-filesize=设置您要ClamAV扫描的文件的最大大小。2、clamav的配置文件:/etc/clamav/freshclam.conf
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav # 病毒库位置
DNSDatabaseInfo current.cvd.clamav.net
ConnectTimeout 30
ReceiveTimeout 0 # 增加ClamAV超时
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf # 配置
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
4.2、clamdscan用法
Clam AntiVirus: Daemon Client 0.103.5
By The ClamAV Team: https://www.clamav.net/about.html#credits
(C) 2022 Cisco Systems, Inc.
clamdscan [options] [file/directory/-]
--help -h Show this help
--version -V Print version number and exit
--verbose -v Be verbose
--quiet Be quiet, only output error messages
--stdout Write to stdout instead of stderr. Does not affect 'debug' messages.
(this help is always written to stdout)
--log=FILE -l FILE Save scan report in FILE
--file-list=FILE -f FILE Scan files from FILE
--ping -p A[:I] Ping clamd up to [A] times at optional interval [I] until it responds.
--wait -w Wait up to 30 seconds for clamd to start. Optionally use alongside --ping to set attempts [A] and interval [I] to check clamd.
--remove Remove infected files. Be careful!
--move=DIRECTORY Move infected files into DIRECTORY
--copy=DIRECTORY Copy infected files into DIRECTORY
--config-file=FILE Read configuration from FILE.
--allmatch -z Continue scanning within file after finding a match.
--multiscan -m Force MULTISCAN mode
--infected -i Only print infected files 只输出发现的病毒文件
--no-summary Disable summary at end of scanning
--reload Request clamd to reload virus database
--fdpass Pass filedescriptor to clamd (useful if clamd is running as a different user)
--stream Force streaming files to clamd (for debugging and unit testing)


五、python判定有无检测出病毒
import re
result = '''
----------- SCAN SUMMARY -----------
Infected files: 1
Time: 0.006 sec (0 m 0 s)
Start Date: 2022:07:15 13:34:40
End Date: 2022:07:15 13:34:40
'''
t = re.findall("Infec[\D]+([\d])", result)
print(t) # ['1'] 边栏推荐
- After working in Tencent testing post for 5 years, I was ruthlessly dismissed in July, trying to wake up my brother who was still paddling
- Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
- Greenplum【部署 08】数据库小版本升级流程及问题处理 Error: open-source-greenplum-db-6 conflicts with
- 软件测试相关试题知识点
- 快速排序(Quick sort)
- Non global function of lua function
- Redis installation and operation (Linux)
- 数据库读写分离和分库分表
- 数据资产管理的概念
- time模块: 时间戳、结构化时间、格式化时间的获取与相互转化
猜你喜欢

Why do people like to rank things

Functions of libraries and Archives

What is a process?

static关键字

聊聊连接池和线程

Jmeter接口测试, 快速完成一个单接口请求

Favicon web page collection icon online production PHP website source code /ico image online generation / support multiple image format conversion

Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community

C语言程序的编译上

次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
随机推荐
Sort icons with swiper
Ubuntu基于docker的mysql主从数据库配置
消息队列学习 -- 概念
ansible系列之:不收集主机信息 gather_facts: False
素因子分解--C(gcc)--PTA
多线程的具体使用
小程序utils
C language program compilation (preprocessing)
云开发寝适闹钟微信小程序源码
Favicon网页收藏图标在线制作PHP网站源码/ICO图片在线生成/支持多种图片格式转换
Basic theoretical knowledge of software testing - concept
Mysql 5.7 取分组第一条
How to do the system security test? Let's talk about it in detail
Getlocation:fail the API need to be declared in the requiredprivateinfo field in app.json
[nisactf 2022] upper
swiperjs自定义宽度
【无标题】
CS224W fall 1.2 Applications of Graph ML
Web3.0世界知识体系分享-什么是Web3.0
聊聊连接池和线程