Created
August 12, 2012 08:57
Revisions
-
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ import sys sys.path.append("./python-keepass/python") from keepass import kpdb byte_strings = [hex(x)[2:].rjust(2, '0').lower() for x in range(255)] pass_template = "%s3b140a6ec5%sec" num_tried = 0 for s1 in byte_strings: for s2 in byte_strings: tmp_pw = pass_template % (s1, s2) num_tried += 1 if num_tried % 1000 == 0: print 'Trying %s, attempt # %s' % (tmp_pw, num_tried) try: db = kpdb.Database("/home/ec2-user/3hzd3ob2wBBeMsmkUW1AHZH78TlgL1UMBVBL07mY.kdbx", tmp_pw) print db break except IOError: continue ~