From 53b745b1b2ddb71b12381aba8a42c4ec7e9178a7 Mon Sep 17 00:00:00 2001 From: famos0 Date: Thu, 30 Mar 2023 18:15:20 +0200 Subject: [PATCH] fix rdcman module --- cme/modules/rdcman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cme/modules/rdcman.py b/cme/modules/rdcman.py index bf053731..88bc7250 100644 --- a/cme/modules/rdcman.py +++ b/cme/modules/rdcman.py @@ -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 != '':