From 07b68791039ce7f74357247cdece516db9f94025 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 5 Mar 2019 20:02:42 +0000 Subject: [PATCH] IP Proto ping (-PO) is a raw scan type. Fixes #1503 --- NmapOps.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NmapOps.cc b/NmapOps.cc index 6149ae998..1775b030c 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -415,7 +415,7 @@ bool NmapOps::UDPScan() { bool NmapOps::RawScan() { if (ackscan||finscan||idlescan||ipprotscan||maimonscan||nullscan||osscan||synscan||udpscan||windowscan||xmasscan||sctpinitscan||sctpcookieechoscan||traceroute) return true; - if (pingtype & (PINGTYPE_ICMP_PING|PINGTYPE_ICMP_MASK|PINGTYPE_ICMP_TS|PINGTYPE_TCP_USE_ACK|PINGTYPE_UDP|PINGTYPE_SCTP_INIT)) + if (pingtype & (PINGTYPE_ICMP_PING|PINGTYPE_ICMP_MASK|PINGTYPE_ICMP_TS|PINGTYPE_TCP_USE_ACK|PINGTYPE_UDP|PINGTYPE_PROTO|PINGTYPE_SCTP_INIT)) return true; /* A SYN scan will only generate raw packets if nmap is running as root. Otherwise, it becomes a connect scan. */