class RubySMB::SMB2::Packet::SessionSetupResponse

An SMB2 SessionSetupResponse Packet as defined in [2.2.6 SMB2 SESSION_SETUP Response](msdn.microsoft.com/en-us/library/cc246564.aspx)

Constants

COMMAND

Public Instance Methods

initialize_instance() click to toggle source
# File lib/ruby_smb/smb2/packet/session_setup_response.rb, line 17
def initialize_instance
  super
  smb2_header.flags.reply = 1
end
set_type2_blob(type1_message) click to toggle source

Takes a serialized NTLM Type 2 message and wraps it in the GSS ASN1 encoding and inserts it into the {RubySMB::SMB2::Packet::SessionSetupRequest#buffer} as well as updating the {RubySMB::SMB2::Packet::SessionSetupRequest#security_buffer_length}

@param type1_message [String] the serialized NTLM Type 1 message @return [void]

# File lib/ruby_smb/smb2/packet/session_setup_response.rb, line 28
def set_type2_blob(type1_message)
  gss_blob = RubySMB::Gss.gss_type2(type1_message)
  self.security_buffer_length = gss_blob.length
  self.buffer = gss_blob
end