Excel hash extraction (97-2003)
#1
Is there a utility that can extract a hash from an Excel document (97-2003)?

I have tried office2hashcat.py and office2john with no success.

The file extension is .xls and Windows says it is a 97-2003 file.
Reply
#2
If office2john didn't work, are you positive it's encrypted and not just password-protected? Hashcat only works against encrypted Office docs, not password-protected docs.
Reply
#3
(08-11-2016, 06:51 AM)epixoip Wrote: If office2john didn't work, are you positive it's encrypted and not just password-protected? Hashcat only works against encrypted Office docs, not password-protected docs.

AOPR (from Elcomsoft) tells me the following:
This file is encrypted by a Cryptographic Service Provider (CSP).
Reply
#4
I am having the exact same problem - office2john or office2hashcat returns nothing. However I am able to crack is using Passware Kit. It's not a modify key, it's a open key (so the document is encrypted).

Passware states it's:
Open Password, CSP Encryption (Microsoft Enhanced Cryptographic Provider v1.0, 128bits)
Reply
#5
i had the very same problem.

After some digging around i changed line 1620 of office2john.py from
elif data[0:4] == '\x01\x00\x02\x00' or data[0:4] == '\x01\x00\x03\x00':
into
elif data[0:4] == '\x01\x00\x02\x00' or data[0:4] == '\x01\x00\x03\x00' or data[0:4] == '\x01\x00\x04\x00':
and everything went smooth.

Perhaps that helps!
Reply
#6
(11-07-2016, 04:05 PM)mkcon Wrote: After some digging around i changed line 1620 of office2john.py from
elif data[0:4] == '\x01\x00\x02\x00' or data[0:4] == '\x01\x00\x03\x00':
into
elif data[0:4] == '\x01\x00\x02\x00' or data[0:4] == '\x01\x00\x03\x00' or data[0:4] == '\x01\x00\x04\x00':
and everything went smooth.

I now committed that change to office2john on Github. @curlyboi @devilsadvocate please report if this worked for you also.
Reply
#7
Works for my file.
Reply