From 43d21f7faa819c4a32b8f6f59b9472a1758325e1 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 16 Jul 2008 18:51:46 +0000 Subject: [PATCH] Prevented protocol timing probes from being sent out during udp or tcp scans --- scan_engine.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scan_engine.cc b/scan_engine.cc index bf359c25f..a3b973d36 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -973,9 +973,10 @@ static bool pingprobe_is_appropriate(const UltraScanInfo *USI, return USI->scantype == CONNECT_SCAN || (USI->ping_scan && USI->ptech.connecttcpscan); case(PS_TCP): case(PS_UDP): + return USI->tcp_scan || USI->udp_scan || + (USI->ping_scan && (USI->ptech.rawtcpscan || USI->ptech.rawudpscan)); case(PS_PROTO): - return USI->tcp_scan || USI->udp_scan || USI->prot_scan || - (USI->ping_scan && (USI->ptech.rawtcpscan || USI->ptech.rawudpscan || USI->ptech.rawprotoscan)); + return USI->prot_scan || (USI->ping_scan && USI->ptech.rawprotoscan); case(PS_ICMP): return ((USI->ping_scan && !USI->ping_scan_arp )|| pingprobe->pd.icmp.type == 3); case(PS_ARP):