How to Perform Open Port Scanning and OS Detection Using Nmap

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

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

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

nmap -sV -A

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

Related posts

Questions to Ask Before Committing to a DLP Solution

Frontend as a Service (FaaS): Revolutionizing Web Development for Speed and Simplicity

Why is cyber security important for your company?