This tool extracts NTLM or SHA1 hashes from a given input file and saves them into individual files named by the sanitized username. It is designed to process output from tools like Mimikatz.
- Extract NTLM or SHA1 hashes.
- Save hashes in a specified directory.
- Automatically sanitize usernames to create valid filenames.
- Python 3.x
Run the script using the following command:
python lsass-hash-extractor.py -i <input_file> [-d <output_directory>] [--hash <hash_type>]-i,--input: (Required) Path to the input file containing the hashes.-d,--directory: (Optional) Directory to save the extracted hashes. Defaults to./hashes.--hash: (Optional) Type of hash to extract. Options areNTLMorSHA1. Defaults toNTLM.
Extract NTLM hashes from lsass-dmp.txt and save them in the default directory:
python lsass-hash-extractor.py -i lsass-dmp.txtExtract SHA1 hashes and save them in a custom directory:
python lsass-hash-extractor.py -i lsass-dmp.txt -d ./custom_hashes --hash SHA1This tool is provided as-is for educational and testing purposes.