Install latest version of Nmap and scan for open ports with Nmap
Hello guys, in this tutorial I will explain how to install latest version of Nmap and scan open ports with nmap of a remote server or computer.
– A Remote server or machine for scanning, I will be using Nmaps test server
Let’s do it.
Installing latest Nmap version
Head to Nmap download page and download the latest stable tarball. While writing this, the version is 7.60. Remember to change the version to command if it is other than 7.60
Extract it to directory of your choice. I will just throw it to a home folder.
Open the folder with cd on terminal
Then do the following commands:
If this fails, you probably don’t have the compiler:
sudo apt-get -y install build-essential
and try the
And then install it to entire system by this command as root user (you can use sudo if your system has it.)
You should get this kind of output for successful installation.
make: Leaving directory '/home/h/nmap-7.60/nping'
NMAP SUCCESSFULLY INSTALLED
Scan for open ports Nmap
NMAP IS A POWERFUL TOOL — USE CAREFULLY AND RESPONSIBLY
Scan every TCP/UDP port on the remote system
sudo nmap -n -PN -sT -sU -p- scanme.nmap.org
Scan to find out remote machines operating system
sudo nmap -O scanme.nmap.org
Scan a specific port
sudo nmap -p port_number_here scanme.nmap.org
Thank you for following my tutorial.