-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add more password changing structures and calls #279
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of minor comments. Over all this looks good so I'll start the testing with Metasploit.
cipher.key = key2 | ||
end | ||
|
||
cipher1.update(block1) + cipher2.update(block2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the #final
method need to be called?
cipher1.update(block1) + cipher2.update(block2) | |
cipher1.update(block1) + cipher1.final + cipher2.update(block2) + cipher2.final |
cipher.encrypt | ||
cipher.key = old_password_nt | ||
end | ||
cipher.update(buffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cipher.update(buffer) | |
cipher.update(buffer) + cipher.final |
@@ -14,7 +14,7 @@ class PsamprGetMembersBuffer < SamprGetMembersBuffer | |||
extend Ndr::PointerClassPlugin | |||
end | |||
|
|||
# [2.1.5.8.3 SamrGetMembersInGroup (Opnum 25)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/a4adbf20-040f-4416-a960-e5b7917fdae7) | |||
# [3.1.5.8.3 SamrGetMembersInGroup (Opnum 25)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/a4adbf20-040f-4416-a960-e5b7917fdae7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# [3.1.5.8.3 SamrGetMembersInGroup (Opnum 25)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/a4adbf20-040f-4416-a960-e5b7917fdae7) | |
# [3.1.5.8.3 SamrGetMembersInGroup (Opnum 25)](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/3ed5030d-88a3-42ca-a6e0-8c12aa2fdfbd) |
I think the URL here is wrong too.
Thanks @smashery! Do you think it would be possible to add specs for these new DCERPC structures? |
Add structures for changing passwords. This is primarily to support rapid7/metasploit-framework#19666