forked from p15670423/monkey
Agent: Add some debug logging to SMBFingerprinter
This commit is contained in:
parent
fec7d987d8
commit
f85bb389cc
|
@ -154,6 +154,8 @@ class SMBFingerprinter(IFingerprinter):
|
||||||
if (SMB_PORT not in port_scan_data) or (port_scan_data[SMB_PORT].status != PortStatus.OPEN):
|
if (SMB_PORT not in port_scan_data) or (port_scan_data[SMB_PORT].status != PortStatus.OPEN):
|
||||||
return FingerprintData(None, None, services)
|
return FingerprintData(None, None, services)
|
||||||
|
|
||||||
|
logger.debug(f"Fingerprinting potential SMB port {SMB_PORT} on {host}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
s.settimeout(0.7)
|
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":
|
if os_version.lower() != "unix":
|
||||||
os_type = "windows"
|
os_type = "windows"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue