mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Send any matching probes after a softmatch; do not filter by rarity
This commit is contained in:
@@ -1870,8 +1870,10 @@ bool dropdown = false;
|
||||
// version detection intensity level.
|
||||
if ((proto == (*current_probe)->getProbeProtocol()) &&
|
||||
!(*current_probe)->portIsProbable(tunnel, portno) &&
|
||||
(*current_probe)->getRarity() <= o.version_intensity &&
|
||||
(!softMatchFound || o.version_intensity >= 9 || (*current_probe)->serviceIsPossible(probe_matched))) {
|
||||
// No softmatch so obey intensity, or
|
||||
((!softMatchFound && (*current_probe)->getRarity() <= o.version_intensity) ||
|
||||
// Softmatch, so only require service match (no rarity check)
|
||||
(softMatchFound && (o.version_intensity >= 9 || (*current_probe)->serviceIsPossible(probe_matched))))) {
|
||||
// Valid, probe. Let's do it!
|
||||
return *current_probe;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user