SOURCECODEBD.NET

Live Experience

Articles

Install ClamAV

[root@dlp ~]# yum -y install clamav clamav-update
[root@dlp ~]# vi /etc/freshclam.conf

# line 8: make it comment
#Example

[root@dlp ~]# freshclam   # update policy file
ClamAV update process started at Wed Jun 10 20:18:53 2009
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
Downloading daily.cvd [100%]
daily.cvd updated (version: 9454, sigs: 27600, f-level: 43, builder: acab)
Database updated (572635 signatures) from database.clamav.net (IP: 219.94.128.99)

[root@dlp ~]# clamscan --infected --remove --recursive /home

----------- SCAN SUMMARY -----------
Known viruses: 654487
Engine version: 0.95.2
Scanned directories: 3
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 1.691 sec (0 m 1 s)

# try to download trial virus
[root@dlp ~]# wget http://www.eicar.org/download/eicar.com
[root@dlp ~]# clamscan --infected --remove --recursive .
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.
 
----------- SCAN SUMMARY -----------
Known viruses: 654487
Engine version: 0.95.2
Scanned directories: 1
Scanned files: 11
Infected files: 1  # just detected

Data scanned: 0.05 MB
Data read: 0.02 MB (ratio 2.00:1)
Time: 1.613 sec (0 m 1 s)

You are here: Home