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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.