Fedora 21
Sponsored Link

Clamav AntiVirus
2014/12/11
 
Install Clam AntiVirus to protect from virus.
[1] Install Clamav.
[root@dlp ~]#
yum -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: comment out

#
Example
[root@dlp ~]#
vi /etc/sysconfig/freshclam
# end line: comment out

#
FRESHCLAM_DELAY=disabled-warn
[root@dlp ~]#
freshclam
# update pattern files

ClamAV update process started at Fri Dec 12 15:19:11 2014
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 19768, sigs: 1287962, f-level: 63, builder: jesler)
bytecode.cvd is up to date (version: 243, sigs: 45, f-level: 63, builder: dgoddard)
[2] Try to scan.
# try to scan

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 3706671
Engine version: 0.98.5
Scanned directories: 2
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 10.715 sec (0 m 10 s)

# download trial virus

[root@dlp ~]#
wget http://www.eicar.org/download/eicar.com
[root@dlp ~]#
clamscan --infected --remove --recursive .

# just detected

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 3706671
Engine version: 0.98.5
Scanned directories: 3
Scanned files: 9
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 10.704 sec (0 m 10 s)
Matched Content
 
Tweet