[Python] Split LM hashes
#1
A simple script to split a list of 32-chars hashes into 16-chars for LM cracking in oclhashcat.

Code:
import sys
from sys import argv

if len(argv) == 2:
    filename = argv[1] + "_lm.txt"
    file_lm = open(filename, "w+")
    for lin in open(argv[1]):
        line = lin.strip()
        if(len(line)==32):
            file_lm.write(line[:16] + "\n" + line[16:] + "\n")

    file_lm.close()
    print('[+] LM hashes successfully written to '+filename+'.')

else:
    print('Usage: ', argv[0],' hashfile_to_split.txt')
    sys.exit(1)

Improve it if needed thanks !
Reply


Messages In This Thread
[Python] Split LM hashes - by Mem5 - 09-24-2012, 09:45 PM
RE: [Python] Split LM hashes - by epixoip - 09-25-2012, 05:35 AM
RE: [Python] Split LM hashes - by james123 - 09-25-2012, 10:38 AM
RE: [Python] Split LM hashes - by epixoip - 09-25-2012, 12:06 PM
RE: [Python] Split LM hashes - by Mem5 - 09-25-2012, 07:28 PM
RE: [Python] Split LM hashes - by KT819GM - 09-25-2012, 07:46 PM