mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 20:09:02 +00:00
IP Proto ping (-PO) is a raw scan type. Fixes #1503
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user