How do you scan the IP addresses for a certain open port with nmap?
-
Using nmap, I faced a problem: when I scan the range of IP addresses for a certain open port with nmap, I get a lot of information: closed, open and filtered ports. I don't need information on closed and filtering ports, but I need only open ports and IP addresses where this port is open. Write what team I can use for this. It would be ideal if the information were to come in such a form, if that was possible: Discovered open port 12345/tcp on 94.75.2.5 (e.g.) Discovered open port 12345/tcp on 94.75.2.10 (e.g.) Thank you.
-
Use the grep, remove the lines that begin with 'Discovered'
nmap 10.0.0.0/24 -Pn -p 22 -v | grep 'Discovered'