Install Linux Rkhunter (Rootkit Hunter)

Step 1: Downloading Rkhunter

Pertama download Rkhunter versi terbaru, gunakan perintah berikut:

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

Step 2: Installing Rkhunter

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

Step 3: Updating Rkhunter

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

Step 4: Setting Cronjob and Email Alerts

# nano /etc/cron.daily/rkhunter.sh

ubah yang telah ditandai

#!/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 (PutYourServerNameHere)' your@email.com

Set permission filenya

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

Step 5: Manual Scan and Usage

# rkhunter --check

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: