nmap

Install

apt

sudo apt install nmap

yum

sudo yum install nmap

The version in the apt repository can sometimes be a year or more behind current. To keep current, you can use this alternative install method on Debian derivatives (like Ubuntu)....

Download the nmap RPM from https://nmap.org/download.html

Verify integrity (TODO)

Generate a DEB package using...

sudo alien nmap-*.rpm

For more info on Alien, see the UNIX Package Managers link above

Uninstall any existing nmap version...

sudo apt remove nmap

sudo apt remove nmap-common

Install the DEB package using...

sudo dpkg --install nmap_*.deb

Check

nmap --version

Usage

nmap -sV 192.168.100.11 -p 5432

Using nmap to list mysql databases...

You do need to know the port MySQL is running on and have a username and password

nmap -p3306 --script mysql-databases --script-args mysqluser=myuser,mysqlpass=mypassword myhostname

Install

yum

sudo yum install nmap

For Debian derivatives (like Ubuntu)....

Download the zenmap RPM from https://nmap.org/download.html

Verify integrity (TODO)

Generate a DEB package using...

sudo alien zenmap-*.rpm

For more info on Alien, see the UNIX Package Managers link above

Install the DEB package using...

sudo dpkg --install zenmap_*.deb

Usage

sudo zenmap

Network topology

Bibliography