class RubySMB::Dcerpc::Netlogon::NetrServerReqChallengeRequest
[3.5.4.4.1 NetrServerReqChallenge (Opnum 4)](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nrpc/5ad9db9f-7441-4ce5-8c7b-7b771e243d32)
Attributes
opnum[R]
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
# File lib/ruby_smb/dcerpc/netlogon/netr_server_req_challenge_request.rb, line 18 def initialize_instance super @opnum = NETR_SERVER_REQ_CHALLENGE end
pad_length(prev_element)
click to toggle source
Determines the correct length for the padding, so that the next field is 4-byte aligned.
# File lib/ruby_smb/dcerpc/netlogon/netr_server_req_challenge_request.rb, line 25 def pad_length(prev_element) offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4 (4 - offset) % 4 end