Linux Nmap network scanning tool installation and use

Windows Articles

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...

How to finish a task and force to close a program in Windows 10

Hello! We use numerous applications in Windows 10 on a daily basis. However, these programs can fail and crash. That is, it...

How to install Android on a USB key

Hi! Android is a very versatile mobile operating system because it is based on Linux kernel and other open-source software, it can...

Microsoft releases emergency update.

Security is one of the fundamental issues for Microsoft in Windows 10. In fact, since it was launched, the company has changed...

How to remove Windows 10 network credentials

Hi! Every time you access a website using Windows 10, a lot happens. In fact, the system will store the credentials to...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

This paper introduces the installation and use of the Nmap network scanning tool under centos.

NMAP is a popular network scanning and sniffing tools is also a powerful tool for port scanning type safety assessment, is widely used in the security scan, NMAP is a useful online tool, also is often used in the production and development, mainly for port open view of detection and LAN information collection, etc., different Linux distributions generally also with NMAP package management tool, can also choose to go to the website to download the source code package compiled installation.

Install nmap

In case, you are unable to use nmap command, use below command to install it

 centos:yum install nmap
 ubuntu:apt-get install nmap  
centos install nmap
centos install nmap

Check that the installation is successful

 nmap -v
Check

Nmap usage method

  • Scan IP which common TCP port and UDP port are open
nmap 127.0.0.1 or nmap -sS -sU -p 1-65535 127.0.0.1
Scan IP
  • Scan multiple IP addresses or subnet
nmap 127.0.0.1 172.16.6.1
nmap 172.16.6.1-100
nmap 172.16.6.0/24  

In the scan result, if the state column is open, it means the state is open; if it is filtered, it may be filtered by a firewall; if it is closed, it means the port is closed.

  • Scans which hosts are alive in the subnet
nmap -n -sP 172.16.6.0/24
Scan subnet alive
  • Nmap route trace
namp –traceroute 8.8.8.8  
traceroute
  • Scans IP or subnet hosts for port
nmap -p 12598 127.0.0.1
nmap -p 12598 172.16.6.0/24
Scans port
  • An option that goes one step further and gives you more information about the services running on a specific host is ‘-A’.
nmap -A 127.0.0.1
all information
  • Nmap scans the operating system type using the -O option
nmap -O 12598 127.0.0.1
operating system type
  • For an in-depth understanding of the use of the nmap command, use it to examine the man pages
man nmap

Conclusions

nmap is one of those utilities that have so many options and capabilities, it can actually be overwhelming. As is the case with those types of utilities, you will end up using only a fraction of its capabilities to help get a specific job done. If you want to use it at its full potential, you’re in for a lot of trial and error and some hands-on experience with real networks.

So, you can read our post abour networks in this link.

Please share this post and join our Telegram Channel

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...

How to finish a task and force to close a program in Windows 10

Hello! We use numerous applications in Windows 10 on a daily basis. However, these programs can fail and crash. That is, it...

How to install Android on a USB key

Hi! Android is a very versatile mobile operating system because it is based on Linux kernel and other open-source software, it can...

Microsoft releases emergency update.

Security is one of the fundamental issues for Microsoft in Windows 10. In fact, since it was launched, the company has changed...

How to remove Windows 10 network credentials

Hi! Every time you access a website using Windows 10, a lot happens. In fact, the system will store the credentials to...
x