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

Fix two fields in UserProperties #280

Merged

Conversation

zeroSteiner
Copy link
Contributor

This fixes the definition of the PropertyCount and UserProperties fields that can be omitted. Based on the docs.

When there are zero USER_PROPERTY elements in the UserProperties field, this field MUST be omitted; the resultant USER_PROPERTIES structure has a constant size of 0x6F bytes.

This allows the structure to be read correctly even when there are not user properties. Allowing the structure to be read fixes the IOError that's raised when there are no kerberos keys as identified in rapid7/metasploit-framework#19665.

@smashery smashery self-assigned this Nov 22, 2024
@smashery smashery merged commit 8665aa5 into rapid7:master Nov 22, 2024
9 checks passed
@smashery
Copy link
Contributor

Tested and all works well! Much better solution - thanks!

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.

2 participants