Ubuntu 17.04
Sponsored Link

Clam AntiVirus : Install2017/04/16

 
Install Clam AntiVirus to protect server from virus.
[1] Install Clamav
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf
# update pattern files

root@dlp:~#
freshclam

Downloading main.cvd [100%]
main.cvd updated (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
Downloading daily.cvd [100%]
daily.cvd updated (version: 23304, sigs: 2049392, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 291, sigs: 55, f-level: 63, builder: neo)
Database updated (6268237 signatures) from db.local.clamav.net (IP: 218.44.253.75)
[2] Try to scan.
root@dlp:~#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 6262521
Engine version: 0.99.2
Scanned directories: 3
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 9.203 sec (0 m 9 s)

# download test 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.    
# just detected
----------- SCAN SUMMARY -----------
Known viruses: 6262521
Engine version: 0.99.2
Scanned directories: 2
Scanned files: 5
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 1.00:1)
Time: 9.360 sec (0 m 9 s)
Matched Content