forked from p15670423/monkey
Agent: Remove unused "os-version" from fingerprinters
This commit is contained in:
parent
f2e95daa56
commit
96f59cc628
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue