Nytro Posted September 5, 2011 Report Posted September 5, 2011 Install RKHunterProduct Name: RKHunterProduct Version: 1.3.6Homepage: Rootkit.nl - Protect your machineDescription: rkhunter (Rootkit Hunter) is a Unix-based tool that scans for rootkits, backdoors and possible local exploits. It does this by comparing MD5 hashes of important files with known good ones in online database, searching for default directories (of rootkits), wrong permissions, hidden files, suspicious strings in kernel modules, and special tests for Linux and FreeBSD.Step 1: Downloading, Installing and Updateingcd /usr/local/srcwget http://dfn.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.6.tar.gzwget http://dfn.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.6.tar.gz.sha1.txtsha1sum -c rkhunter-1.3.6.tar.gz.sha1.txttar -zxvf rkhunter-1.3.6.tar.gzcd rkhunter-1.3.6./installer.sh --layout default --install/usr/local/bin/rkhunter --update/usr/local/bin/rkhunter --propupdrm -Rf /usr/local/src/rkhunter*cdStep 2: Adding daily cron jobStep 2.1: Create run-filenano -w /etc/cron.daily/rkhunter.shStep 2.2: Add this text to rkhunter.sh#!/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.hereREMEMBER TO CHANGE (PutYourServerNameHere) AND your@email.hereStep 2.3: Chmod rkhunter.sh to root onlychmod 700 /etc/cron.daily/rkhunter.shThere you go! should be installed, and you will get a mail daily with a status on your systemSursa: Install RKHunter | SecureCentos.com Quote
download3r Posted October 6, 2011 Report Posted October 6, 2011 Very useful tutorial ! clear and simple.Thank you Nytro Quote