mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
IP Proto ping (-PO) is a raw scan type. Fixes #1503
This commit is contained in:
parent
d86a177456
commit
07b6879103
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue