Clam AntiVirus : Install2021/08/19 |
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 Thu Aug 19 14:54:04 2021 -> ClamAV update process started at Thu Aug 19 14:54:04 2021 Thu Aug 19 14:54:04 2021 -> daily.cvd database is up-to-date (version: 26267, sigs: 1966936, f-level: 90, builder: raynman) Thu Aug 19 14:54:04 2021 -> main.cvd database is up-to-date (version: 61, sigs: 6607162, f-level: 90, builder: sigmgr) Thu Aug 19 14:54:04 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)root@dlp:~# systemctl start clamav-freshclam
|
[2] | Try to scan. |
root@dlp:~# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 8558867 Engine version: 0.103.2 Scanned directories: 2 Scanned files: 4 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 17.884 sec (0 m 17 s) Start Date: 2021:08:19 14:55:49 End Date: 2021:08:19 14:56:06 # download test virus
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed. # just detected
----------- SCAN SUMMARY -----------
Known viruses: 8558867
Engine version: 0.103.2
Scanned directories: 1
Scanned files: 5
Infected files: 1
Data scanned: 0.01 MB
Data read: 0.00 MB (ratio 2.00:1)
Time: 18.336 sec (0 m 18 s)
Start Date: 2021:08:19 14:56:31
End Date: 2021:08:19 14:56:50
|
Sponsored Link |
|