diff --git a/nxc/modules/dpapi_hash.py b/nxc/modules/dpapi_hash.py index 03c89916a..070121f68 100644 --- a/nxc/modules/dpapi_hash.py +++ b/nxc/modules/dpapi_hash.py @@ -52,11 +52,11 @@ def on_admin_login(self, context, connection): masterkeys_triage.triage_masterkeys() if self.outputfile is not None: with open(self.outputfile, "a+") as fd: - for mkhash in [mkhash for masterkey in masterkeys_triage.all_looted_masterkeys for mkhash in masterkey.generate_hash() ]: + for mkhash in [mkhash for masterkey in masterkeys_triage.all_looted_masterkeys for mkhash in masterkey.generate_hash()]: context.log.highlight(mkhash) fd.write(f"{mkhash}\n") else: - for mkhash in [mkhash for masterkey in masterkeys_triage.all_looted_masterkeys for mkhash in masterkey.generate_hash() ]: + for mkhash in [mkhash for masterkey in masterkeys_triage.all_looted_masterkeys for mkhash in masterkey.generate_hash()]: context.log.highlight(mkhash) except Exception as e: