#Time: 2020/02/24
#Author: Xiaohong
#运行环境: Raspberry 3B
如下是Clamscan 帮助文件( clamscan -h 可以列出)
其中,使用了如下参数在测试:
1. 扫描当前目录下的文件,写入日志clam03.log
clamscan -l clam03.log
2.扫描当前目录下的文件,只写入有病毒的文件数,写入日志clam02.log
clamscan -i -l clam02.log
3.扫描并删除感染文件
clamscan --remove /home
4.查看版本
clamscan --version
5.下载病毒测试文件
[root@liumiaocn ~]# ls
anaconda-ks.cfg
[root@liumiaocn ~]# wget http://www.eicar.org/download/eicar.com
--2017-08-04 23:00:41-- http://www.eicar.org/download/eicar.com
Resolving www.eicar.org (www.eicar.org)... 213.211.198.62
Connecting to www.eicar.org (www.eicar.org)|213.211.198.62|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68 [application/octet-stream]
Saving to: ‘eicar.com’
100%[===============================================================================================================================>] 68 --.-K/s in 0.001s
2017-08-04 23:00:43 (92.3 KB/s) - ‘eicar.com’ saved [68/68]
[root@liumiaocn ~]# ls
anaconda-ks.cfg eicar.com
[root@liumiaocn ~]#
————————————————
版权声明:本文为CSDN博主「liumiaocn」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/liumiaocn/article/details/76577867
6. 备注:clamscan/freshclam 文件默认安装在 路径: ./usr/bin 下.
freshclam.conf 文件在 /etc/clamav 下
7.帮助文件:
root@sfpi002:/usr/bin# clamscan --help
Clam AntiVirus: Scanner 0.102.1
By The ClamAV Team: https://www.clamav.net/about.html#credits
(C) 2019 Cisco Systems, Inc.
clamscan [options] [file/directory/-]
--help -h Show this help
--version -V Print version number
--verbose -v Be verbose
--archive-verbose -a Show filenames inside scanned archives
--debug Enable libclamav's debug messages
--quiet &

本文记录了一次在Raspberry Pi 3B上使用Clamscan进行病毒扫描的实践,包括如何配置参数进行扫描,如扫描当前目录并记录到日志,仅输出感染文件数量,删除感染文件,查看版本信息以及获取测试文件的过程。同时提到了Clamscan及其配置文件的默认路径。
836

被折叠的 条评论
为什么被折叠?



