Install Clam AntiVirus2019/04/23 |
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 root@dlp:~# systemctl stop clamav-freshclam
# update pattern files manually root@dlp:~# freshclam Tue Apr 22 19:01:45 2019 -> ClamAV update process started at Tue Apr 23 11:01:45 2019 Tue Apr 22 19:01:45 2019 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr) Tue Apr 22 19:01:45 2019 -> daily.cvd is up to date (version: 25427, sigs: 1556107, f-level: 63, builder: raynman) Tue Apr 22 19:01:45 2019 -> bytecode.cvd is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)root@dlp:~# systemctl start clamav-freshclam
|
[2] | Try to scan. |
root@dlp:~# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 6113856 Engine version: 0.100.3 Scanned directories: 3 Scanned files: 3 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 24.058 sec (0 m 24 s) # download test virus
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed. # just detected
----------- SCAN SUMMARY ----------- Known viruses: 6113856 Engine version: 0.100.3 Scanned directories: 2 Scanned files: 5 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 24.177 sec (0 m 24 s) |
|