class RubySMB::SMB1::Packet::SessionSetupResponse
A SMB1
SMB_COM_SESSION_SETUP_ANDX Response Packet
as defined in [2.2.4.6.2](msdn.microsoft.com/en-us/library/cc246329.aspx)
Constants
- COMMAND
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
RubySMB::GenericPacket#initialize_instance
# File lib/ruby_smb/smb1/packet/session_setup_response.rb, line 27 def initialize_instance super smb_header.flags.reply = 1 end
set_type2_blob(type2_message)
click to toggle source
Takes an NTLM
Type 2 Message and creates the GSS Security Blob for it and sets it in the {RubySMB::SMB1::Packet::SessionSetupRequest::DataBlock#security_blob} field. It also automaticaly sets the length in {RubySMB::SMB1::Packet::SessionSetupRequest::ParameterBlock#security_blob_length}
@param type2_message [String] the serialized Type 2 NTLM
message @return [void]
# File lib/ruby_smb/smb1/packet/session_setup_response.rb, line 39 def set_type2_blob(type2_message) gss_blob = RubySMB::Gss.gss_type2(type2_message) data_block.security_blob = gss_blob parameter_block.security_blob_length = gss_blob.length end