Skip to content

Instantly share code, notes, and snippets.

@hkhoshraftar
Last active March 6, 2021 00:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkhoshraftar/120520fb85af086261235f62174cf9c5 to your computer and use it in GitHub Desktop.
Save hkhoshraftar/120520fb85af086261235f62174cf9c5 to your computer and use it in GitHub Desktop.
sudo yum install clamav clamav-update clamav-scanner-systemd clamav-server-systemd -y
sudo sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
sudo sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf
nano /etc/freshclam.conf
==>
HTTPProxyServer ---
HTTPProxyPort --
HTTPProxyUsername --
HTTPProxyPassword --
sudo freshclam
systemctl start freshclam
systemctl enable freshclam
systemctl start clamd@scan
systemctl enable clamd@scan
sudo clamscan --infected --recursive --exclude-dir="^/sys" /
sudo yum install rkhunter
sudo rkhunter --propupd
sudo rkhunter --checkall
sudo cat /var/log/rkhunter/rkhunter.log | grep -i warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment