10-12-2020, 10:27 PM
(10-12-2020, 08:43 PM)philsmd Wrote: are you using the correct python version ?
did you try with python 3 ?
in general, if you find some problem with a 3rd party tool like office2john or office2hashcat, you should report the problem there if you are sure it's not an user error.
latest office2john.py version can be found here:
https://raw.githubusercontent.com/openwa...ce2john.py
Just tried with this office2john.py and getting the same error
Code:
C:\temp>python office2john.py "test password.pptx"
Traceback (most recent call last):
File "C:\temp\office2john.py", line 3143, in <module>
ret = process_file(sys.argv[i])
File "C:\temp\office2john.py", line 3067, in process_file
return process_new_office(filename)
File "C:\temp\office2john.py", line 2875, in process_new_office
xml_metadata_parser(data, filename)
File "C:\temp\office2john.py", line 2919, in xml_metadata_parser
for node in tree.getiterator('{http://schemas.microsoft.com/office/2006/keyEncryptor/password}encryptedKey'):
AttributeError: 'ElementTree' object has no attribute 'getiterator'
I noticed the schema URL in the error (http://schemas.microsoft.com/office/2006...r/password), and tried browsing to this but the page does not load - The resource you are looking for has been removed, had its name changed, or is temporarily unavailable - could this be the issue?