Agent: Remove unused "os-version" from fingerprinters

This commit is contained in:
Mike Salvatore 2021-12-13 10:20:33 -05:00
parent f2e95daa56
commit 96f59cc628
2 changed files with 2 additions and 4 deletions

View File

@ -181,8 +181,7 @@ class SMBFinger(HostFinger):
host.services[SMB_SERVICE]["name"] = service_client
if "version" not in host.os:
host.os["version"] = os_version
else:
host.services[SMB_SERVICE]["os-version"] = os_version
return True
except Exception as exc:
logger.debug("Error getting smb fingerprint: %s", exc)

View File

@ -28,8 +28,7 @@ class SSHFinger(HostFinger):
os_version = banner.split(" ").pop().strip()
if "version" not in host.os:
host.os["version"] = os_version
else:
host.services[service]["os-version"] = os_version
break
def get_host_fingerprint(self, host):