How To Exclude Hosts From Nmap Scan?

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Nmap is very useful tool for network administration and security. It is 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 scan with the -iL option by providing 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  Linux Dig Command Tutorial With Examples

You can also use host name but name resolving must be available.

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Leave a Reply

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

Enjoy this blog? Please spread the word :)