Skip to content

Commit

Permalink
Add info log message if connection couldn't be established
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed Mar 30, 2024
1 parent 1ba3d04 commit 67bf99b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nxc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "")):
Expand Down

0 comments on commit 67bf99b

Please sign in to comment.