Class: PacketGen::Plugin::SMB2::ErrorResponse

Inherits:
Header::Base
  • Object
show all
Defined in:
lib/packetgen/plugin/smb2/error.rb

Overview

SMB2 Error response structure 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | StructureSize | ContextCount | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ByteCount | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ErrorData |

  •                                                           +
    

| ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Author:

  • Sylvain Daubert

Instance Attribute Summary collapse

Instance Attribute Details

#byte_count ⇒ Integer

32-bit value indicating the number of bytes contained in #data

Returns:

  • (Integer)


40
# File 'lib/packetgen/plugin/smb2/error.rb', line 40

define_attr :byte_count, BinStruct::Int32le

#data ⇒ String

Variable-length data field.

Returns:

  • (String)


44
# File 'lib/packetgen/plugin/smb2/error.rb', line 44

define_attr :data, BinStruct::String

#structure_size ⇒ Integer

16-bit error response structure. Should be 9.

Returns:

  • (Integer)


27
# File 'lib/packetgen/plugin/smb2/error.rb', line 27

define_attr :structure_size, BinStruct::Int16le, default: 9