Created
April 1, 2023 17:03
-
-
Save msuksong/59516eceb97f951d0efb1e12ebabbcc8 to your computer and use it in GitHub Desktop.
Simple NTLM hash generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import hashlib | |
import getpass | |
def main(): | |
password = getpass.getpass("Password:") | |
print("NTLM hash: " + hashlib.new('md4', password.encode('utf-16le')).hexdigest()) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example