Skip to content

Commit

Permalink
Changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
smashery committed Dec 5, 2024
1 parent b8d54d6 commit 1090b3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_smb/dcerpc/samr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def self.encrypt_hash(hash:, key:)
cipher.key = key2
end

cipher1.update(block1) + cipher2.update(block2)
cipher1.update(block1) + cipher1.final + cipher2.update(block2) + cipher2.final
end
end

Expand Down Expand Up @@ -400,7 +400,7 @@ def self.encrypt_password(password, old_password_nt)
cipher.encrypt
cipher.key = old_password_nt
end
cipher.update(buffer)
cipher.update(buffer) + cipher.final
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PsamprGetMembersBuffer < SamprGetMembersBuffer
extend Ndr::PointerClassPlugin
end

# [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)
class SamrGetMembersInGroupResponse < BinData::Record
attr_reader :opnum

Expand Down

0 comments on commit 1090b3b

Please sign in to comment.