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
|
host.services[SMB_SERVICE]["name"] = service_client
|
||||||
if "version" not in host.os:
|
if "version" not in host.os:
|
||||||
host.os["version"] = os_version
|
host.os["version"] = os_version
|
||||||
else:
|
|
||||||
host.services[SMB_SERVICE]["os-version"] = os_version
|
|
||||||
return True
|
return True
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.debug("Error getting smb fingerprint: %s", exc)
|
logger.debug("Error getting smb fingerprint: %s", exc)
|
||||||
|
|
|
@ -28,8 +28,7 @@ class SSHFinger(HostFinger):
|
||||||
os_version = banner.split(" ").pop().strip()
|
os_version = banner.split(" ").pop().strip()
|
||||||
if "version" not in host.os:
|
if "version" not in host.os:
|
||||||
host.os["version"] = os_version
|
host.os["version"] = os_version
|
||||||
else:
|
|
||||||
host.services[service]["os-version"] = os_version
|
|
||||||
break
|
break
|
||||||
|
|
||||||
def get_host_fingerprint(self, host):
|
def get_host_fingerprint(self, host):
|
||||||
|
|
Loading…
Reference in New Issue