安装很简单:
点击(此处)折叠或打开
- apt-cache search clamav
- apt-get install clamav clamtk clamav-daemon
安装完成后先man 一下命令行扫描工具.也可以打开clamtk看下GUI.
点击(此处)折叠或打开
- man clamscan
点击(此处)折叠或打开
- clamscan -v *
- LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
- ERROR: Can't open file or directory
点击(此处)折叠或打开
- root@kali:# freshclam
- ERROR: /var/log/clamav/freshclam.log is locked by another process
- ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
- root@kali:# ps -ef|grep freshclam
- clamav 22688 1 0 21:18 ? 00:00:00 /usr/bin/freshclam -d --foreground=true
- root 25334 6396 0 21:23 pts/1 00:00:00 grep freshclam
http://www.clamav.net/documents/mirrors
在 /etc/clamav/freshclam.conf 里面增加了一行
点击(此处)折叠或打开
- # Check for new database 24 times a day
- Checks 24
- DatabaseMirror db.cn.clamav.net
然后我用了root账户重新freshclam.
点击(此处)折叠或打开
- root@kali:~# freshclam
- ClamAV update process started at Wed May 31 11:01:54 2017
- Downloading main.cvd [ 11%]
很有趣,我发现我用root 执行,但是仍然su到clamav这个账户去了.
点击(此处)折叠或打开
- root@kali:~# ps -ef|grep freshclam
- clamav 5530 5182 0 11:01 pts/0 00:00:00 freshclam
参考资料:
https://wiki.archlinux.org/index.php/ClamAV
https://wiki.debian.org/ClamAV