Created
April 28, 2016 10:36
-
-
Save ihciah/86860d2d7d3cfb04b0b95d3ffbb86b68 to your computer and use it in GitHub Desktop.
John the Ripper to Hashcat Convertor
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/python | |
import re | |
pat=re.compile(r'NETNTLM:\s{1}(.*?):\$NETNTLM\$(.*?)\$(.*?)$', re.M) | |
with open('/home/ihciah/hostapd-2.2/hostapd/hostapd-wpe.log') as fo: | |
lines=fo.read() | |
user_list={x[0]:x for x in pat.findall(lines)} | |
with open('mschap.hash','w') as f: | |
f.write('\n'.join(map(lambda x:x[0]+"::::"+x[2]+":"+x[1],user_list.values()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment