diff --git a/nxc/protocols/smb.py b/nxc/protocols/smb.py index b18ee7ab7..e9d4172de 100755 --- a/nxc/protocols/smb.py +++ b/nxc/protocols/smb.py @@ -572,6 +572,9 @@ def check_if_admin(self): self.admin_privs = True except scmr.DCERPCException: self.admin_privs = False + except Exception as e: + self.logger.fail(f"Error checking if user is admin on {self.host}: {e}") + self.admin_privs = False def gen_relay_list(self): if self.server_os.lower().find("windows") != -1 and self.signing is False: