From 2b8d091252eaa2a8b41fd86ff43c8cbec2ce0cce Mon Sep 17 00:00:00 2001 From: david Date: Fri, 17 Jul 2009 23:41:08 +0000 Subject: [PATCH] Include traceroute in NmapOps::RawScan. --- NmapOps.cc | 2 +- targets.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()