Fix decode errors on password file decoding

main
Alex 2023-09-20 14:45:27 +02:00
parent b6f6f1967a
commit 79519d3b4b
1 changed files with 1 additions and 1 deletions

View File

@ -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')