From b31a8aa8758730269e1b9273684d6287a94fd7b6 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 23 Feb 2011 17:23:21 +0000 Subject: [PATCH] Show the line number for matches without product information (only a service name) too. --- service_scan.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service_scan.cc b/service_scan.cc index e66df8f61..cbe7e566c 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -2204,9 +2204,10 @@ static void servicescan_read_handler(nsock_pool nsp, nsock_event nse, void *myda MD->serviceName, (MD->product)? MD->product : "", (MD->version)? MD->version : "", (MD->info)? MD->info : ""); else - log_write(LOG_PLAIN, "Service scan %s match (Probe %s matched with %s): %s:%hu is %s%s\n", + log_write(LOG_PLAIN, "Service scan %s match (Probe %s matched with %s line %d): %s:%hu is %s%s\n", (MD->isSoft)? "soft" : "hard", probe->getName(), (*probe->fallbacks[fallbackDepth]).getName(), + MD->lineno, svc->target->targetipstr(), svc->portno, (svc->tunnel == SERVICE_TUNNEL_SSL)? "SSL/" : "", MD->serviceName); } svc->probe_matched = MD->serviceName;