Agent: Add some debug logging to SMBFingerprinter

This commit is contained in:
Mike Salvatore 2022-02-09 11:57:13 -05:00
parent fec7d987d8
commit f85bb389cc
1 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,8 @@ class SMBFingerprinter(IFingerprinter):
if (SMB_PORT not in port_scan_data) or (port_scan_data[SMB_PORT].status != PortStatus.OPEN):
return FingerprintData(None, None, services)
logger.debug(f"Fingerprinting potential SMB port {SMB_PORT} on {host}")
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(0.7)
@ -188,6 +190,8 @@ class SMBFingerprinter(IFingerprinter):
]
)
logger.debug(f'os_version: "{os_version}", service_client: "{service_client}"')
if os_version.lower() != "unix":
os_type = "windows"
else: