How To Exclude Hosts From Nmap Scan? – POFTUT

How To Exclude Hosts From Nmap Scan?

Nmap is a very useful tool for network administration and security. It is the most used tool in these areas. But a lot of people use it with very basic means. Here we will look more sophisticated usage of Nmap step by step in this ant further posts.

Target Hosts

Create a text file and add hosts/networks to it and then use this file with Nmap. You can use network blocks like 192.168.122.0/24 or ranges 192.168.122.10-20.

Start Scan

We will start the scan with the -iL option by providing the target host file.

Specify Exclude Hosts

Exclude some hosts with the same syntax used above. You can read them from file or specify by option. -v option is used for verbose output. We will use --exclude command by providing the IP address 192.168.122.254`

LEARN MORE  How To Secure Linux From Automated Attacks?

We can also use hostname but name resolving must be available.

Leave a Reply

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

Enjoy this blog? Please spread the word :)