Skip to content

Instantly share code, notes, and snippets.

@edermi
Created June 25, 2024 08:33
Show Gist options
  • Save edermi/e21dc9b446b5235c4049c3fda3a0a583 to your computer and use it in GitHub Desktop.
Save edermi/e21dc9b446b5235c4049c3fda3a0a583 to your computer and use it in GitHub Desktop.
uniq ntlmv2 hashes
with open("collected_hashes_ntlmv2.txt", 'r') as hashfile:
hashes=hashfile.read().splitlines()
hash_dict = {}
for line in hashes:
name, _ = line.split("::")
hash_dict[name] = line
with open("uniq_collected_hashes_ntlmv2.txt", 'w') as hashfile:
for h in hash_dict.values():
hashfile.write(f"{h}\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment