Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (21 sloc) 0.685 kB
#!/usr/bin/env python
"""strip2john.py processes STRIP files into a format suitable
for use with JtR.
Output Format:filename:$strip$*data """
import sys
import binascii
def process_file(filename):
try:
f = open(filename)
except (IOError):
e = sys.exc_info()[1]
sys.stderr.write("%s : %s\n" % (filename, str(e)))
return 2
data = f.read(1024)
sys.stderr.write("%s:$strip$*%s\n" % (filename, binascii.hexlify(data)))
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.stderr.write("Usage: %s <STRIP files>\n" % sys.argv[0])
sys.exit(-1)
for i in range(1, len(sys.argv)):
process_file(sys.argv[i])
Jump to Line
Something went wrong with that request. Please try again.