Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 614 Bytes
#!/usr/bin/env python
""" processes CRACF.TXT files (generated by CRACF program)
into a format suitable for use with JtR."""
import sys
def process_file(filename):
with open(filename, "r") as f:
for line in f.readlines():
data = line.split()
sys.stdout.write("%s:$racf$*%s*%s*%s\n" % \
(data[0], data[0], data[-1], data[-2]))
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.stderr.write("Usage: %s <CRACF.TXT>\n" % sys.argv[0])
for i in range(1, len(sys.argv)):
Jump to Line
Something went wrong with that request. Please try again.