diff --git a/NmapOps.cc b/NmapOps.cc index 9201dc9b4..5bd5983e8 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -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; diff --git a/targets.cc b/targets.cc index bd2a6592c..f2104f434 100644 --- a/targets.cc +++ b/targets.cc @@ -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()