i Nmap port scanner – All things in moderation

Nmap port scanner

Introduction

Nmap is a Network mapper. It is free, open-source port scanner available for both UNIX and Windows.
It has an optional graphical front-end, NmapFE, and supports a wide variety of scan types, each one with different benefits and drawbacks.
This article describes how to install and perform information gathering with nmap.

Installation

Install on ubuntu

On the download page http://nmap.org/download.html.

Start a terminal and run following command:

wget[ https://nmap.org/dist/nmap-7.12.tar.bz2](https://nmap.org/dist/nmap-7.12.tar.bz2)
tar jxvf nmap-7.12.tar.bz2
cd nmap-7.12/
./configure
make
make install

If the installation has been successful, run nmap comman will show folowing result:

Usage

1. Basic port scan, check open ports:

command:

nmap [IP Address or hostname]

Sample outputs:

2. Stealth port scan:

command:

nmap -sS [IP Address]

Sample outputs:

3. Scan the service and version running on Open Ports :

command:

nmap -sV [IP Address]

Sample outputs:

4. Some times if a server is blocking your ping and acting dead then you can use -Pn switch to scan it:

command:

nmap -sV -Pn [IP Address]

Sample outputs:

5. OS Fingerprinting:

command:

nmap -O  [IP Address]

Sample outputs:

6. Detect open host on network:

use options:
-sn (no port scan) for detect open host only.
-Pn for skip host discovery and perporming scan port.

command:

nmap -sn [range IP]

Sample outputs:

command:

nmap -Pn [range IP]

Sample outputs:

Leave a Reply