Clamav
Jump to navigation
Jump to search
apt-get install -y clamav clamav-daemon systemctl stop clamav-freshclam freshclam systemctl start clamav-freshclam systemctl enable clamav-freshclam ls /var/lib/clamav/ mkdir /test echo "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" > /test/malware-sig-test-eicar.txt # clamscan --infected --recursive /test | tee clamscan.log # --remove clamscan --infected --recursive /test
vim /etc/clamav/freshclam.conf
# Check for new database 24 times a day Checks 24
Run every night at 3am
/etc/cron.d/clamscan
0 3 * * * root scandir=/; sudo clamscan --infected --remove --recursive $scandir | tee -a /var/log/clamscan.log