Skip to content

JaroMarko/LSASS-Hash-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

LSASS Hash Extractor

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.

Features

  • Extract NTLM or SHA1 hashes.
  • Save hashes in a specified directory.
  • Automatically sanitize usernames to create valid filenames.

Requirements

  • Python 3.x

Usage

Run the script using the following command:

python lsass-hash-extractor.py -i <input_file> [-d <output_directory>] [--hash <hash_type>]

Arguments

  • -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 are NTLM or SHA1. Defaults to NTLM.

Example

Extract NTLM hashes from lsass-dmp.txt and save them in the default directory:

python lsass-hash-extractor.py -i lsass-dmp.txt

Extract SHA1 hashes and save them in a custom directory:

python lsass-hash-extractor.py -i lsass-dmp.txt -d ./custom_hashes --hash SHA1

License

This tool is provided as-is for educational and testing purposes.

About

A Python tool to extract NTLM or SHA1 hashes from Mimikatz output, save them in sanitized files, and organize them into a specified directory.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages