Class: PacketGen::Plugin::SMB2::Negotiate::PreauthIntegrityCap
- Inherits:
-
Context
- Object
- Types::Fields
- Context
- PacketGen::Plugin::SMB2::Negotiate::PreauthIntegrityCap
- Defined in:
- lib/packetgen/plugin/smb2/negotiate/context.rb
Overview
Specialized Context for PREAUTH_INTEGRITY_CAP type.
Constant Summary
Constants inherited from Context
Instance Attribute Summary collapse
-
#hash_alg ⇒ PacketGen::Types::ArrayOfInt16le
Array of 16-bit integer IDs specifying the supported preauthentication hash algorithms.
-
#hash_alg_count ⇒ Integer
16-bit number of hash algorithm in #hash_alg.
-
#salt ⇒ String
Salt value for hash.
-
#salt_length ⇒ Integer
16-bit length of #salt field, in bytes.
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_alg ⇒ PacketGen::Types::ArrayOfInt16le
Array of 16-bit integer IDs specifying the supported preauthentication hash algorithms
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_count ⇒ Integer
16-bit number of hash algorithm in #hash_alg
81 |
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 81 define_field_before :pad, :hash_alg_count, PacketGen::Types::Int16le |
#salt ⇒ String
Salt value for hash
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]) } |