mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Fix the IPProto scan for UDP. Now we check for ICMP Port Unreachable and call it open if we get one. This was coming up open|filtered, and sometimes filtered before.
This commit is contained in:
@@ -3090,7 +3090,11 @@ static bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
||||
if (USI->scantype == UDP_SCAN &&
|
||||
hss->target->v4hostip()->s_addr == ip->ip_src.s_addr)
|
||||
newstate = PORT_CLOSED;
|
||||
else newstate = PORT_FILTERED;
|
||||
else if (USI->scantype == IPPROT_SCAN &&
|
||||
hss->target->v4hostip()->s_addr == ip->ip_src.s_addr)
|
||||
newstate = PORT_OPEN;
|
||||
else
|
||||
newstate = PORT_FILTERED;
|
||||
break;
|
||||
case 9: /* dest. net admin prohibited */
|
||||
case 10: /* detst host admin prohibited */
|
||||
|
||||
Reference in New Issue
Block a user