How To Exclude Hosts From Nmap Scan?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/exclude-hosts-nmap-scan/
PINTEREST
PINTEREST
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  How To Generate Ssh Key With ssh-keygen In Linux?

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

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/exclude-hosts-nmap-scan/
PINTEREST
PINTEREST
INSTAGRAM