From 16c6ebfe1a0c10578dfe4c318f8d747f6cad6cc8 Mon Sep 17 00:00:00 2001 From: zblurx Date: Wed, 17 Apr 2024 13:07:25 +0200 Subject: [PATCH] fix computers enum --- nxc/protocols/smb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nxc/protocols/smb.py b/nxc/protocols/smb.py index b7d44307f..d8c289ff1 100755 --- a/nxc/protocols/smb.py +++ b/nxc/protocols/smb.py @@ -1011,7 +1011,7 @@ def users(self): self.logger.debug(f"Dumping users: {', '.join(self.args.users)}") return UserSamrDump(self).dump(self.args.users) - def hosts(self): + def computers(self): hosts = [] for dc_ip in self.get_dc_ips(): try: @@ -1033,7 +1033,7 @@ def hosts(self): self.logger.highlight(f"{domain}\\{host_clean:<30}") break except Exception as e: - self.logger.fail(f"Error enumerating domain hosts using dc ip {dc_ip}: {e}") + self.logger.fail(f"Error enumerating domain computers using dc ip {dc_ip}: {e}") break return hosts