How to Perform Open Port Scanning and OS Detection Using Nmap

  • 1.3K
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1.3K
    Shares

Today in this tutorial we will have a look at how we can use Nmap (Which stands for Network Mapper )in  Kali Linux to scan for open ports. To do this, we will use OS detection.

Nmap is an open source tool that can be used for network exploration and security auditing. This comes standard with Kali Linux but is also available for users with other operating systems like OSX, Windows and also many UNIX platforms. If you are interested use to Nmap with a GUI, you can opt for Zenmap, which is a graphical interface for the Nmap.

First I want to start off with a little warning: Please be careful using the more aggressive functions of Nmap against hosts you do not own or do not have permission to scan. It may be against your ISP’s terms to use some Nmap features.

Open Port Scanning and OS Detection

Let’s start with a ping scan on an IP range to determine live hosts using the following command:

nmap -sP 192.168.0.0-100

Next we will start a SYN scan with OS detection on one of the live hosts using the following command:

nmap -sS [ip address]-O

nmap-open-port-scanning-and-os-detection-1

Now we will start an open port scan with version detection using the following command:

nmap -sV 192.168.0.1 -A

nmap-open-port-scanning-and-os-detection-2

When we add -v to the command we can increase the verbosity :
nmap -sV 192.168.0.13 -A -v

The following two tabs change content below.

Unallocated Author

Please note that the article you are reading has an unallocated author as the original author is no longer employed at latesthackingnews.com, this has been put in place to adhere with general data protection regulations (GDPR). If you have any further queries, please contact: [email protected]

Unallocated Author

Please note that the article you are reading has an unallocated author as the original author is no longer employed at latesthackingnews.com, this has been put in place to adhere with general data protection regulations (GDPR). If you have any further queries, please contact: [email protected]

Leave a Reply