<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - How To Install Root Kit Hunter</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>How To Install Root Kit Hunter</h1>
</div>
<div id="content">



<div class="wikitext"><h3>Howto install RootKit Hunter.</h3>
<hr />
<p class="tightenable top bottom">Author : Muzo<br />
Contributer : mbachmann<br />
Sources : <a href="http://www.rootkit.nl/articles/rootkit_hunter_faq.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />RootKitHunter</span> FAQ</a> <br />
Tested on SME Version 5.6 GPL <br />
Updated : 9 Apr 2004 <br />
License : GPL <br /></p>
<hr />
<p class="tightenable top">You wan't to be sure that you don't have any rootkit on you're SME box?<br />
Install RootKitHunter</p>
<hr />
<h4>1) Download RootKitHunter</h4>
<ul><li class="tightenable top bottom">Download latest version of RootKitHunter from RootKit project page</li>
</ul>
<p class="tightenable top bottom"><br />
<a href="http://www.rootkit.nl/projects/rootkit_hunter.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />RootKit</span> project page</a>
<br /> <br />
Wedon't need (i think) &quot;3rd party rpm's&quot;
<br /> <br /></p>
<hr />
<h4>2) Install</h4>
<ul><li class="tightenable top bottom">Put your root kit hunter in an iBay or in /tmp dir ( It doesn't matter where you save the tarball).</li>
<li class="tightenable top bottom">Unpack it :</li>
</ul>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> tar zxvf rkhunter-X.X.X.tar.gz </code> <br /></p>
</blockquote>
<ul><li class="tightenable top bottom">A new dir is created rkhunter, go into it:</li>
</ul>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> cd rkhunter</code><br /></p>
</blockquote>
<ul><li class="tightenable top bottom">Launch install script :</li>
</ul>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> ./installer.sh</code><br /></p>
</blockquote>
<ul><li class="tightenable top bottom">Now you have a new command :</li>
</ul>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> rkhunter</code></p>
</blockquote>
<p class="tightenable top bottom"><br /> <br /></p>
<hr />
<h4>3) First launch</h4>
<p class="tightenable top bottom"><br />
Now we'll see if your SME Box is &quot;rootkited&quot; :</p>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> rkhunter -c</code><br /></p>
</blockquote>
<p class="tightenable top bottom">All test must be OK
<br /> <br /></p>
<hr />
<h4>4) Cron</h4>
<p class="tightenable top"><br />
RootKitHunter can run as cronjob.<br />
TODO : I'm not a cron guru, so if some one know how to do this, please finished this HowTo. Thanx Muzo
<br /> <br /></p>
<pre class="tightenable"> rkhunter --cronjob</pre>
<p class="tightenable">To run it daily - manual way:
cd to /etc/cron.daily, put a new file with the following content in there and give it a nice name like <b>runrootkit</b>:</p>
<pre class="tightenable">
#!/bin/bash
# Run rkhunter daily
/path/where/rkhunter/is/installed/rkunter &amp;</pre>
<p class="tightenable">The &quot;&amp;&quot; makes it run as a background process.</p>
<p class="tightenable">Execute &quot;chmod 0755&quot; (without quotes) on <b>runrootkit</b> in the cron.daily directory and <b>rkhunter</b> in the rkhunter dir to make them executeable.</p>
<p class="tightenable">They may be easier ways to achieve it, please ad them if you know.</p>
<p class="tightenable"><u title="Empty link to: To Do: Get the results emailed from cron" onmouseover="window.status=&quot;Empty link to: To Do: Get the results emailed from cron&quot;; return true;" onmouseout="window.status='';return true;" class="wikiunknown">To Do: Get the results emailed from cron</u></p>
<hr />
<p class="tightenable top bottom">For more informations read rootkit <a href="http://www.rootkit.nl/articles/" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />articles</span></a>
<br /> <br />
<br /> <br /></p>
<hr />
<p class="tightenable">Back <a href="HowtoEN.html" class="named-wiki" title="HowtoEN">Howto</a></p>
<hr />
<h3>Feedback</h3>
<p class="tightenable top bottom"><a href="HowToInstallRootKitHunter%20Feedback.html" class="wiki">HowToInstallRootKitHunter Feedback</a> Add your comments to this page.
<br /> <br /></p>
<span class="plugin" id="CommentPlugin332"></span><p class="tightenable top bottom"><br /> <br /></p>
<hr />
<h3>Wiki Links List</h3>
<span class="plugin" id="BackLinksPlugin177"><table cellpadding="0" cellspacing="1" border="0" class="pagelist" width="100%" summary="Columns: Page Name, Hits.">
<caption align="top">
Those pages link to <a href="HowToInstallRootKitHunter.html" class="wiki">HowToInstallRootKitHunter</a>:</caption>
<colgroup span="2"></colgroup>
<thead>
<tr>
<th align="center" valign="middle" class="gridbutton"><a href="HowToInstallRootKitHunter.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=%2Bpagename&amp;id=201" class="gridbutton" title="Click to sort by pagename">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Page Name&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
<th align="center" valign="middle" class="gridbutton"><a href="HowToInstallRootKitHunter.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=-hits&amp;id=201" class="gridbutton" title="Click to sort by hits">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Hits&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
</tr>
</thead>
<tbody>
<tr class="evenrow">
<td>&nbsp;<a href="HowToInstallRootKitHunter%20Feedback.html" class="wiki">HowToInstallRootKitHunter Feedback</a>&nbsp;</td>
<td align="right">&nbsp;449&nbsp;</td>
</tr>
<tr class="evenrow">
<td>&nbsp;<a href="HowtoEN.html" class="wiki">HowtoEN</a>&nbsp;</td>
<td align="right">&nbsp;12231&nbsp;</td>
</tr>
<tr class="evenrow">
<td>&nbsp;<a href="Intrusion%20Detection.html" class="wiki">Intrusion Detection</a>&nbsp;</td>
<td align="right">&nbsp;4307&nbsp;</td>
</tr>
</tbody>
</table>
</span></div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;mbachmann&quot;  Last edited on July 22, 2004  5:39 am by &quot;mbachmann&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
