Last active
April 25, 2017 16:27
-
-
Save evilmog/ba03fe8b15f46b0bdd246a57e035c7a3 to your computer and use it in GitHub Desktop.
netntlmv1 prototype
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
import platform | |
import subprocess | |
import os | |
hash_input = raw_input("Please enter hash: ") | |
if not hash_input: | |
hash_input="johndoe::test-domain:1FA1B9C4ED8E570200000000000000000000000000000000:1B91B89CC1A7417DF9CFAC47CCDED2B77D01513435B36DCA:1122334455667788" | |
h_user, h_blank, h_domain, h_hash1, h_hash2, h_challenge = hash_input.split(':') | |
h_split = h_hash2[32:48] | |
h_input1 = h_hash2[0:16] | |
h_input2 = h_hash2[16:32] | |
if platform.system() == 'Windows': | |
print 'This is Windows' | |
if platform.system() == 'Linux': | |
dir_path = os.path.dirname(os.path.realpath(__file__)) | |
h_exec = dir_path + "/ct3_to_ntlm.bin" | |
print h_input1 + ":" + h_challenge | |
print h_input2 + ":" + h_challenge | |
# h_input3 = subprocess.call([h_exec, h_split, h_challenge, h_hash1]) | |
# output = check_output([[h_exec, h_split, h_challenge, h_hash1]) | |
p = subprocess.call([h_exec, h_split, h_challenge, h_hash1]) | |
else: | |
print 'Unable to handle OS' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment