fix rdcman module

main
famos0 2023-03-30 18:15:20 +02:00
parent 8ee82e7847
commit 53b745b1b2
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ class CMEModule:
context.log.debug("Could not upgrade connection: {}".format(e))
return
plaintexts = {username:password for _, _, username, password, _,_ in context.db.get_credentials(credtype="plaintext")}
nthashes = {username:nt.split(':')[1] if ':' in nt else nt for _, _, username, nt, _,_ in context.db.get_credentials(credtype="hash")}
plaintexts = {username:password for _, _, username, password, _,_ in context.db.get_credentials(cred_type="plaintext")}
nthashes = {username:nt.split(':')[1] if ':' in nt else nt for _, _, username, nt, _,_ in context.db.get_credentials(cred_type="hash")}
if password != '':
plaintexts[username] = password
if nthash != '':