diff --git a/run/pdf2john.py b/run/pdf2john.py index daea9dbbb5..b6868da6e6 100755 --- a/run/pdf2john.py +++ b/run/pdf2john.py @@ -133,9 +133,9 @@ def get_passwords_for_JtR(self, encryption_dictionary): # print >> sys.stderr, encryption_dictionary try: pas = pr.findall(encryption_dictionary)[0] - output += self.get_password_from_byte_string(pas)+"*" except IndexError: break + output += self.get_password_from_byte_string(pas)+"*" else: pr = re.compile(let + b'\s*<\w+>') pas = pr.findall(encryption_dictionary)