diff --git a/nxc/connection.py b/nxc/connection.py index 5ad1044a..7831d9bd 100755 --- a/nxc/connection.py +++ b/nxc/connection.py @@ -309,7 +309,7 @@ class connection(object): # Parse passwords for password in self.args.password: if isfile(password): - with open(password, 'r') as password_file: + with open(password, 'r', errors='ignore') as password_file: for line in password_file: secret.append(line.strip()) cred_type.append('plaintext')