[1] Install Clamav
[root@mail ~]# yum --enablerepo=rpmforge -y install clamav # install from RPMforge
[root@mail ~]# vi /etc/freshclam.conf
# line 122: make it comment
#NotifyClamd /etc/clamd.conf
[root@mail ~]# freshclam# update pattern files
ClamAV update process started at Sun Jul 10 22:10:08 2011
main.cvd is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)
daily.cvd is up to date (version: 13304, sigs: 144473, f-level: 60, builder: guitar)
bytecode.cvd is up to date (version: 143, sigs: 40, f-level: 60, builder: edwin)
[2] Try to scan
# try to scan
[root@mail ~]# clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 989350
Engine version: 0.97.1
Scanned directories: 3
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 2.060 sec (0 m 2 s)
# try to download trial virus
[root@mail ~]# wget http://www.eicar.org/download/eicar.com
[root@mail ~]# clamscan --infected --remove --recursive .
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed. # just detected----------- SCAN SUMMARY -----------
nown viruses: 989350
Engine version: 0.97.1
Scanned directories: 1
Scanned files: 13
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 2.079 sec (0 m 2 s)
'Linux > CentOS' 카테고리의 다른 글
DNS 설정 (0) | 2012.03.30 |
---|---|
CentOS에서 rpm 데이터베이스 문제로 yum을 사용할 수 없을때 (0) | 2012.03.09 |
Linux용 백신관리자 (0) | 2012.03.09 |
웹 DDOS 공격 방어(mod_evasive) (0) | 2012.03.09 |
mod_throttle Apache 2.x용 나올 때까지는 mod_CBand (0) | 2012.03.08 |