From 67bf99b39c81523c13f9a9b539a64cf3a2e2cb35 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Sat, 30 Mar 2024 21:09:00 +0100 Subject: [PATCH] Add info log message if connection couldn't be established --- nxc/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nxc/connection.py b/nxc/connection.py index cc2d68bb5..6165d3996 100755 --- a/nxc/connection.py +++ b/nxc/connection.py @@ -163,7 +163,9 @@ def hash_login(self, domain, username, ntlm_hash): def proto_flow(self): self.logger.debug("Kicking off proto_flow") self.proto_logger() - if self.create_conn_obj(): + if not self.create_conn_obj(): + self.logger.info(f"Failed to create connection object for target {self.host}, exiting...") + else: self.logger.debug("Created connection object") self.enum_host_info() if self.print_host_info() and (self.login() or (self.username == "" and self.password == "")):