{"id":44,"date":"2008-02-26T13:22:08","date_gmt":"2008-02-26T18:22:08","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=44"},"modified":"2009-10-30T14:06:52","modified_gmt":"2009-10-30T19:06:52","slug":"how-do-i-quickly-set-up-nessus-on-linux","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=44","title":{"rendered":"How do I quickly set up Nessus on Linux?"},"content":{"rendered":"<p>Here is my version of a Nessus Cheat Sheet. This is not meant to be a perfect implementation guideline, just a cheat sheet to get you up and running quickly! There are more advanced features and elements that I do not go into, that you should explore. This Cheat Sheet shows you how to build a one-host client and server setup, though this is not likely to be how you&#8217;d do it in production, for reasons of performance, proximity, etc&#8230;<\/p>\n<p>By the way, I might be Your Linux Guy, but for this post, I&#8217;m assuming that *you* are someone else&#8217;s Linux person&#8230;. and I&#8217;m assuming you already know *why* you would want to install and use Nessus&#8230;  \ud83d\ude09 This is why I tagged this as &#8220;advanced&#8221;.<\/p>\n<p>The first thing you need to do is to get the software and install it. I&#8217;m not sure where you&#8217;ll get it from, but for me it was already in my distro (Opensuse 10.3). You can use your software installer, (apt-get, rpm, whatever) or do as I did:<\/p>\n<p><code><font size=\"1\">yast -i nessus-core<\/font><\/code><\/p>\n<p>(&#8230;yast will also install required items <code><font size=\"1\">nessus-libraries<\/font><\/code> and <code><font size=\"1\">libnasl<\/font><\/code>)<\/p>\n<p>&#8230;but if you&#8217;re not using Suse, you may have to get the files directly from Nessus to get it installed. But, at this point, if you were to try:<br \/>\n<code><font size=\"1\">rcnessusd start<\/font><\/code><\/p>\n<p>&#8230;you&#8217;d get a failure, like this:<br \/>\n<code><font size=\"1\">Starting nessusd<br \/>\nPlease create your SSL certificate with nessus-mkcert<\/font><\/code><\/p>\n<p>&#8230;since Nessus needs a certificate for private communication between the daemon and client. Remember, that although we are setting up Nessus here on one machine, it is really designed to be distributed. Anyway, make your certificate with the following command:<br \/>\n<code><font size=\"1\">nessus-mkcert<\/font><\/code><\/p>\n<p>&#8230;and you should receive a happy message about the CA being created, then the script prompts you through the rest of the certificate creation.<\/p>\n<p>So far, so good. Next, since it is a client-server relationship, you need to create a user ID with which to log in to the server from the client, right? You do that with this command:<\/p>\n<p><code><font size=\"1\">nessus-adduser<\/font><\/code><\/p>\n<p>&#8230;and again, you receive happy messages about the user creation, and are prompted through the steps. A small caveat here for first-timers; when the prompt shows:<\/p>\n<p><code><font size=\"1\">Authentication (pass\/cert) [pass] :<\/font><\/code><\/p>\n<p>&#8230;it means that it wants you to decide whether you want to use the password method OR certificate method (not an SSL cert, but an authentication cert), and you can hit enter to accept the default of &#8220;password&#8221;. Some people think this is a password creation prompt, and try to type in a password for the user&#8230; I did this the first time, myself. That comes next in the prompts only if you choose the password method (which I strongly advise you to do if this is the first time you&#8217;re attempting this, especially for the Cheat Sheet).<\/p>\n<p>Next, when you are prompted at the &#8220;User rules&#8221; summary, just do a <code><font size=\"1\">ctrl+D<\/font><\/code> to end the dialog. Even in a production environment, you probably don&#8217;t want to place constraints in your initial user. However, subsequent users &#8212; for example, day-to-day administrators that might be looking for limited scan results or to read scans &#8212; should definitely have rules applied to them.<\/p>\n<p>At this point, you could launch the client and log in. But wait! There&#8217;s more! You&#8217;re going to want to run it with updated plug-ins, right? But at this point, if you tried to update them with:<\/p>\n<p><code><font size=\"1\">nessus-update-plugins<\/font><\/code><\/p>\n<p>&#8230;you&#8217;d get a 404 error and a warning that you could not retrieve the plugins. This is because the fine people at Nessus want to know that you are using their fine software and their fine updates. Not the *finest* updates, however&#8230; no, you have to pay for those. But if you register, you get to use seven-day-old updates for free. Not bad!<\/p>\n<p>So to get that ball rolling, fire up the &#8216;fox and go to <code><font size=\"1\">http:\/\/66.240.11.101\/plugins\/<\/font><\/code> and decide if you want\/need the purchasable version of the free version (with 7-day delay). Then click on &#8220;Obtain an activation code&#8221;. You will get an email with the resulting command and code, for example (one code per registration, and yes, it&#8217;s tracked):<br \/>\n<code><font size=\"1\">nessus-fetch --register &lt;some registration number&gt;<\/font><\/code><\/p>\n<p>&#8230;upon entering this, you get:<br \/>\n<code><font size=\"1\">Your activation code has been registered properly - thank you.<br \/>\nNow fetching the newest plugin set from plugins.nessus.org...<br \/>\nYour Nessus installation is now up-to-date.<br \/>\nMake sure to call regularly use the command 'nessus-update-plugins' to stay up-to-date<br \/>\nTo automate the update process, please visit &lt;http:\/\/www.nessus.org\/documentation\/index.php?doc=cron&gt;<\/font><\/code><\/p>\n<p>&#8230;on a production system, it&#8217;s a darned good idea to automate the plugins with cron like they suggest, but that&#8217;s up to you. Now, all you really have left to do is to start the daemon with the following commands (the following is on Suse, your distro might be something like <code><font size=\"1\">\/etc\/init.d\/nessusd start<\/font><\/code>):<br \/>\n<code><font size=\"1\">rcnessusd stop<br \/>\nrcnessusd start<\/font><\/code><\/p>\n<p>&#8230;and launch the client via the gui or with the command:<\/p>\n<p><code><font size=\"1\">nessus<\/font><\/code><\/p>\n<p>&#8230;Now go and enjoy. Log in and teach yourself how to use it. Scan yourself! Scan your friends! Scan your eneMieS! Just don&#8217;t scan Your Linux Guy&#8230; please&#8230;.<\/p>\n<p>\ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is my version of a Nessus Cheat Sheet. This is not meant to be a perfect implementation guideline, just a cheat sheet to get you up and running quickly! There are more advanced features and elements that I do&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=44\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,31],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-advanced","category-nessus"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-I","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":1,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}