Skip to content

Conversation

@holly-o
Copy link
Contributor

@holly-o holly-o commented Jan 8, 2026

Added support for when encryption context is compressed. Also, broader regex for greater matching.

Copy link
Member

@solardiz solardiz left a comment

Choose a reason for hiding this comment

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

I don't know if this is right or not, but you're the maintainer of this script. :-)

I just wish you'd use our commit message style, so prefix the title with subsystem (script) name, and wrap further lines at 75. But I don't insist.

run/fvde2john.py Outdated
Comment on lines 316 to 350
CryptoUsers_dict = {}
for user_index in range(len(matches)):
CryptoUsers_dict[user_index] = matches[user_index]
# if present convert user type from string to hex
user_type = CryptoUsers_dict[user_index].get('UserType')
if user_type:
CryptoUsers_dict[user_index]['UserType'] = int(CryptoUsers_dict[user_index]['UserType'], 16)
if matches:
CryptoUsers_dict = {}
for user_index in range(len(matches)):
CryptoUsers_dict[user_index] = matches[user_index]
# if present convert user type from string to hex
user_type = CryptoUsers_dict[user_index].get('UserType')
if user_type:
CryptoUsers_dict[user_index]['UserType'] = int(CryptoUsers_dict[user_index]['UserType'], 16)

return CryptoUsers_dict
return CryptoUsers_dict
Copy link
Member

Choose a reason for hiding this comment

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

The return line is moved into the loop here, perhaps accidentally? Doesn't look right to me.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, good catch. Maybe it was meant to be moved under if matches, but not into the loop, @holly-o?

Copy link
Member

Choose a reason for hiding this comment

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

@holly-o We're waiting for you to comment on this and perhaps revise the code. Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the comment, yes I will amend the code so the return is outside of the loop.

Added support for when encryption context is compressed. Also, broader regex for greater matching.
@holly-o holly-o force-pushed the Update-fvde2john.py-compression-and-regex branch from 9ea7518 to 61af481 Compare January 13, 2026 10:57
@solardiz solardiz merged commit a1e0049 into openwall:bleeding-jumbo Jan 13, 2026
33 of 34 checks passed
@solardiz
Copy link
Member

Thank you @holly-o and @magnumripper! Since the only issue pointed out by magnum has been fixed, I went ahead and merged this.

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