Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Oct 20, 2024
1 parent d4a17c0 commit 536cede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nxc/protocols/smb.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ def enum_host_info(self):
except KeyError:
self.logger.debug("Error getting server information...")

# Handle cases where server_os is returned as bytes, such as when accidentally scanning a machine running Responder
if isinstance(self.server_os.lower(), bytes):
self.server_os = self.server_os.decode("utf-8")

if "Windows 6.1" in self.server_os and self.server_os_build == 0 and self.os_arch == 0:
self.server_os = "Unix - Samba"
elif self.server_os_build == 0 and self.os_arch == 0:
Expand Down

0 comments on commit 536cede

Please sign in to comment.