office2hashcat error
#1
Hi
I am trying to get the hash from an Office file but am receiving the below error. I have tried this on the target file itself, and multiple test files (pptx or docx with a password set). 

I have tried the same files on some of the online sites to get the hash which use the same script, and it works to generate the hash which I can then crack. 

Any ideas why this is? I also get the same error when trying with office2john.py

Any help is greatly appreciated, thanks!


Code:
C:\temp>office2hashcat.py "test password.pptx"
Traceback (most recent call last):
  File "C:\temp\office2hashcat.py", line 2020, in <module>
    ret = process_file(sys.argv[i])
  File "C:\temp\office2hashcat.py", line 1952, in process_file
    return process_new_office(filename)
  File "C:\temp\office2hashcat.py", line 1806, in process_new_office
    for node in tree.getiterator('{http://schemas.microsoft.com/office/2006/keyEncryptor/password}encryptedKey'):
AttributeError: 'ElementTree' object has no attribute 'getiterator'
Reply


Messages In This Thread
office2hashcat error - by duffman - 10-12-2020, 08:31 PM
RE: office2hashcat error - by philsmd - 10-12-2020, 08:43 PM
RE: office2hashcat error - by duffman - 10-12-2020, 10:27 PM
RE: office2hashcat error - by john - 10-12-2020, 08:44 PM
RE: office2hashcat error - by duffman - 10-12-2020, 09:13 PM
RE: office2hashcat error - by philsmd - 10-12-2020, 11:10 PM