Class: PacketGen::Plugin::SMB::Negotiate::Request

Inherits:
Header::Base
  • Object
show all
Defined in:
lib/packetgen/plugin/smb/negotiate/request.rb

Overview

SMB Negotiation Request header.

See also Blocks, as Request is a specialization of Blocks#words and Blocks#bytes.

Author:

  • Sylvain Daubert

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#byte_countInteger

Returns:

  • (Integer)


24
# File 'lib/packetgen/plugin/smb/negotiate/request.rb', line 24

define_field :byte_count, PacketGen::Types::Int16le

#dialectsArrayOfDialect

Returns:



27
# File 'lib/packetgen/plugin/smb/negotiate/request.rb', line 27

define_field :dialects, ArrayOfDialect

#word_countInteger

The size, in 2-byte words, of the SMB command parameters. It should be 0 setup_count+.

Returns:

  • (Integer)


21
# File 'lib/packetgen/plugin/smb/negotiate/request.rb', line 21

define_field :word_count, PacketGen::Types::Int8, default: 0

Class Method Details

.protocol_nameObject



29
30
31
# File 'lib/packetgen/plugin/smb/negotiate/request.rb', line 29

def self.protocol_name
  'SMB::Negotiate::Request'
end