Advertisements
Downloading and installing chkrootkit
Change to usr/local/src to download the package
Change to usr/local/src to download the package
#cd /usr/local/src
Download the package
Download the package
#wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
Untar the source
Untar the source
#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
#chmod 700 /etc/cron.daily/chkrootkit.sh
No comments:
Post a Comment
Be nice. That's all.