Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libreoffice2john.py: error in encrypted 24.2+ files #5655

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

claudioandre-br
Copy link
Member

Warn that LibreOffice 24.2+ encrypted documents are not supported.

See: #5652.

Comment on lines 53 to 54
for i in range(0, len(elements)):
element = elements[i]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor stylistic comment: for loops in Python are for-each loops. So a bit simpler and more idiomatic without the need for indices would be the following.

Suggested change
for i in range(0, len(elements)):
element = elements[i]
for element in elements:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for helping review this PR @exploide!

Warn that LibreOffice 24.2+ encrypted documents are not supported.

See: openwall#5652.

Signed-off-by: Claudio André <[email protected]>
@solardiz solardiz merged commit 3022b1f into openwall:bleeding-jumbo Feb 1, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants