Build precise queries to find exactly what you need
Press ESC to close
@crefeld
Favorites0
Views
Projects0
Thanks for this helpful tool. For some nmap-versions (e.g. nmap 5.21 on opensuse 11.4) you will have to remove an extra line with the MAC-address after the port line to get a valid result string: PORT STATE SERVICE 177/udp open xdmcp MAC Address: 00:30:48:11:22:33 (Supermicro Computer) Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds As not being familiar with extended regular expressions I extended the nmap statement: result=`/usr/bin/nmap -sU -p $port -P0 $host |grep -v MAC` This works but feel free to find the respective expression for f_result.
Reviewed 10 years ago