<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Things and Stuff</title>
	<atom:link href="http://blog.zate.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zate.org</link>
	<description>A Blog about things and stuff.</description>
	<lastBuildDate>Sun, 20 Mar 2011 20:25:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>New feature added.</title>
		<link>http://blog.zate.org/2010/11/12/new-feature-added/</link>
		<comments>http://blog.zate.org/2010/11/12/new-feature-added/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 03:51:05 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[new feature]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[report bugs]]></category>
		<category><![CDATA[today]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=215</guid>
		<description><![CDATA[Talking in the #metasploit channel on freenode.net today someone (you know who you are) gave me the idea of saving the username, password, hostname/ip and port to a nessus.yaml file so they would be saved between metasploit sessions. So tonight, I added that. New commands added are: nessus_save: this will save those 4 items to ~/.msf3/nessus.yaml nessus_logout will now remove that file when invoked. nessus_connect will look for that file and use it&#8217;s contents if invoked with no arguments.  If the file doesn&#8217;t exist, it will display usage. So basically, load nessus, nessus_connect admin:admin@myserver:8834 and then nessus_save.  Now each time you load nessus you just need to nessus_connect and it will reuse those saved creds, until you wiped them out with nessus_logout. Up next is investigating a way to have the nessus.yaml house multiple sets of creds and let you invoke nessus_connect with the set name to login to that server (or the default set if no set name is given).  also need to modify nessus_save to take an argument that it will use for the set name.  Tackle that later this week I guess. It&#8217;s been merged, so svn up and you are set.  Report bugs to me or via the metasploit redmine. thanks!]]></description>
			<content:encoded><![CDATA[<p>Talking in the #metasploit channel on freenode.net today someone (you know who you are) gave me the idea of saving the username, password, hostname/ip and port to a nessus.yaml file so they would be saved between metasploit sessions.</p>
<p>So tonight, I added that.  New commands added are:</p>
<ul>
<li>nessus_save: this will save those 4 items to ~/.msf3/nessus.yaml</li>
<li>nessus_logout will now remove that file when invoked.</li>
<li>nessus_connect will look for that file and use it&#8217;s contents if invoked with no arguments.  If the file doesn&#8217;t exist, it will display usage.</li>
</ul>
<p>So basically, load nessus, nessus_connect admin:admin@myserver:8834 and then nessus_save.  Now each time you load nessus you just need to nessus_connect and it will reuse those saved creds, until you wiped them out with nessus_logout.</p>
<p>Up next is investigating a way to have the nessus.yaml house multiple sets of creds and let you invoke nessus_connect with the set name to login to that server (or the default set if no set name is given).  also need to modify nessus_save to take an argument that it will use for the set name.  Tackle that later this week I guess.</p>
<p>It&#8217;s been merged, so svn up and you are set.  Report bugs to me or via the metasploit redmine.</p>
<p>thanks!</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=New+feature+added.+http%3A%2F%2Fbit.ly%2FcF8OGe"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/11/12/new-feature-added/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>So much to do.</title>
		<link>http://blog.zate.org/2010/11/02/so-much-to-do/</link>
		<comments>http://blog.zate.org/2010/11/02/so-much-to-do/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 23:09:08 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[carlos perez]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[dev environment]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[meterpreter]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[xml format]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=202</guid>
		<description><![CDATA[Going to write up a bit of a &#8220;todo&#8221; list here of all the things I need to work on. Nessus IVIL wrapper for Seccubus V2 &#8211; I had a wonderful talk with Frank from seccubus a couple of weeks back and we came up with the idea of &#8220;IVIL&#8221; which is basically a common XML format to report findings in from just about any tool.  I&#8217;m going to write an example IVIL aware wrapper for Nessus that will let you create scans, download reports and output in IVIL format to be loaded into seccubus V2.  Ideally anyone could write a wrapper for any tool and convert the tools output to IVIL to be loaded into seccubus for reporting. Bug fixes for the Nessus plugin.  I need to diff out all the new things in the code that are not currently in metasploit and submit that.  Also work on a couple of tweaks and new features people have suggested. Watch some more ruby videos and read some more of my ruby book. Fix up my dev environment.  I am trying to swap over to using Netbeans as my IDE and SVN over SSH to connect to remote servers to test.  Carlos Perez has been great in showing me how this works.  Probably look at moving my dev to a vm on my laptop to repurpose the current hardware as an Astaro box. Look into using meterpreter more and learning about meterpreter scripting in order to use meterpreter as an OVAL....]]></description>
			<content:encoded><![CDATA[<p>Going to write up a bit of a &#8220;todo&#8221; list here of all the things I need to work on.</p>
<ol>
<li>Nessus IVIL wrapper for <a href="http://seccubus.com/">Seccubus V2</a> &#8211; I had a wonderful talk with Frank from seccubus a couple of weeks back and we came up with the idea of &#8220;<a href="http://www.cupfighter.net/index.php/2010/10/ivil-an-xml-schema-to-exchange-vulnerability-information/">IVIL</a>&#8221; which is basically a common XML format to report findings in from just about any tool.  I&#8217;m going to write an example IVIL aware wrapper for Nessus that will let you create scans, download reports and output in IVIL format to be loaded into seccubus V2.  Ideally anyone could write a wrapper for any tool and convert the tools output to IVIL to be loaded into seccubus for reporting.</li>
<li>Bug fixes for the <a href="http://github.com/Zate/Nessus-Bridge-for-Metasploit">Nessus plugin</a>.  I need to diff out all the new things in the code that are not currently in metasploit and submit that.  Also work on a couple of tweaks and new features people have suggested.</li>
<li>Watch some more ruby videos and read some more of my ruby book.</li>
<li>Fix up my dev environment.  I am trying to swap over to using <a href="http://netbeans.org/">Netbeans as my IDE</a> and SVN over SSH to connect to remote servers to test.  Carlos Perez has been great in showing me how this works.  Probably look at moving my dev to a vm on my laptop to repurpose the current hardware as an Astaro box.</li>
<li>Look into using meterpreter more and learning about meterpreter scripting in order to use meterpreter as an<a href="http://oval.mitre.org/"> OVAL</a> interpreter.</li>
<li>Work more on learning <a href="http://www.nessus.org/doc/nasl2_reference.pdf">nasl</a>.  Also looking to create a nasl script to do OVAL scanning of remote hosts directly with nessus.  Lots to do here and nasl is a bit clunky after working with ruby.  Funtimes though.</li>
<li>Keep working on my highly threaded http scanning engine.  Basically want something that is fast and scalable for finding http(s) servers on any port.  If one exists now that grabs all kinds of info on what the server/service is, love to see it.  Emphasis on the fast and scalable, talking scanning thousands of hosts and all ports.</li>
</ol>
<p>That&#8217;s all that springs to mind right now.  Still getting over being sick and the whole family being sick after returning from Hack3rcon.</p>
<p>Speaking of Hack3rcon, I had a blast.  I&#8217;ll sign off here by embedding my talk on Nessus/MSF Integration.  My first ever talk and I learnt a great deal about presenting with live demo&#8217;s.  Redt of the talks are available on <a href="http://www.irongeek.com/i.php?page=videos/hack3rcon-videos">irongeek.com</a></p>
<p><iframe src="http://player.vimeo.com/video/16205418" width="700" height="400" frameborder="0"></iframe>
<p><a href="http://vimeo.com/16205418">Nessus Bridge for Metasploit Zate Berg</a> from <a href="http://vimeo.com/user729137">Adrian Crenshaw</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=So+much+to+do.+http%3A%2F%2Fbit.ly%2F9ZqeYu"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/11/02/so-much-to-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting the Nessus Bridge at #Hack3rcon this weekend.</title>
		<link>http://blog.zate.org/2010/10/21/presenting-the-nessus-bridge-at-hack3rcon-this-weekend/</link>
		<comments>http://blog.zate.org/2010/10/21/presenting-the-nessus-bridge-at-hack3rcon-this-weekend/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 17:23:16 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[agnostic]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Bridge]]></category>
		<category><![CDATA[charleston wv]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[hacker convention]]></category>
		<category><![CDATA[look]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[metasploit framework]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[Oct]]></category>
		<category><![CDATA[Presenting]]></category>
		<category><![CDATA[using tools]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[xml format]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=197</guid>
		<description><![CDATA[This weekend (Oct 23rd and 24th) I will be in Charleston WV presenting/demoing the Nessus Bridge for Metasploit at Hack3rcon.  This will be the first time I&#8217;ll have presented anything outside of work and should be lots of fun.  Quite a few great speakers that I look forward to meeting. I&#8217;ll post the presentation up here once it&#8217;s done for everyone else to take a look at.  Actually going to be presenting a few new commands that are not in the metasploit svn version of the plugin. After Hack3rcon I&#8217;ll be back into high gear adding some new functionality to the plugin and branching out into writing a wrapper for Nessus to speak IVIL for Seccubus v2.  This is pretty exciting stuff for me.  Coming up with a xml format to speak &#8220;findings&#8221; that is tool agnostic is going to be a great thing.  It will mean moving findings between tools, or comparing findings between tools, will be much much easier.  Keep a look out for that one. There has been some talk on the metasploit mailing list this week about using tools such as Nessus to scan through a MSF pivot and into another network.  Some interesting discussion and I think it&#8217;s something I will dive into in these next few weeks.  Start to examine what some of the limitations are and how we might overcome or avoid them. that&#8217;s it for now.  have a good weekend.]]></description>
			<content:encoded><![CDATA[<p>This weekend (Oct 23rd and 24th) I will be in Charleston WV presenting/demoing the Nessus Bridge for Metasploit at <a href="http://www.hack3rcon.org">Hack3rcon</a>.  This will be the first time I&#8217;ll have presented anything outside of work and should be lots of fun.  Quite a few <a href="http://hack3rcon.org/bios.html">great speakers</a> that I look forward to meeting.</p>
<p>I&#8217;ll post the presentation up here once it&#8217;s done for everyone else to take a look at.  Actually going to be presenting a few new commands that are not in the metasploit svn version of the plugin.</p>
<p>After Hack3rcon I&#8217;ll be back into high gear adding some new functionality to the plugin and branching out into writing a wrapper for Nessus to speak <a href="http://www.cupfighter.net/index.php/2010/10/ivil-an-xml-schema-to-exchange-vulnerability-information/">IVIL</a> for <a href="http://seccubus.com/seccubus-v2/">Seccubus v2</a>.  This is pretty exciting stuff for me.  Coming up with a xml format to speak &#8220;findings&#8221; that is tool agnostic is going to be a great thing.  It will mean moving findings between tools, or comparing findings between tools, will be much much easier.  Keep a look out for that one.</p>
<p>There has been some talk on the metasploit mailing list this week about using tools such as Nessus to scan through a MSF pivot and into another network.  Some interesting discussion and I think it&#8217;s something I will dive into in these next few weeks.  Start to examine what some of the limitations are and how we might overcome or avoid them.</p>
<p>that&#8217;s it for now.  have a good weekend.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Presenting+the+Nessus+Bridge+at+%23Hack3rcon+this+weekend.+http%3A%2F%2Fbit.ly%2FdCdBTN"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/10/21/presenting-the-nessus-bridge-at-hack3rcon-this-weekend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Latest changes to the Nessus Plugin submitted to Metasploit.</title>
		<link>http://blog.zate.org/2010/10/09/latest-changes-to-the-nessus-plugin-submitted-to-metasploit/</link>
		<comments>http://blog.zate.org/2010/10/09/latest-changes-to-the-nessus-plugin-submitted-to-metasploit/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 13:32:13 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[curre]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[experimental support]]></category>
		<category><![CDATA[index system]]></category>
		<category><![CDATA[msf]]></category>
		<category><![CDATA[nessus server]]></category>
		<category><![CDATA[search functionality]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=190</guid>
		<description><![CDATA[Late night last night I got the code cleaned up and submitted to msfdev. Should probably be in the Metasploit svn in a few days, I know those guys are super busy with an upcoming release. In the mean time you can download it from the GitHub &#8211; http://github.com/Zate/Nessus-Bridge-for-Metasploit Changes: Streaming Parser for Nessus V2 Reports. This streams the file from the nessus server and processes each host as it finds it instead of loading the entire file into memory which can be very intensive on large reports.  Performance is much better though it can take a while to interate through large numbers of hosts. Added activity indicator on nessus_report_get nessus_report_get now displays the OS information as reported by nessus for each host it imports. Fixed a bug where you could try to import a running scan.  Now checks to make sure a scan is not currently running when you import. added nessus_template_list to show templates.  More work on templates coming. Changed nessus_policy_list to use scans/list as the point it gets it&#8217;s info from, much faster. Added experimental support for a new search index system I am working on that might replace how searches are done in msf.  makes an index on local (or in memory) for searching.  Access is via nessis_exploits Fixed bug so that it now checks that the policy exists when creating a new scan. added &#8220;return&#8221; to the -h option in all the commands so that it will not run the command when -h is specified.....]]></description>
			<content:encoded><![CDATA[<p>Late night last night I got the code cleaned up and submitted to msfdev.</p>
<p>Should probably be in the Metasploit svn in a few days, I know those guys are super busy with an upcoming release.</p>
<p>In the mean time you can download it from the GitHub &#8211; <a href="http://github.com/Zate/Nessus-Bridge-for-Metasploit">http://github.com/Zate/Nessus-Bridge-for-Metasploit</a></p>
<p><strong><span style="text-decoration: underline;">Changes:</span></strong></p>
<ul>
<li>Streaming Parser for Nessus V2 Reports.
<ul>
<li>This streams the file from the nessus server and processes each host as it finds it instead of loading the entire file into memory which can be very intensive on large reports.  Performance is much better though it can take a while to interate through large numbers of hosts.<span id="more-190"></span></li>
</ul>
</li>
<li> Added activity indicator on nessus_report_get</li>
<li>nessus_report_get now displays the OS information as reported by nessus for each host it imports.</li>
<li>Fixed a bug where you could try to import a running scan.  Now checks to make sure a scan is not currently running when you import.</li>
<li>added nessus_template_list to show templates.  More work on templates coming.</li>
<li>Changed nessus_policy_list to use scans/list as the point it gets it&#8217;s info from, much faster.</li>
<li>Added experimental support for a new search index system I am working on that might replace how searches are done in msf.  makes an index on local (or in memory) for searching.  Access is via nessis_exploits</li>
<li>Fixed bug so that it now checks that the policy exists when creating a new scan.</li>
<li>added &#8220;return&#8221; to the -h option in all the commands so that it will not run the command when -h is specified.</li>
<li>fix various whitespace issues.</li>
<li>One existing bug is how the scanner gets displayed in db_hosts.  It takes up 2 lines. Working on it.</li>
</ul>
<p><strong><span style="text-decoration: underline;">In Progress:</span></strong></p>
<p>I am working on redoing the whole search functionality in msf, not just the Nessus Plugin.  This includes typing search at the command prompt, and the searching done by modules and things like db_autopwn.  I think we can move it to searching through index files on local much much faster than  the current way.</p>
<p>Nessus has added exploit information to the reports for each plugin that has a viable exploit in Metasploit (and other exploit engines).  I&#8217;m going to try to add this information as a &#8220;ref&#8221; to each vuln listed in db_vulns.  I still need to go through and check the accuracy of the mappings of plugin to exploit though.</p>
<p>If it&#8217;s accurate the next step is to create something like nessus_find_exploits that creates a Nessus scan policy that ONLY scans for vulns with plugins that have a Metasploit exploit attached.  This could be a good recon tool for scanning a network for hosts that are Metasploitable.</p>
<p>Lastly, I&#8217;m thinking we need a precision scanning mode, to be able to find an exploit we&#8217;d like to use and &#8220;scan&#8221; a given range of addresses (or just one) for the vuln associated with that exploit.  Two ways I see this working.</p>
<ol>
<li>We could use the vuln scanner of your choice (probably Nexpose or Nessus to begin with) for that specific vuln on that specific port on that host, or any port on any host.</li>
<li>Inversely, perhaps now is the time to add a generic &#8220;scanner&#8221; module to Metasploit that will allow you to lightly and quietly test a host for that vuln for that exploit.</li>
</ol>
<p>I am leaning towards number 2.  Number 1 would be much easier and quicker to build and use but I also seeing it as being much more &#8220;loud&#8221; on the network.  I&#8217;d almost prefer a precision, tactical, quiet probe of a host to verify that the vuln exists, not a blast across a host or network testing the way a traditional vuln scanner does.  So I&#8217;m thinking it&#8217;d be hand crafted checks, perhaps added to each exploit module?  Checks that do things like, is the remote host supported a supported target.  Can we actually connect to RPORT and if we send a specific set of information over, does it indicate the host is vulnerable to this exploit.  Need to think on this more.</p>
<p>So, thats the state of the Nessus Plugin for Metasploit right now, sent to msfdev for review and hopefully with less bugs in it than it had before.  It could really use some testing though.  My own test network is very primitive and I am sure there are things I&#8217;m missing from my imports.</p>
<p>Thanks.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Latest+changes+to+the+Nessus+Plugin+submitted+to+Metasploit.+http%3A%2F%2Fbit.ly%2FbqLxBo"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/10/09/latest-changes-to-the-nessus-plugin-submitted-to-metasploit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nessus Bridge for Metasploit :: Plugin Commands</title>
		<link>http://blog.zate.org/2010/10/06/nessus-bridge-for-metasploit-plugin-commands/</link>
		<comments>http://blog.zate.org/2010/10/06/nessus-bridge-for-metasploit-plugin-commands/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 01:05:07 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Bridge]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[CVE]]></category>
		<category><![CDATA[default server]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[family names]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[little beasts]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[nessus server]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[prefs]]></category>
		<category><![CDATA[risk factor]]></category>
		<category><![CDATA[server plugin]]></category>
		<category><![CDATA[Value]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=142</guid>
		<description><![CDATA[Welcome to part 5 of my Nessus Bridge for Metasploit coverage.  Here is part 1, part 2 , part 3 and part 4 if you are just joining us. Next up are the plugin commands.  These helpful little beasts are all about showing you what plugins are available on your nessus server, and how many of them you have. nessus_plugin_list nessus_plugin_family nessus_plugin_details nessus_plugin_prefs Given that nessus has over 38,000 plugins, simply asking it to list them all would result in a very large list returned from the server.  Nessus gets around this by breaking the request down into several parts. nessus_plugin_list This will list all the plugin families and show you how many plugins are in each family.  They can range from just a few, to thousands.  The plugin family names returned here are used in further commands. nessus_plugin_family Now armed with our plugin family name from the list command above, we can request the names of the plugins from one of the families.  Be warned, for some families this can result in a long list.  Returned from this command is a table showing the plugin ID, plugin name and plugin file name. The file name is what we use to get the plugin details (this strikes me as odd, I would have used the plugin ID as the identifier, the file name is annoying to use.) nessus_plugin_details This cool command returns us the details of exactly what the plugin does.  Included are such gems as the risk factor, cvss score(s), cvss vector(s),....]]></description>
			<content:encoded><![CDATA[<p>Welcome to part 5 of my Nessus Bridge for Metasploit coverage.  Here is <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-intro/">part 1</a>, <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-generic-commands-2/">part 2</a> , <a href="http://blog.zate.org/2010/09/27/nessus-bridge-for-metasploit-report-commands/">part 3</a> and <a href="http://blog.zate.org/2010/09/28/nessus-bridge-for-metasploit-scan-commands/">part 4</a> if you are just joining us.</p>
<p>Next up are the plugin commands.  These helpful little beasts are all about showing you what plugins are available on your nessus server, and how many of them you have.</p>
<ul>
<li>nessus_plugin_list</li>
<li>nessus_plugin_family</li>
<li>nessus_plugin_details</li>
<li>nessus_plugin_prefs</li>
</ul>
<p>Given that nessus has over 38,000 plugins, simply asking it to list them all would result in a very large list returned from the server.  Nessus gets around this by breaking the request down into several parts.<span id="more-142"></span></p>
<p><strong><span style="font-size: medium;">nessus_plugin_list</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_plugin_list.png" title="" class="shutterset_singlepic16" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/16_web20_320x240_nessus_plugin_list.png" alt="nessus_plugin_list" title="nessus_plugin_list" />
</a>

<p>This will list all the plugin families and show you how many plugins are in each family.  They can range from just a few, to thousands.  The plugin family names returned here are used in further commands.</p>
<p><strong><span style="font-size: medium;">nessus_plugin_family</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_plugin_family.png" title="" class="shutterset_singlepic15" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/15_web20_320x240_nessus_plugin_family.png" alt="nessus_plugin_family" title="nessus_plugin_family" />
</a>

<p>Now armed with our plugin family name from the list command above, we can request the names of the plugins from one of the families.  Be warned, for some families this can result in a long list.  Returned from this command is a table showing the plugin ID, plugin name and plugin file name. The file name is what we use to get the plugin details (this strikes me as odd, I would have used the plugin ID as the identifier, the file name is annoying to use.)</p>
<p><strong><span style="font-size: medium;">nessus_plugin_details</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_plugin_details.png" title="" class="shutterset_singlepic19" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/19_web20_320x240_nessus_plugin_details.png" alt="nessus_plugin_details" title="nessus_plugin_details" />
</a>

<p>This cool command returns us the details of exactly what the plugin does.  Included are such gems as the risk factor, cvss score(s), cvss vector(s), description, solution, any identifiers such as CVE/BID and details on exploit availability.  As yet the exploit availability does not link to the exploit, though I&#8217;d love to see us come up with some common reference method for exploits, similar to CVE (you listening NIST/SCAP people, hop to it).</p>
<p><strong><span style="font-size: medium;">nessus_plugin_prefs</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_plugin_prefs.png" title="" class="shutterset_singlepic17" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/17_web20_320x240_nessus_plugin_prefs.png" alt="nessus_plugin_prefs" title="nessus_plugin_prefs" />
</a>

<p>Lastly, we have the prefs.  This shows the default server/plugin prefs and is quite long.  This is what things will default too if you do not change the setting to what you want in your policy. It returns 3 columns, Name, Value and Type.  Value shows what it&#8217;s currently set to and type tells you what kinds of settings it can have.  Really though it&#8217;s much easier to change these through the nessus web console right now for each policy.</p>
<p>I&#8217;m working on being able to create policies and templates from the command line to be used to do pinpoint scans for specific vulns on specific ports but it&#8217;s not there yet.  Missing is the ability to accurately and quickly tie a plugin to an exploit and working with these large entry/value pair lists on the command line is cumbersome.  End goal is to allow you to go through a process to create a scan template for a specific exploit and then scan for it and autopwn it when found.  Still a bit of work to do before I get there.</p>
<p>Thats all for plugins, up next in the series is User Commands.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Nessus+Bridge+for+Metasploit+%3A%3A+Plugin+Commands+http%3A%2F%2Fbit.ly%2FcuKh1z"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/10/06/nessus-bridge-for-metasploit-plugin-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Streaming Parser for Nessus Plugin up for testing.</title>
		<link>http://blog.zate.org/2010/10/01/streaming-parser-for-nessus-plugin-up-for-testing/</link>
		<comments>http://blog.zate.org/2010/10/01/streaming-parser-for-nessus-plugin-up-for-testing/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 12:25:59 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[dom tree]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[late night sessions]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[nessus server]]></category>
		<category><![CDATA[Parser]]></category>
		<category><![CDATA[REXML]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=169</guid>
		<description><![CDATA[A few late night sessions of coding and I have a version of the plugin up on github.com that uses REXML Streaming Listener to parse the NessusV2 Reports.  The benefits of this is being able to handle much larger scans, much faster as it will itterate over each host and add it as it parses it, instead of the DOM/Tree method which loads the entire file into memory before parsing. What I&#8217;d like is a few people to test it. So, grab the code from here, unpack it and then over write your metasploit install with the files in that archive.  Should be 4 of them. Once you have done that, test it, connect to a Nessus server, import some reports, test all the other functions and maybe even just test some importing of nmap etc too if you like. Report any bugs to me to be fixed and then when you want to remove these files, just delete these 4 from your metasploit install and then do &#8220;svn update&#8221;.]]></description>
			<content:encoded><![CDATA[<p>A few late night sessions of coding and I have a version of the plugin up on <a href="http://goo.gl/XSuk">github.com</a> that uses REXML Streaming Listener to parse the NessusV2 Reports.  The benefits of this is being able to handle much larger scans, much faster as it will itterate over each host and add it as it parses it, instead of the DOM/Tree method which loads the entire file into memory before parsing.</p>
<p>What I&#8217;d like is a few people to test it.</p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/streaming_parser.png" title="" class="shutterset_singlepic14" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/14_web20_320x240_streaming_parser.png" alt="streaming_parser" title="streaming_parser" />
</a>

<p>So, grab the code from <a href="http://goo.gl/q4jq">here</a>, unpack it and then over write your metasploit install with the files in that archive.  Should be 4 of them.</p>
<p>Once you have done that, test it, connect to a Nessus server, import some reports, test all the other functions and maybe even just test some importing of nmap etc too if you like.</p>
<p>Report any bugs to me to be fixed and then when you want to remove these files, just delete these 4 from your metasploit install and then do &#8220;svn update&#8221;.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Streaming+Parser+for+Nessus+Plugin+up+for+testing.+http%3A%2F%2Fbit.ly%2FcuWqZc"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/10/01/streaming-parser-for-nessus-plugin-up-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>goo.gl URL Shortener</title>
		<link>http://blog.zate.org/2010/09/30/goo-gl-url-shortener/</link>
		<comments>http://blog.zate.org/2010/09/30/goo-gl-url-shortener/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 22:03:11 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cooking show]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[qr code]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[site google]]></category>
		<category><![CDATA[url shortener]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=166</guid>
		<description><![CDATA[I&#8217;m a google fan, I admit it fully.  I use lots of their services, I like their stuff and I am at peace with their devling into my personal space.  It&#8217;s gonna happen, unless you choose to live your life 100% offline, you are trading personal privacy for access to services. Their latest creation (which has been around for a while, just not public) is their very own URL shortener called goo.gl.  It does some of the usual things, it tracks metrics and it does one other things I think is really cool.  It creates a QR code for your url. Here is one I created earlier (ha, sounds like a cooking show). http://goo.gl/YgTu.qr for the url http://goo.gl/YgTu Very cool.  I like QR codes.  For those of us with smart phones, a simple scan of the code and you can open the site. I do wish the service had an easy way to copy the new urls to the clipboard though. So what else can it do?  Well #1, I want it to tie in with their safe browsing serivce (http://www.google.com/safebrowsing/diagnostic?site=google.com) so that I can&#8217;t create a URL to a known bad site.  I&#8217;d also like them to regularly scan the urls and disable those that link to malware.  There are lots of URL shorteners and they definately pose a security risk and it&#8217;s about time someone took the step of removing bad URL&#8217;s. Thoughts?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a google fan, I admit it fully.  I use lots of their services, I like their stuff and I am at peace with their devling into my personal space.  It&#8217;s gonna happen, unless you choose to live your life 100% offline, you are trading personal privacy for access to services.</p>
<p>Their latest creation (which has been around for a while, just not public) is their very own URL shortener called goo.gl.  It does some of the usual things, it tracks metrics and it does one other things I think is really cool.  It creates a QR code for your url.</p>
<p>Here is one I created earlier (ha, sounds like a cooking show).</p>
<p><img src="http://goo.gl/YgTu.qr" alt="" width="150" height="150" /></p>
<p>http://goo.gl/YgTu.qr for the url http://goo.gl/YgTu</p>
<p>Very cool.  I like QR codes.  For those of us with smart phones, a simple scan of the code and you can open the site.</p>
<p>I do wish the service had an easy way to copy the new urls to the clipboard though.</p>
<p>So what else can it do?  Well #1, I want it to tie in with their safe browsing serivce (<a href="http://www.google.com/safebrowsing/diagnostic?site=google.com">http://www.google.com/safebrowsing/diagnostic?site=google.com</a>) so that I can&#8217;t create a URL to a known bad site.  I&#8217;d also like them to regularly scan the urls and disable those that link to malware.  There are lots of URL shorteners and they definately pose a security risk and it&#8217;s about time someone took the step of removing bad URL&#8217;s.</p>
<p>Thoughts?</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=goo.gl+URL+Shortener+http%3A%2F%2Fbit.ly%2Fc319AN"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/09/30/goo-gl-url-shortener/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>It&#8217;s the small victories&#8230;</title>
		<link>http://blog.zate.org/2010/09/28/its-the-small-victories/</link>
		<comments>http://blog.zate.org/2010/09/28/its-the-small-victories/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 01:26:41 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[small victories]]></category>
		<category><![CDATA[stream processors]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=162</guid>
		<description><![CDATA[So one of the major &#8220;issues&#8221; with the Nessus for Metasploit Plugin right now is that it does not handle large reports well.  Not even the usual db_import_nessus handles large reports well and this is because it reads the entire file in one big blob then parses it. The nexpose importer and the nmap importer both use REXML Stream Processors. So tonight I copied the nmap_xml.rb file and am working on making it process Nessus v2 files.  I am hoping that both the Nessus plugin, and the db_import will benefit from these changes. I&#8217;ve been looking at it for a few days and kind of avoiding it because it&#8217;s difficult and is going to require large portions of my time fumbling through learning how the current one works enough to know how/what to modify. Well turns out it&#8217;s simpler than I thought. In about an hour tonight I copied it, modified it, wrote some code to include it in the plugin and have the plugin send it data and got it parsing the hostname for each entry in a file. Now I just need to work out what to call at what time with what values to get the hosts, vulns and services in the DB.  I know where that is in the code so I think this might not take me as long as I thought. Harder will be making the right changes to db.rb to A) make it work, and B) still allow msf to function .. lol]]></description>
			<content:encoded><![CDATA[<p>So one of the major &#8220;issues&#8221; with the Nessus for Metasploit Plugin right now is that it does not handle large reports well.  Not even the usual db_import_nessus handles large reports well and this is because it reads the entire file in one big blob then parses it.</p>
<p>The nexpose importer and the nmap importer both use REXML Stream Processors.</p>
<p>So tonight I copied the nmap_xml.rb file and am working on making it process Nessus v2 files.  I am hoping that both the Nessus plugin, and the db_import will benefit from these changes.</p>
<p>I&#8217;ve been looking at it for a few days and kind of avoiding it because it&#8217;s difficult and is going to require large portions of my time fumbling through learning how the current one works enough to know how/what to modify.</p>
<p>Well turns out it&#8217;s simpler than I thought. <span id="more-162"></span>In about an hour tonight I copied it, modified it, wrote some code to include it in the plugin and have the plugin send it data and got it parsing the hostname for each entry in a file.</p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/small_victory.png" title="" class="shutterset_singlepic13" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/13_web20_320x240_small_victory.png" alt="small_victory" title="small_victory" />
</a>

<p>Now I just need to work out what to call at what time with what values to get the hosts, vulns and services in the DB.  I know where that is in the code so I think this might not take me as long as I thought.</p>
<p>Harder will be making the right changes to db.rb to A) make it work, and B) still allow msf to function .. lol</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=It%E2%80%99s+the+small+victories%E2%80%A6+http%3A%2F%2Fbit.ly%2Fbrf0QY"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/09/28/its-the-small-victories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nessus Bridge for Metasploit :: Scan Commands</title>
		<link>http://blog.zate.org/2010/09/28/nessus-bridge-for-metasploit-scan-commands/</link>
		<comments>http://blog.zate.org/2010/09/28/nessus-bridge-for-metasploit-scan-commands/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 21:45:33 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Bridge]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[confirmation]]></category>
		<category><![CDATA[Draft]]></category>
		<category><![CDATA[functionality]]></category>
		<category><![CDATA[learnt]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[metasploit framework]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[pwn]]></category>
		<category><![CDATA[range]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Scan]]></category>
		<category><![CDATA[Start]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=140</guid>
		<description><![CDATA[Welcome to part 4 of my Nessus Bridge for Metasploit coverage.  Here is part 1 and part 2 and part 3 if you are just joining us. The Scan Commands are where this plugin starts to really differ from previously importing nessus scans from flat files.  With these commands we can stay within the metasploit framework and reach out and examine things with Nessus.  We can then use the Report Commands we just learnt about to pull that data back to later pwn stuff. Scan Commands are as follows: nessus_scan_new nessus_scan_status nessus_scan_pause nessus_scan_pause_all nessus_scan_stop nessus_scan_stop_all nessus_scan_resume nessus_scan_resume_all Lots of those look similar, and in fact they are.  Only difference is one command acts on one scan ID, the other acts on all running scans. Important to note that these work on scans, not reports.  The difference?  Scan becomes a report after it completes. (Yeah I know running scans show up in the output of nessus_report_list &#8211; set myself a task in github to fix that). Ok, lets start with the boring ones first. nessus_scan_status This command shows you the status of all currently running scans.  If you have no running scans, well it wont show you any (see, very accurate).  XML that comes back from the command involved also shows policies and templates.  Future functionality will display those, but for now it just lists running scans and some info about them (such as progress if it is multiple hosts). (nessus_scan_pause &#124;&#124; nessus_scan_stop &#124;&#124; nessus_scan_resume) &#60;scan id&#62; They do exactly what they sound....]]></description>
			<content:encoded><![CDATA[<p>Welcome to part 4 of my Nessus Bridge for Metasploit coverage.  Here is <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-intro/">part 1</a> and <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-generic-commands-2/">part 2</a> and <a href="http://blog.zate.org/2010/09/27/nessus-bridge-for-metasploit-report-commands/">part 3</a> if you are just joining us.</p>
<p>The Scan Commands are where this plugin starts to really differ from previously importing nessus scans from flat files.  With these commands we can stay within the metasploit framework and reach out and examine things with Nessus.  We can then use the Report Commands we just learnt about to pull that data back to later pwn stuff.</p>
<p>Scan Commands are as follows:</p>
<ul>
<li>nessus_scan_new</li>
<li>nessus_scan_status</li>
<li>nessus_scan_pause</li>
<li>nessus_scan_pause_all</li>
<li>nessus_scan_stop</li>
<li>nessus_scan_stop_all</li>
<li>nessus_scan_resume</li>
<li>nessus_scan_resume_all<span id="more-140"></span></li>
</ul>
<p>Lots of those look similar, and in fact they are.  Only difference is one command acts on one scan ID, the other acts on all running scans.</p>
<p>Important to note that these work on scans, not reports.  The difference?  Scan becomes a report after it completes. (Yeah I know running scans show up in the output of nessus_report_list &#8211; set myself a task in github to fix that).</p>
<p>Ok, lets start with the boring ones first.</p>
<p><strong><span style="font-size: medium;">nessus_scan_status</span></strong></p>
<p><strong><span style="font-size: medium;">
<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_scan_status.png" title="" class="shutterset_singlepic11" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/11_web20_320x240_nessus_scan_status.png" alt="nessus_scan_status" title="nessus_scan_status" />
</a>
</span></strong></p>
<p>This command shows you the status of all currently running scans.  If you have no running scans, well it wont show you any (see, very accurate).  XML that comes back from the command involved also shows policies and templates.  Future functionality will display those, but for now it just lists running scans and some info about them (such as progress if it is multiple hosts).</p>
<p><strong><span style="font-size: medium;">(nessus_scan_pause || nessus_scan_stop || nessus_scan_resume) &lt;scan id&gt;</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_scan_pause_all.png" title="" class="shutterset_singlepic9" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/9_web20_320x240_nessus_scan_pause_all.png" alt="nessus_scan_pause_all" title="nessus_scan_pause_all" />
</a>


<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_scan_resume_all.png" title="" class="shutterset_singlepic10" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/10_web20_320x240_nessus_scan_resume_all.png" alt="nessus_scan_resume_all" title="nessus_scan_resume_all" />
</a>


<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_scan_stop_all.png" title="" class="shutterset_singlepic12" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/12_web20_320x240_nessus_scan_stop_all.png" alt="nessus_scan_stop_all" title="nessus_scan_stop_all" />
</a>

<p>They do exactly what they sound like they might do.  They pause, stop and resume running scans (not reports).  You need to supply the scan id (from nessus_scan_status) and it will return confirmation that it has done the task.</p>
<p>You can also use all 3 commands with _all on the end and no scan ID.  This will iterate through all scans available and do the specified action on them.  Pretty simple.</p>
<p>Ok, that leads us to the bread and butter nessus_scan_new command.</p>
<p><span style="font-size: medium;"><strong>nessus_scan_new &lt;policy id&gt; &lt;scan name&gt; &lt;targets&gt;</strong></span></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_scan_new.png" title="" class="shutterset_singlepic8" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/8_web20_320x240_nessus_scan_new.png" alt="nessus_scan_new" title="nessus_scan_new" />
</a>

<p>No more do you have to drop to a command line or tab over to the web console to start a nessus scan.  You simply need to provide the policy ID for the policy you&#8217;d like to scan with (get that from nessus_policy_list), name your scan (use &#8220;quotes are cool&#8221; for multiple words) and give it the hosts you&#8217;d like to scan.  Hosts scan be one (192.168.1.1), a network cidr (192.168.1.0/24) or a range (192.168.1.1-127).  Hit enter and it goes to work.</p>
<p>So with what we have discovered so far we can do the following:</p>
<ul>
<li>Auth to our nessus box.</li>
<li>Start a new scan</li>
<li>import the results of that scan to our metasploit workspace.</li>
</ul>
<p>Nice. So what else could there be?</p>
<p>Next up we will learn about the plugin commands for getting all kinds of useful information about the vulnerabilities we discover.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Nessus+Bridge+for+Metasploit+%3A%3A+Scan+Commands+http%3A%2F%2Fbit.ly%2F9vNaYZ"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/09/28/nessus-bridge-for-metasploit-scan-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nessus Bridge for Metasploit :: Report Commands</title>
		<link>http://blog.zate.org/2010/09/27/nessus-bridge-for-metasploit-report-commands/</link>
		<comments>http://blog.zate.org/2010/09/27/nessus-bridge-for-metasploit-report-commands/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 22:51:33 +0000</pubDate>
		<dc:creator>Zate</dc:creator>
				<category><![CDATA[Bananas]]></category>
		<category><![CDATA[core command]]></category>
		<category><![CDATA[detail]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[import reports]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[nessus server]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[report id]]></category>
		<category><![CDATA[severity]]></category>
		<category><![CDATA[stream processor]]></category>

		<guid isPermaLink="false">http://blog.zate.org/?p=56</guid>
		<description><![CDATA[Welcome to part 3 of my Nessus Bridge for Metasploit coverage.  Here is part 1 and part 2 if you are just joining us. Report commands are where we get to actually do things.  They concist of some commands to manage/import reports directly on your Nessus server.  No more going to the web console, exporting a report, moving it to your msf box and running db_import_nessus to get it into your workspace and available to db_autopwn or work with. The implemented (so far) commands are: nessus_report_list nessus_report_get nessus_report_hosts nessus_report_host_ports nessus_report_host_detail Ok, make sure you are loaded up and authed to your server and we will check these out. nessus_report_list The basic &#8220;show me what ya got&#8221; command for reports.  It will list off all the reports on your server that your current user has access to.  You will see some big long string of characters, that is your report ID.  It is a unique identifier for each report.  Nessus allows you to call 2 reports the same name, this is how we know which one is which.  This view will be generally how you find the report ID for future commands. nessus_report_get &#60;report id&#62; This is the core command here.  This grabs the report from your Nessus server and passes it over to get imported to your msf workspace/db.  You need to have configured a db in msf (via db_connect) to use this command.  It is the same as doing db_import_nessus except that this pulls directly from your remote server.....]]></description>
			<content:encoded><![CDATA[<p>Welcome to part 3 of my Nessus Bridge for Metasploit coverage.  Here is  <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-intro/">part 1</a> and <a href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-generic-commands-2/">part 2</a> if you are just joining us.</p>
<p>Report commands are where we get to actually do things.  They concist of some commands to manage/import reports directly on your Nessus server.  No more going to the web console, exporting a report, moving it to your msf box and running db_import_nessus to get it into your workspace and available to db_autopwn or work with.</p>
<p>The implemented (so far) commands are:</p>
<p><span style="font-family: Georgia, 'Bitstream Charter', serif; line-height: 24px; font-size: 16px;"> </span></p>
<div id="_mcePaste">
<ul>
<li>nessus_report_list</li>
<li>nessus_report_get</li>
<li>nessus_report_hosts</li>
<li>nessus_report_host_ports</li>
<li>nessus_report_host_detail</li>
</ul>
</div>
<p>Ok, make sure you are loaded up and authed to your server and we will check these out.<span id="more-56"></span></p>
<p><strong><span style="font-size: large;">nessus_report_list</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_list.png" title="" class="shutterset_singlepic1" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/1_web20_320x240_nessus_list.png" alt="nessus_list" title="nessus_list" />
</a>

<p>The basic &#8220;show me what ya got&#8221; command for reports.  It will list off all the reports on your server that your current user has access to.  You will see some big long string of characters, that is your report ID.  It is a unique identifier for each report.  Nessus allows you to call 2 reports the same name, this is how we know which one is which.  This view will be generally how you find the report ID for future commands.</p>
<p><strong><span style="font-size: large;">nessus_report_get &lt;report id&gt;</span></strong></p>
<p>This is the core command here.  This grabs the report from your Nessus server and passes it over to get imported to your msf workspace/db.  You need to have configured a db in msf (via db_connect) to use this command.  It is the same as doing db_import_nessus except that this pulls directly from your remote server.  Warning: dont try to pull a report with thousands of hosts, you will choke your box (need to change this to use a stream processor).  After you import with nessus_report_get you should be able to do db_hosts, db_services or db_vulns and see your data.  You can now proceed with db_autopwn as you would have before.</p>
<p><strong><span style="font-size: large;">nessus_report_hosts &lt;report id&gt;</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_report_hosts.png" title="" class="shutterset_singlepic4" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/4_web20_320x240_nessus_report_hosts.png" alt="nessus_report_hosts" title="nessus_report_hosts" />
</a>

<p>This will show you each host in your Nessus report and some information about each one.  The information is will display is the &#8220;severity&#8221; of the host (as measured by Nessus) and the number of vulnerabilities in each &#8220;severity&#8221; category from 0 to 3 with 0 being &#8220;info&#8221; and 3 being &#8220;critical&#8221;.  Shows current vs total progress (number of plugins).  If they are not the same it means some of the plugins didn&#8217;t complete correctly (i think).</p>
<p><strong><span style="font-size: large;">nessus_report_host_ports &lt;host&gt; &lt;report id&gt;</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_report_host_ports.png" title="" class="shutterset_singlepic3" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/3_web20_320x240_nessus_report_host_ports.png" alt="nessus_report_host_ports" title="nessus_report_host_ports" />
</a>

<p>This will show you the ports found on that host and how many vulns of each type per port.  Shows you the port number, the protocol and the severity (1-3).  Also includes the service name and a breakout of how many vulns of each sev type per port.  You will need the port number and protocol if you want details on each vuln for that port.</p>
<p><strong><span style="font-size: large;">nessus_report_host_detail &lt;hostname&gt; &lt;port&gt; &lt;protocol&gt; &lt;report id&gt;</span></strong></p>

<a href="http://blog.zate.org/wp-content/gallery/nessus-plugin-screenshots/nessus_report_host_details.png" title="" class="shutterset_singlepic2" >
	<img class="ngg-singlepic" src="http://blog.zate.org/wp-content/gallery/cache/2_web20_320x240_nessus_report_host_details.png" alt="nessus_report_host_details" title="nessus_report_host_details" />
</a>

<p>Here we see a breakdown of all the vulnerabilities discovered on that host,  for that port.  Shows us the port name (and number/service), the severity (as  assigned by Nessus), the plugin ID, the plugin name, the CVSS2 score, whether  there is an exploit available (doesn’t yet link to a msf exploit if it exists,  adding that to my to-do list), the CVE and lastly the CVSS vector (just incase  you are into that stuff).  Quite a bit of information that should give you a  good idea of what&#8217;s going on with that host.</p>
<p>Ok, that’s it for report commands, feel free to let me know if you think it  needs to do something else or do something in a different manner.</p>
<p>On to “Scan Commands” the ‘do work!’ part of the run down.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Nessus+Bridge+for+Metasploit+%3A%3A+Report+Commands+http%3A%2F%2Fbit.ly%2FbN7gnK"><img class="nothumb" src="http://blog.zate.org/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zate.org/2010/09/27/nessus-bridge-for-metasploit-report-commands/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

