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. */