Assume I am executing nmap shell to find out a simple output.We are all familiar with this one:
Starting Nmap 6.47 ( http://nmap.org ) at....
Nmap scan report for www.google.com (172.217.26.68)
Host is up (0.085s latency).
rDNS record for 172.217.26.68: sin10s02-in-f68.1e100.net
Not shown: 998 filtered ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 9.38 seconds
Now I want the port state and service specifically For example:
Open ports are:
80
443
or something like this.The point is I want to use a specific output and use it somewhere else.Can anyone give me a very very simple example?