How to do it...

In this section, we will see how we can use Nmap for performing different types of scans using the following steps:

  1. Once nmap is installed, we can get more information about the options which can be used with nmap by just typing nmap and pressing Enter. This will display the following output, which shows all of the options supported by nmap:

  1. Let's begin by scanning the live hosts in our network by using Nmap. To do so, run the following command:

In the preceding output, we can see the hosts which are up.

  1. Now, let's perform ...

Get Practical Linux Security Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.