<?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>gHacks technology news &#187; port scanning</title>
	<atom:link href="http://www.ghacks.net/tag/port-scanning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 11:26:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asset scanning with nmap and ndiff</title>
		<link>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/</link>
		<comments>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 18:46:53 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[asset management]]></category>
		<category><![CDATA[ndiff]]></category>
		<category><![CDATA[network scans]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[port scanning]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17556</guid>
		<description><![CDATA[If you are in a small business or a larger enterprise you know you need to keep track of all those machines. Sure you could easily tag and record them as they go from the box to the desk, but that doesn&#8217;t always happen. And the larger the company the more likely something is able [...]]]></description>
			<content:encoded><![CDATA[<p>If you are in a small business or a larger enterprise you know you need to keep track of all those machines. Sure you could easily tag and record them as they go from the box to the desk, but that doesn&#8217;t always happen. And the larger the company the more likely something is able to get by you without you getting a complete record of the system. If that is the case you need some tool to help you ascertain what you have out there. Add to that the idea that we are more and more living in a homogeneous IT world, where more than one operating system might be living on your network.</p>
<p>Having a tool that can quickly, and regularly, take snapshots of your network landscape is critical to keeping tabs on your PCs. Of course you can shell out some budget dollars for a proprietary tool, but why bother when you can fire up a Linux machine and use the trusty Nmap tool for the job.</p>
<p>Nmap is a command line tool that rapidly scans a network gathering information about machines and ports. It is easy to use and flexible, making it perfect for the job of asset scanning. In this tutorial you will see how to set up a system that will regularly scan your network and create a report that can then be used to keep inventory of your networked machines.</p>
<p><span id="more-17556"></span></p>
<p><strong>Installing</strong></p>
<p>Before we get to the actual scanning we need to install a couple of applications. Since I am using a Ubuntu system, we&#8217;ll run the installation using <em>apt-get. </em>With some simple modifications, you can do the same on a fedora system. The two applications to install are: nmap and ndiff. We use ndiff to compare the results of scans. To install these applications open up a terminal window and issue the following command:</p>
<p><em>sudo apt-get install nmap ndiff</em></p>
<p>You will have to accept dependencies, at which point the two applications will install. Upon completion of the installation, you are ready to scan.</p>
<p><strong>Using nmap</strong></p>
<p>Nmap is actually a fairly powerful tool. If you issue the command <em>man nmap</em> you will see just how powerful this tool is. You can also see how many arguments you can use with Nmap as well as what each argument does. Fortunately I will show you a simple command you can issue to make this a bit easier.</p>
<p>I am going to illustrate how these tools work together by running an nmap scan on a small internal network. I will then scan the network after making a change to one machine and see if ndiff catches the change.</p>
<p><span style="background-color: #ffffff">The command for the scan is:</span></p>
<p><code>sudo nmap -n -PN 192.168.1.1/24 -O &gt; network_scan</code></p>
<p>I will then run that same scan after making the change with one alteration:</p>
<p><code>sudo nmap -n -PN 192.168.1.1/24 -O &gt; network2_scan<br />
<span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;background-color: #ffffff"> </span></code></p>
<p><code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;background-color: #ffffff">The above commands will output to the files <strong>network_scan, </strong>and <strong>network2_scan<span style="font-weight: normal">.</span></strong></span></code></p>
<p>Once you have the two files you will compare them using the <em>ndiff</em> command like so:</p>
<p><em>ndiff -b network_scan -o network2_scan</em></p>
<p>The two options used are:</p>
<ul>
<li><span style="background-color: #ffffff">b &#8211; Baseline.</span></li>
<li><span style="background-color: #ffffff">o &#8211; Observed.</span></li>
</ul>
<p>You can think of Baseline as your control group.</p>
<div id="attachment_17592" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-17592" href="http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/results/"><img class="size-thumbnail wp-image-17592" src="http://www.ghacks.net/wp-content/uploads/2009/10/results-300x300.png" alt="Figure 1" width="300" height="300" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>The results of the command are shown in Figure 1.</p>
<p>The results show exactly what occurred in my network change. I shut down the machine associated with IP address 192.168.1.37.</p>
<p>Of course you could also get a much clearer picture of your network by combing through the results of the initial scan, but if you are looking for how your network topography has changed from scan to scan, using ndiff is the best way.</p>
<p>To see the full usage of both nmap and ndiff, take a look at the man pages. I will warn you, they are fairly complex. But this tutorial should give you a solid understanding of how the basics of the tools work.</p>

	Tags: <a href="http://www.ghacks.net/tag/asset-management/" title="asset management" rel="tag">asset management</a>, <a href="http://www.ghacks.net/tag/ndiff/" title="ndiff" rel="tag">ndiff</a>, <a href="http://www.ghacks.net/tag/network-scans/" title="network scans" rel="tag">network scans</a>, <a href="http://www.ghacks.net/tag/nmap/" title="nmap" rel="tag">nmap</a>, <a href="http://www.ghacks.net/tag/port-scanning/" title="port scanning" rel="tag">port scanning</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/11/port-scanning-networking-tool-superscan/" title="Port Scanning Networking Tool SuperScan (August 11, 2008)">Port Scanning Networking Tool SuperScan</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/" title="Map your network with Zenmap (August 9, 2009)">Map your network with Zenmap</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Port Scanning Networking Tool SuperScan</title>
		<link>http://www.ghacks.net/2008/08/11/port-scanning-networking-tool-superscan/</link>
		<comments>http://www.ghacks.net/2008/08/11/port-scanning-networking-tool-superscan/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 18:53:44 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking tool]]></category>
		<category><![CDATA[networking tools]]></category>
		<category><![CDATA[port scanning]]></category>
		<category><![CDATA[superscan]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=6066</guid>
		<description><![CDATA[SuperScan is a free port scanning networking tool that has the primary purpose of scanning an IP range. It supports extremely fast Host Discovery lookups as well as TCP and UDP port scans thanks to its multi-threaded and asynchronous techniques.
The Hostname resolving that is supported as well is more or less instantly. Users can enter [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.foundstone.com/us/resources/proddesc/superscan.htm">SuperScan</a> is a free port scanning networking tool that has the primary purpose of scanning an IP range. It supports extremely fast Host Discovery lookups as well as TCP and UDP port scans thanks to its multi-threaded and asynchronous techniques.</p>
<p>The Hostname resolving that is supported as well is more or less instantly. Users can enter a hostname, IP or IP range and start the scan. The Port Scanning will take a while depending on the number if IPs that are to be scanned. A HTML report is generated at the end that is displaying the amount of discovered hosts and the open TCP and UDP ports.</p>
<p>Several port scanning options are available. It is for instance possible to select a distinct port range that should be scanned, timeouts and host discovery requests. SuperScan is not a pretty application but one that does the job very well. It takes a while to look through all the tabs provided in the software program to get accustomed to it.</p>
<p><span id="more-6066"></span><img src="http://www.ghacks.net/wp-content/uploads/2008/08/port_scanning-500x438.jpg" alt="port scanning" title="port scanning" width="500" height="438" class="alignnone size-medium wp-image-6067" /></p>
<p>SuperScan does offer a wide range of networking tools besides the port scanning. It provides access to networking tools like Ping, Whois Lookups and Get Requests and even Windows host enumeration.</p>

	Tags: <a href="http://www.ghacks.net/tag/network/" title="network" rel="tag">network</a>, <a href="http://www.ghacks.net/tag/networking-tool/" title="networking tool" rel="tag">networking tool</a>, <a href="http://www.ghacks.net/tag/networking-tools/" title="networking tools" rel="tag">networking tools</a>, <a href="http://www.ghacks.net/tag/port-scanning/" title="port scanning" rel="tag">port scanning</a>, <a href="http://www.ghacks.net/tag/software/" title="software" rel="tag">software</a>, <a href="http://www.ghacks.net/tag/superscan/" title="superscan" rel="tag">superscan</a>, <a href="http://www.ghacks.net/tag/windows/" title="Windows" rel="tag">Windows</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/23/softperfect-network-scanner/" title="Softperfect Network Scanner (August 23, 2008)">Softperfect Network Scanner</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/05/22/network-settings-manager/" title="Network Settings Manager (May 22, 2008)">Network Settings Manager</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/09/19/hamachi-virtual-private-network/" title="Hamachi Virtual Private Network (September 19, 2006)">Hamachi Virtual Private Network</a> (17)</li>
	<li><a href="http://www.ghacks.net/2008/03/19/fast-ip-switcher/" title="Fast IP Switcher (March 19, 2008)">Fast IP Switcher</a> (5)</li>
	<li><a href="http://www.ghacks.net/2008/05/11/etoolz-network-toolset/" title="eToolz Network Toolset (May 11, 2008)">eToolz Network Toolset</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/08/11/port-scanning-networking-tool-superscan/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
