I am new to
nmap and its usage. I am trying to perform a UDP scan for ports for a local IP address.
# sudo nmap -T4 -Pn -sU -p 54 192.a.b.c -vv ... Nmap scan report for 192.a.b.c Host is up. PORT STATE SERVICE 54/udp open|filtered xns-ch # sudo nmap -T4 -Pn -sU -p 512,59 192.a.b.c -vv Nmap scan report for 192.a.b.c Host is up. PORT STATE SERVICE 512/udp open|filtered biff 59/udp open|filtered priv-file
As shown, some ports revealed about the services that they are running. Hence to get a complete list of all the services on the port, I tried executing the following:
# nmap -T4 -n -Pn -sU -p- 192.x.x.x -vv ... Nmap scan report for 192.x.x.x Host is up, received user-set. All 65535 scanned ports on 192.168.232.2 are open|filtered because of 65535 no-responses
I was of the opinion that a complete(ports 1-65535) UDP scan(as in Approach 2) will give me the list of all services over the ports. However this was not the case.
Can anyone tell me, what have I misunderstood or done incorrect?