Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-07, 13:55
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default Rkhunter Installation

Rkhunter is a very useful tool that is used to check for trojans, rootkits, and other security problems. This tutorial will touch on installing and setting up a daily report for rkhunter.

Update Aug. 23, 2005
Installing:

wget http://downloads.rootkit.nl/rkhunter-1.2.7.tar.gz
tar -zxvf rkhunter-1.2.7.tar.gz
cd rkhunter-1.2.7
./installer.sh

Now you can run a test scan with the following command:

/usr/local/bin/rkhunter -c
How to setup a daily scan report?

pico /etc/cron.daily/rkhunter.sh

add the following replacing your email address:

#!/bin/bash
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Daily Rkhunter Scan Report" email@domain.com)

chmod +x /etc/cron.daily/rkhunter.sh

Updating rkhunter
gets the latest database updates from their central server and matches your OS better to prevent false positives.

rkhunter --update
I just got a false positive!! What do i do?

False positives are warnings which indicates there is a problem, but aren't really a problem. Example: some Linux distro updated a few common used binaries like `ls` and `ps`. You (as a good sysadmin) update the new packages and run (ofcourse) daily Rootkit Hunter. Rootkit Hunter isn't yet aware of these new files and while scanning it resports some "bad" files. In this case we have a false positive. You could always have your datacenter or a system administrator check out the server to verify that it is not compromised.

More information on rkhunter can be found here: http://www.rootkit.nl
__________________
insert sig here
Reply With Quote
  #2 (permalink)  
Old 11-23-07, 08:42
BOD Member
 
Join Date: Nov 2005
Posts: 112
Send a message via MSN to bill mates
Default

You can get the latest database updates from their central server and matches
your OS better to prevent false positives.
Reply With Quote
  #3 (permalink)  
Old 11-24-07, 06:45
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default

RkHunter's major benefit is it scans files and systems for known and unknown rootkits, backdoors, and sniffers. It's package contains one shell script, a few text-based databases, and optional Perl modules.
Reply With Quote
  #4 (permalink)  
Old 12-01-07, 13:34
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default

it will never find my rootkit muwahahahaha


o wait i dont have a rootkit owwwww

(i quit hacking)
i need to join AA i mean HA hackers anonymous
__________________
insert sig here
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:09.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.