mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Fixed KeyError: 'osmatches', reported separately by Thomas Neumayer and Jan Reister.
This commit is contained in:
@@ -152,7 +152,7 @@ class HostSearch(object):
|
||||
|
||||
for osmatch in osmatches:
|
||||
os_str += osmatch['name'].lower()
|
||||
for osclass in osmatch['osmatches']:
|
||||
for osclass in osmatch['osclasses']:
|
||||
os_str += osclass['vendor'].lower() + " " +\
|
||||
osclass['osfamily'].lower() + " " +\
|
||||
osclass['type'].lower()
|
||||
|
||||
Reference in New Issue
Block a user