mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 10:59:02 +00:00
Include traceroute in NmapOps::RawScan.
This commit is contained in:
@@ -323,7 +323,7 @@ bool NmapOps::UDPScan() {
|
||||
}
|
||||
|
||||
bool NmapOps::RawScan() {
|
||||
if (ackscan|finscan|idlescan|ipprotscan|maimonscan|nullscan|osscan|synscan|udpscan|windowscan|xmasscan|sctpinitscan|sctpcookieechoscan)
|
||||
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))
|
||||
return true;
|
||||
|
||||
@@ -473,7 +473,7 @@ do {
|
||||
/* We figure out the source IP/device IFF
|
||||
1) We are r00t AND
|
||||
2) We are doing tcp or udp pingscan OR
|
||||
3) We are doing a raw-mode portscan or osscan OR
|
||||
3) We are doing a raw-mode portscan or osscan or traceroute OR
|
||||
4) We are on windows and doing ICMP ping */
|
||||
if (o.isr00t && o.af() == AF_INET &&
|
||||
((pingtype & (PINGTYPE_TCP|PINGTYPE_UDP|PINGTYPE_SCTP_INIT|PINGTYPE_PROTO|PINGTYPE_ARP)) || o.RawScan()
|
||||
|
||||
Reference in New Issue
Block a user