Class: RubySMB::SMB2::Packet::SessionSetupRequest
- Inherits:
-
GenericPacket
- Object
- BinData::Record
- GenericPacket
- RubySMB::SMB2::Packet::SessionSetupRequest
- Defined in:
- lib/ruby_smb/smb2/packet/session_setup_request.rb
Overview
An SMB2 SessionSetupRequest Packet as defined in 2.2.5 SMB2 SESSION_SETUP Request
Constant Summary collapse
- COMMAND =
RubySMB::SMB2::Commands::SESSION_SETUP
Instance Method Summary collapse
-
#set_type1_blob(type1_message) ⇒ void
Takes a serialized NTLM Type 1 message and wraps it in the GSS ASN1 encoding and inserts it into the #buffer as well as updating the #security_buffer_length.
-
#set_type3_blob(type3_message) ⇒ void
Takes a serialized NTLM Type 3 message and wraps it in the GSS ASN1 encoding and inserts it into the #buffer as well as updating the #security_buffer_length.
Methods inherited from GenericPacket
describe, #display, fields_hashed, format_field, #initialize_instance, #packet_smb_version, read, #status_code, #valid?, walk_fields
Instance Method Details
#set_type1_blob(type1_message) ⇒ void
This method returns an undefined value.
Takes a serialized NTLM Type 1 message and wraps it in the GSS ASN1 encoding and inserts it into the #buffer as well as updating the #security_buffer_length
27 28 29 30 31 |
# File 'lib/ruby_smb/smb2/packet/session_setup_request.rb', line 27 def set_type1_blob() gss_blob = RubySMB::Gss.gss_type1() self.security_buffer_length = gss_blob.length self.buffer = gss_blob end |
#set_type3_blob(type3_message) ⇒ void
This method returns an undefined value.
Takes a serialized NTLM Type 3 message and wraps it in the GSS ASN1 encoding and inserts it into the #buffer as well as updating the #security_buffer_length
39 40 41 42 43 |
# File 'lib/ruby_smb/smb2/packet/session_setup_request.rb', line 39 def set_type3_blob() gss_blob = RubySMB::Gss.gss_type3() self.security_buffer_length = gss_blob.length self.buffer = gss_blob end |