https://www.clamav.net/
1) 安装
$ sudo apt-get install clamav clamtk clamav-daemon libclamunrar7
* clamtk 是 GUI
2) 更新
$ sudo freshclam
如果出现
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
解决方法
$ sudo lsof /var/log/clamav/freshclam.log
$ sudo kill -9 pid
3) 扫描 (只列出受病毒或木马感染的文件)
$ sudo clamscan -r --bell --exclude-dir=/host -i /
4) 自动化
升级
$ at 3:30 tomorrow
at>clamscan -i /home/user > mail user@example.com
at> <CTRL-D>
job 3 at 2005-04-28 03:30
或
$ sudo gedit /etc/crontab
0 3 * * * root /usr/bin/freshclam --quiet -l /var/log/clamav/clamav.log #每天3点升级
扫描
00 00 * * * sudo clamscan --recursive --remove /home
没有评论:
发表评论