Categories
HowTo Linux Security Tips & Tricks

Scan open ports with Nmap and install latest version of Nmap

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.

Requirements
– Linux
– A Remote server or machine for scanning, I will be using Nmaps test server scanme.nmap.org

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

cd nmap-7.60

Then do the following commands:
./configure
make

If this fails, you probably don’t have the compiler:
Run
sudo apt-get -y install build-essential
and try the make again.

And then install it to entire system by this command as root user (you can use sudo if your system has it.)
make install

You should get this kind of output for successful installation.

make[1]: 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.

You might also like these:
Linux commands that every linux user should know
How to install Kali Linux on VMWare Player

Leave a Reply

Your email address will not be published. Required fields are marked *