1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-23 14:49:02 +00:00

do not print os fingerprint if more than 10 hops away

This commit is contained in:
fyodor
2006-08-27 03:55:17 +00:00
parent d4d77fa1de
commit 8e0b8aa6b5

View File

@@ -153,9 +153,11 @@ const char *FingerPrintResults::OmitSubmissionFP() {
if (osscan_closedtcpport <= 0)
return "Missing a closed TCP port so results incomplete";
// I'm not sure this is really necessary
// if (distance > 15)
// return "Host more than fifteen network hops away";
// I'm not sure this is really necessary, but maybe. Large routes
// can cause asymetric routing which leads to wrong TTL information.
// They can cause variable timing too.
if (distance > 10)
return "Host more than fifteen network hops away";
if (maxTimingRatio > 1.4)
return "maxTimingRatio is greater than 1.4";