echo "" echo " - Installing RKHunter" echo "" cd /root/setup echo " * Removing old files.." rm -rf rkhunter-* echo " * Fetching archive.." wget -q http://easynews.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.2.9.tar.gz echo " * Untarring archive.." tar -zxf rkhunter-* cd rkhunter-* echo " * Installing.." sh installer.sh > /dev/null 2>&1 echo " * Fetching Voxxit configuration.." cd /usr/local/etc/ && rm -rf rkhunter.conf cat << CONF > /usr/local/etc/rkhunter.conf # RKHunter Configuration LATESTVERSION=/rkhunter_latest.dat UPDATEFILEINFO=/rkhunter_fileinfo.dat MAIL-ON-WARNING=noc@voxxit.net INSTALLDIR=/usr/local/rkhunter CONF echo " * Updating & initial check.." /usr/local/bin/rkhunter --update > /dev/null 2>&1 /usr/local/bin/rkhunter -c --createlogfile --skip-keypress --checkall > /dev/null 2>&1 echo " * Installing daily cronjob.." rm -rf /etc/cron.daily/rkhunter touch /etc/cron.daily/rkhunter cat << CONF > /etc/cron.daily/rkhunter #!/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' noc@voxxit.net CONF sleep 1