<?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 &#124; Latest Tech News, Software And Tutorials &#187; nmap</title> <atom:link href="http://www.ghacks.net/tag/nmap/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <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> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Map your network with Zenmap</title><link>http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/</link> <comments>http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/#comments</comments> <pubDate>Sun, 09 Aug 2009 19:47:47 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Hardware]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[network mapping]]></category> <category><![CDATA[network scanner]]></category> <category><![CDATA[nmap]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=15190</guid> <description><![CDATA[Nmap is one of the most useful network discovery tools you will ever use. Nmap allows you to explore networks of any size to determine the following information: Port details Host details State Service Devices Addresses and much, much more Nmap is one of those applications you will need to open anytime you see issues [...]]]></description> <content:encoded><![CDATA[<p><a
title="Nmap" href="http://nmap.org/" target="_blank">Nmap</a> is one of the most useful network discovery tools you will ever use. Nmap allows you to explore networks of any size to determine the following information:</p><ul><li>Port details</li><li>Host details</li><li>State</li><li>Service</li><li>Devices</li><li>Addresses</li><li>and much, much more</li></ul><p>Nmap is one of those applications you will need to open anytime you see issues on your network, need to get information about hosts, track down an IP address, etc. Nmap is flexible, powerful, deployed all over the world (it is in the top 10 programs on <a
title="Freshmeat" href="http://freshmeat.net/" target="_blank">Freshmeat</a>), easy to use, well documented, cross platform (Linux, OS X, and Windows ) and (best of all) FREE!</p><p>But Nmap is a commmand-line only tool. Most users don&#8217;t want to monkey with the command line. Fortunately there are plenty of front-end tools for command line equivalents. For Nmap you can use the user-friend <a
title="Zenmap" href="http://nmap.org/zenmap/" target="_blank">Zenmap</a>. And how can you get up to speed quickly with Zenmap? Easy&#8230;you read this tutorial on how to run a scan on your entire LAN and then read the results.</p><p><span
id="more-15190"></span><strong>Getting and installing</strong></p><p>To install Zenmap you will have to install Nmap along with it. You can do this one of two ways: with Synaptic (or another GUI front end for your installation tool), or from the command line. To install via your Add/Remove Software tool follow these steps:</p><ol><li>Open up your Add/Remove Software utility.</li><li>Search for Nmap.</li><li>Mark Nmap for installation.</li><li>Search for Zenmap.</li><li>Mark Zenmap for installation.</li><li>Click Apply to install.</li></ol><p>Once installed you will see the entry for Zenmap in your Internet (or Network) sub-menu of your Applications or Main menu. You will want to run Zenmap as the root user because, most likely, your standard user will not have access to the networking devices.</p><p><strong>Running Zenmap</strong></p><div
id="attachment_15192" class="wp-caption alignleft" style="width: 390px"><a
rel="attachment wp-att-15192" href="http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/zenmap/"><img
class="size-full wp-image-15192 " src="http://www.ghacks.net/wp-content/uploads/2009/08/zenmap.png" alt="Figure 1" width="380" height="381" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you fire up Zenmap you will see the main window (see Figure 1) which will be empty of scans (because none have been issued as of yet).</p><p>To start a new scan you can do one of two things: You can enter a target IP (or range), select the type of scan, and hit Scan. Or you can open up the Command Wizard to construct a much more specific type of scan.</p><p>If you opt for just entering in your target(s) here&#8217;s how it works. The first thing you do is enter a target IP address. If you want to use a range of addresses the address would look like this: 192.168.1.1-200. NOTE: There are no spaces in the address.</p><p>You then need to select the type of scan to run. There are eight different types of scans to run. The intense scan will give you the most information and the Operating System Detection will give you the least amount of information.</p><p>The second method of setting up a scan is the Command Wizard. When you click this button you will walk through the following steps:</p><ul><li>Novice/Expert: Select the level of configuration you want to use.</li><li>Profile/Command: Create a new profile or create a command to run once.</li><li>Profile Details: If you go the Profile route you will have to enter the profile details.</li><li>Scan Type: TCP or Non-TCP scan types as well as inclusion of Services version and Operating system detection.</li><li>Ping Options: ICMP, ACK, SYN, IPPronto, etc details (if needed).</li><li>Scripting Options: If you need to add special scripts to your scan.</li><li>Target Options: Exclude hosts as well as configure ports to scan.</li><li>Source Options: Use decoys, set source address, set source port options if needed.</li><li>Misc Options: Various options to include.</li></ul><p>Once you have finished configuring your scan via the Wizard you can hit the Scan button. However, if you opted to go the Profile route you will need to select your new profile from the Profile dropdown list.</p><p><strong>Scan results</strong></p><div
id="attachment_15195" class="wp-caption alignright" style="width: 390px"><a
rel="attachment wp-att-15195" href="http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/scan_results/"><img
class="size-full wp-image-15195 " src="http://www.ghacks.net/wp-content/uploads/2009/08/scan_results.png" alt="Figure 2" width="380" height="381" /></a><p
class="wp-caption-text">Figure 2</p></div><p>After your scan has completed you can take a look at your scan results. There are five tabs that will give you various information about the scan. Obviously the Scan Details tab is where you will get a good summation of your scan. To get the low-level details of your scan take a look at the Nmap Output tab. As your scan is running this is the only tab you can view &#8211; and it will give you every piece of information you need.</p><p><strong>Saving scans</strong></p><p>A nice feature of Zenmap is the ability to save scans. Once you have a scan completed you can save your scan and open it for later viewing. The only downfall of this is the Nmap Output is a bit cramped together. While the scan is running the output is displayed in real time so it&#8217;s easy to read. When not in real time this output can really be a pain to get through. Fortunately, between the other tabs, you can get all of the information you need quickly and easily.</p><p><strong>Final thoughts</strong></p><p>Zenmap makes easy work out of the complicated Nmap command utility. If you have any need to map a network or analyze your network topography, Zenmap is the way to go.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
