Installing Rkhunter (Rootkit Hunter) in RHEL, CentOS and Fedora

cd /tmp
# wget http://ncu.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz

# tar -xvf rkhunter-1.4.0.tar.gz
# cd rkhunter-1.4.0
# ./installer.sh --layout default --install

# /usr/local/bin/rkhunter --update
# /usr/local/bin/rkhunter --propupd

nano /etc/cron.daily/rkhunter.sh

Add the following lines of code to it and replace “YourServerNameHere” with your “Server Name” and “[email protected]” with your “Email Id“.

#!/bin/sh
(
/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run (servername)' [email protected]

Set execute permission on the
file.

# chmod 755 /etc/cron.daily/rkhunter.sh

To scan the entire file system, run the Rkhunter as a root user.

# rkhunter --check

The above command generates log file under /var/log/rkhunter.log with the checks results made by Rkhunter. For more information and options please run the following command.

# rkhunter --help
  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

Linux Malware Detect

Linux Malware Detect (LMD) uses MD5 file hashes and hex pattern matches to identify malware....

How to install ConfigServer ModSecurity Control (cmc)

wget http://configserver.com/free/cmc.tgztar zxf cmc.tgzcd cmcsh install.sh

How to install mod_evasive on a cPanel server

How to install mod_evasive on a cPanel servers mkdir download cd download wget...

Installing and Configuring CSF Firewall

Installing and Configuring CSF Firewall This article demonstrates how to install and configure...