<?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>nmap Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nmap/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 12 Oct 2021 15:11:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install and use nmap on Linux</title>
		<link>https://www.osradar.com/install-use-nmap-linux/</link>
					<comments>https://www.osradar.com/install-use-nmap-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 15 Oct 2021 23:04:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32586</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install and use Nmap on Linux. This tool allows you to scan the ports of one or several hosts and can be useful in auditing tools. Nmap is an open-source, cross-platform tool used to scan networks and obtain information about services, operating systems, and vulnerabilities [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-use-nmap-linux/">How to install and use nmap on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install and use Nmap on Linux. This tool allows you to scan the ports of one or several hosts and can be useful in auditing tools.</p>



<p>Nmap is an open-source, cross-platform tool used to scan networks and obtain information about services, operating systems, and vulnerabilities derived from the conjunction of these. In general, Nmap is used to scan the ports of one or more hosts.</p>



<p>A more exact definition is provided by the <a href="https://nmap.org/" target="_blank" rel="noreferrer noopener">project’s website</a></p>



<blockquote class="wp-block-quote"><p>Nmap (“Network Mapper”) is a free and open-source (license) utility for network discovery and security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime.</p></blockquote>



<p>More about Nmap:</p>



<blockquote class="wp-block-quote"><p>Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics.</p></blockquote>



<p>So if you are passionate about the world of computer security or auditing, then you need to learn how to use Nmap. Or at least get to know it.</p>



<h2 id="install-nmap-on-linux">Install Nmap on Linux</h2>



<p>Fortunately, Nmap is available in the official repositories of many Linux distributions. So installing it will not be a problem for us.</p>



<p>In the case of distributions from the <a href="https://www.osradar.com/tag/debian" target="_blank" rel="noreferrer noopener">Debian </a>family which includes <a href="https://www.osradar.com/tag/ubuntu" target="_blank" rel="noreferrer noopener">Ubuntu </a>and its derivatives such as Linux Mint in a terminal you have to execute</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install nmap</pre>



<p>On the other hand, in the case of the RHEL family including CentOS, Fedora, or <a href="https://www.osradar.com/migrate-from-centos-to-rocky-linux/" target="_blank" rel="noreferrer noopener">Rocky Linux</a>, you just need to run</p>



<pre class="wp-block-preformatted">sudo dnf install nmap</pre>



<p>But you can also install it on OpenSUSE</p>



<pre class="wp-block-preformatted">sudo zypper in nmap</pre>



<p>Then, to check that the installation has been successful, you can run</p>



<pre class="wp-block-preformatted">nmap --version
Nmap version 7.80 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.1j libssh2-1.9.0 libz-1.2.11 libpcre-8.39 libpcap-1.10.0 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select</pre>



<p>Now we can use it.</p>



<h2 id="using-nmap-on-linux">Using Nmap on Linux</h2>



<p>With Nmap installed correctly, you should be able to use it on your computer without any problems. We’ll go through several examples on how to use this tool.</p>



<p>To scan a host, you can run</p>



<pre class="wp-block-preformatted">sudo nmap [host]</pre>



<p>For example</p>



<pre class="wp-block-preformatted">sudo nmap localhost</pre>



<p>sample output:</p>



<pre class="wp-block-preformatted">Starting Nmap 7.80 ( https://nmap.org ) at 2021-10-12 10:50 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000040s latency).
Other addresses for localhost (not scanned): ::1
All 1000 scanned ports on localhost (127.0.0.1) are closed</pre>



<p>As you can see some interesting information is displayed on the output screen which is useful for detecting problems.</p>



<p>To do a quick scan then you can use the <code>-F</code> option</p>



<pre class="wp-block-preformatted">sudo nmap -F [host]</pre>



<p>You can replace <code>[host]</code> with the IP address of the computer you want to scan.</p>



<pre class="wp-block-preformatted">sudo nmap 192.168.2.3</pre>



<p>Also, you can specify multiple hosts or IP addresses.</p>



<pre class="wp-block-preformatted">sudo nmap 192.168.2.3, 192.168.2.6, 192.168.1.1</pre>



<p>Or a range</p>



<pre class="wp-block-preformatted">sudo nmap 192.168.2.3-20</pre>



<p>In this case, it will scan IP addresses ranging from <code>192.168.2.3</code> to <code>192.168.2.20</code>.</p>



<p>Another option is to scan the entire subnet</p>



<pre class="wp-block-preformatted">sudo nmap 192.168.1.1/24</pre>



<p>You can change the frequency and timing of the network scans with the <code>-T</code> option and by specifying a number between <code>0-5</code>, the higher the number the faster the scan.</p>



<p>For example</p>



<pre class="wp-block-preformatted">sudo nmap -T4 localhost</pre>



<p>In this case response times will be lower and can be useful on slow or busy networks.</p>



<p>If you want to have information about the ports, you have to add the <code>-p</code> option and specify some or a range of ports</p>



<pre class="wp-block-preformatted">sudo nmap -p 25,80 192.168.2.1</pre>



<p>In this case, the TCP port <code>25</code> and <code>80</code> of the host will be scanned.</p>



<p>If you want to scan UDP ports</p>



<pre class="wp-block-preformatted">sudo nmap -sU -p 25,80 192.168.2.1</pre>



<h2 id="conclusion">Conclusion</h2>



<p>Nmap is a vital tool for many sysadmin who need to find out some weaknesses.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-use-nmap-linux/">How to install and use nmap on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-use-nmap-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
