FreeBSD 14
Sponsored Link

Install Clam AntiVirus2024/01/22

 
Install Clam AntiVirus to protect your System from Computer Virus.
[1] Install Clamav.
root@dlp:~ #
pkg install -y clamav
root@dlp:~ #
vi /usr/local/etc/freshclam.conf
# line 151 : comment out if you do not use clamd

#
NotifyClamd /usr/local/etc/clamd.conf
# update pattern files manually

root@dlp:~ #
freshclam

ClamAV update process started at Mon Jan 22 13:09:11 2024
daily.cvd database is up-to-date (version: 27161, sigs: 2051323, f-level: 90, builder: raynman)
main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode.cvd database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)

root@dlp:~ #
echo 'clamav_freshclam_enable="YES"' >> /etc/rc.conf

root@dlp:~ #
service clamav-freshclam start

[2] Try to scan your system.
# scan [/home]

root@dlp:~ #
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 8683194
Engine version: 1.2.1
Scanned directories: 3
Scanned files: 14
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 14.334 sec (0 m 14 s)
Start Date: 2024:01:22 13:15:46
End Date:   2024:01:22 13:16:00

# download trial virus

root@dlp:~ #
fetch https://files.trendmicro.com/products/eicar-file/eicar.com

fetch: https://www.eicar.org/download/eicar.com: size of remote file is not known
eicar.com                                               59 kB  114 kBps    01s

root@dlp:~ #
clamscan --infected --remove --recursive .

# test virus is detected and removed

/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 8683194
Engine version: 1.2.1
Scanned directories: 1
Scanned files: 9
Infected files: 1
Data scanned: 0.01 MB
Data read: 0.01 MB (ratio 1.50:1)
Time: 0.024 sec (0 m 0 s)
Start Date: 2024:01:22 16:09:20
End Date:   2024:01:22 16:09:20
Matched Content