Class: PacketGen::Plugin::SMB2::Negotiate::PreauthIntegrityCap

Inherits:
Context
  • Object
show all
Defined in:
lib/packetgen/plugin/smb2/negotiate/context.rb

Overview

Specialized Context for PREAUTH_INTEGRITY_CAP type.

Constant Summary

Constants inherited from Context

Context::TYPES

Instance Attribute Summary collapse

Attributes inherited from Context

#data, #data_length, #pad, #reserved, #type

Method Summary

Methods inherited from Context

#calc_length, #human_type, #to_human

Instance Attribute Details

#hash_algPacketGen::Types::ArrayOfInt16le

Array of 16-bit integer IDs specifying the supported preauthentication hash algorithms

Returns:

  • (PacketGen::Types::ArrayOfInt16le)


90
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 90

define_field_before :pad, :hash_alg, PacketGen::Types::ArrayOfInt16le, builder: ->(h, t) { t.new(counter: h[:hash_alg_count]) }

#hash_alg_countInteger

16-bit number of hash algorithm in #hash_alg

Returns:

  • (Integer)


81
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 81

define_field_before :pad, :hash_alg_count, PacketGen::Types::Int16le

#saltString

Salt value for hash

Returns:

  • (String)


94
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 94

define_field_before :pad, :salt, PacketGen::Types::String, builder: ->(h, t) { t.new(length_from: h[:salt_length]) }

#salt_lengthInteger

16-bit length of #salt field, in bytes.

Returns:

  • (Integer)


85
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 85

define_field_before :pad, :salt_length, PacketGen::Types::Int16le