class RubySMB::SMB1::Packet::SessionSetupRequest
A SMB1
SMB_COM_SESSION_SETUP_ANDX Request Packet
as defined in [2.2.4.6.1](msdn.microsoft.com/en-us/library/cc246328.aspx)
Constants
- COMMAND
Public Instance Methods
Takes an NTLM
Type 1 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 type1_message [String] the serialized Type 1 NTLM
message @return [void]
# File lib/ruby_smb/smb1/packet/session_setup_request.rb, line 42 def set_type1_blob(type1_message) gss_blob = RubySMB::Gss.gss_type1(type1_message) parameter_block.security_blob_length = gss_blob.length data_block.security_blob = gss_blob end
Takes an NTLM
Type 3 Message and creates the GSS Security Blob for it and sets it in the {RubySMB::SMB1::Packet::SessionSetupRequest::DataBlock#security_blob} field. It also automatically sets the length in {RubySMB::SMB1::Packet::SessionSetupRequest::ParameterBlock#security_blob_length}
@param type3_message [String] the serialized Type 3 NTLM
message @return [void]
# File lib/ruby_smb/smb1/packet/session_setup_request.rb, line 55 def set_type3_blob(type3_message) gss_blob = RubySMB::Gss.gss_type3(type3_message) parameter_block.security_blob_length = gss_blob.length data_block.security_blob = gss_blob end