mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Show the line number for matches without product information (only a
service name) too.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user