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

Next Post

Install DDos Deflate on Linux

Sun Jul 13 , 2014
x Untuk mengetahui aktivitas koneksi yang sedang mengakses server, silahkan gunakan perintah berikut: netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n Step 1: Installing # wget http://www.inetbase.com/scripts/ddos/install.sh # chmod 0700 install.sh # ./install.sh Step 2: Configuration Edit konfigurasi DDoS Deflate: […]
%d bloggers like this: