[GH-ISSUE #2381] office2john.py can't extract password hash for Excel 2003 #1589

Closed
opened 2026-10-15 04:20:53 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @amaist on GitHub (Jan 17, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2381

I am trying to extract a password hash from Excel 2003 files. office2john.py does not create any output and simply exits with normal status.
For other office files it works fine.

Excel 2013
$ ./office2john.py Workbook2.xlsx
Workbook2.xlsx:$office$2013100000256162bcd020dd1432ad22bcd020dd1432ad2795b382cc22e2ffcb1c7cd40738157074a1172556ade3d90a7730d93cab050774c03b1382619370e86d4460a3e9d2b4e
Word 2003
$ ./office2john.py testing.doc
testing.doc:$oldoffice$1
2bcd020dd1432ad22bcd020dd1432ad2ff12403e5af76ded7a60b8dddd14cb5635b6b49a82319b027ba3e2d60cb8c38a:::10000 1 1 7 983040 10000 XXX User Normal.dotm XXX User 2 120 13129138020 13129138140 1 1 7 Microsoft Macintosh Word 1::testing.doc
$ ./office2john.py Workbook2.xls
just exits back to the prompt.
I have tried it on Mac OS X Sierra, Windows 7, Freebsd 10.3 with the same result. Mac and FreeBSD with Python 2.7 and Windows with Python 3.3.

I have seen other reports of this issue in various security forums (Hashcat in particular).
Very easy to recreate the issue by saving a password encrypted Excel file with modern Excel (2015 or later versions on both Mac and Windows).

Thanks,

Andrei

Originally created by @amaist on GitHub (Jan 17, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2381 I am trying to extract a password hash from Excel 2003 files. office2john.py does not create any output and simply exits with normal status. For other office files it works fine. Excel 2013 $ ./office2john.py Workbook2.xlsx Workbook2.xlsx:$office$*2013*100000*256*16*2bcd020dd1432ad22bcd020dd1432ad2*795b382cc22e2ffcb1c7cd4073815707*4a1172556ade3d90a7730d93cab050774c03b1382619370e86d4460a3e9d2b4e Word 2003 $ ./office2john.py testing.doc testing.doc:$oldoffice$1*2bcd020dd1432ad22bcd020dd1432ad2*ff12403e5af76ded7a60b8dddd14cb56*35b6b49a82319b027ba3e2d60cb8c38a:::10000 1 1 7 983040 10000 XXX User Normal.dotm XXX User 2 120 13129138020 13129138140 1 1 7 Microsoft Macintosh Word 1::testing.doc $ ./office2john.py Workbook2.xls just exits back to the prompt. I have tried it on Mac OS X Sierra, Windows 7, Freebsd 10.3 with the same result. Mac and FreeBSD with Python 2.7 and Windows with Python 3.3. I have seen other reports of this issue in various security forums (Hashcat in particular). Very easy to recreate the issue by saving a password encrypted Excel file with modern Excel (2015 or later versions on both Mac and Windows). Thanks, Andrei
bsakaguchi 2026-10-15 04:20:53 +07:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@magnumripper commented on GitHub (Jan 17, 2017):

Are you using latest office2john.py from GitHub? It was last updated November 7, 2016.

<!-- gh-comment-id:273283941 --> @magnumripper commented on GitHub (Jan 17, 2017): Are you using latest office2john.py from GitHub? It was last updated November 7, 2016.
Author
Owner

@amaist commented on GitHub (Jan 17, 2017):

I apologize. I did not use the latest version and didn't properly check. I assumed I did.

The latest version works. I will close the issue now.
Sorry to waste your time.

<!-- gh-comment-id:273288320 --> @amaist commented on GitHub (Jan 17, 2017): I apologize. I did not use the latest version and didn't properly check. I assumed I did. The latest version works. I will close the issue now. Sorry to waste your time.
Author
Owner

@magnumripper commented on GitHub (Jan 17, 2017):

NP, I'm delighted to hear it's working!

<!-- gh-comment-id:273291938 --> @magnumripper commented on GitHub (Jan 17, 2017): NP, I'm delighted to hear it's working!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1589
No description provided.