Skip to content

Commit

Permalink
Merge pull request #545 from Pennyw0rth/ruff2
Browse files Browse the repository at this point in the history
fix ruff
  • Loading branch information
NeffIsBack authored Jan 18, 2025
2 parents 7bb5813 + 8d9b7ee commit ed89236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nxc/modules/dpapi_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed89236

Please sign in to comment.