-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add GetKeySecurity and SetKeySecurity MS-RRP structures (DCERPC)
- Loading branch information
1 parent
3e954a2
commit f10e7e8
Showing
11 changed files
with
241 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module RubySMB | ||
module Dcerpc | ||
module Winreg | ||
|
||
# This class represents a GetKeySecurity Request Packet as defined in | ||
# [3.1.5.13 BaseRegGetKeySecurity (Opnum 12)](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/b0e1868c-f4fd-4b43-959f-c0f0cac3ee26) | ||
class GetKeySecurityRequest < BinData::Record | ||
attr_reader :opnum | ||
|
||
endian :little | ||
|
||
rpc_hkey :hkey | ||
uint32 :security_information | ||
rpc_security_descriptor :prpc_security_descriptor_in | ||
|
||
def initialize_instance | ||
super | ||
@opnum = REG_GET_KEY_SECURITY | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module RubySMB | ||
module Dcerpc | ||
module Winreg | ||
|
||
# This class represents a GetKeySecurity Response Packet as defined in | ||
# [3.1.5.13 BaseRegGetKeySecurity (Opnum 12)](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/b0e1868c-f4fd-4b43-959f-c0f0cac3ee26) | ||
class GetKeySecurityResponse < BinData::Record | ||
attr_reader :opnum | ||
|
||
endian :little | ||
|
||
rpc_security_descriptor :prpc_security_descriptor_out | ||
ndr_uint32 :error_status | ||
|
||
def initialize_instance | ||
super | ||
@opnum = REG_GET_KEY_SECURITY | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module RubySMB | ||
module Dcerpc | ||
module Winreg | ||
|
||
# This class represents a SetKeySecurity Request Packet as defined in | ||
# [3.1.5.21 BaseRegSetKeySecurity (Opnum 21)](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/da18856c-8a6d-4217-8e93-3625865e562c) | ||
class SetKeySecurityRequest < BinData::Record | ||
attr_reader :opnum | ||
|
||
endian :little | ||
|
||
rpc_hkey :hkey | ||
uint32 :security_information | ||
rpc_security_descriptor :prpc_security_descriptor | ||
|
||
def initialize_instance | ||
super | ||
@opnum = REG_SET_KEY_SECURITY | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module RubySMB | ||
module Dcerpc | ||
module Winreg | ||
|
||
# This class represents a SetKeySecurity Response Packet as defined in | ||
# [3.1.5.21 BaseRegSetKeySecurity (Opnum 21)](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/da18856c-8a6d-4217-8e93-3625865e562c) | ||
class SetKeySecurityResponse < BinData::Record | ||
attr_reader :opnum | ||
|
||
endian :little | ||
|
||
ndr_uint32 :error_status | ||
|
||
def initialize_instance | ||
super | ||
@opnum = REG_SET_KEY_SECURITY | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters