Thursday, February 9, 2012

Install CHKROOTKIT on centos

Advertisements

This post explains how to install chkrootkit on linux.

Downloading and installing chkrootkit
Change to usr/local/src to download the package
#cd /usr/local/src

Download the package
#wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz

Untar the source
#tar -zxvf chkrootkit.tar.gz



#mkdir /usr/local/chkrootkit
#mv /usr/local/src/chkrootkit*/* /usr/local/chkrootkit
#cd /usr/local/chkrootkit
#make sense

Now adding the cron entry :
#vi /etc/cron.daily/chkrootkit.sh
#!/bin/sh
(
/usr/local/chkrootkit/chkrootkit
) | /bin/mail -s 'CHROOTKIT Daily Run (PutServerNameHere)' your@email.here

Securing the script
#chmod 700 /etc/cron.daily/chkrootkit.sh

No comments:

Post a Comment

Be nice. That's all.