Nmap scan to get 2 random addresses with open port 80 in an IP prefix

207 Views Asked by At

How can I use nmap to get 2 random addresses with open port 80 in an IP prefix. Nmap takes time for port scanning. Is there way to speed up the scanning?

1

There are 1 best solutions below

0
Niraeth On

Not sure if i got what you are asking but you just have to specify the port number to scan for and grep for open if you need the ip address then use -B number of lines. Its not random but you could probably just pick out 2 of your choice if any at all? nmap -p80 iprange | grep "open" -B 4