From c0e618fe415a75dc9e538d0f82a50aefa1183b46 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Thu, 26 Dec 2024 08:53:11 -0500 Subject: [PATCH] Fix #514 --- nxc/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/connection.py b/nxc/connection.py index 8df5cb950..e2114a7d9 100755 --- a/nxc/connection.py +++ b/nxc/connection.py @@ -384,7 +384,7 @@ def parse_credentials(self): if isfile(user): with open(user) as user_file: for line in user_file: - if "\\" in line: + if "\\" in line and len(line.split("\\")) == 2: domain_single, username_single = line.split("\\") else: domain_single = self.args.domain if hasattr(self.args, "domain") and self.args.domain else self.domain