O'Reilly logo

Kali Linux Cookbook - Second Edition by Bob Perciaccante, Corey P. Schultz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scan all the TCP ports of a host

To perform a full TCP scan of our Metasploitable machine, 192.168.56.102, we add the command line option -p-. Substitute the IP address for your Metasploitable virtual machine:

nmap -p- 192.168.56.102

This command will scan all the TCP ports of the target device. The following is the output of our scan. You will notice that we have discovered some new open ports:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required