class NTLM::Challenge

Overview

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786

Defined in:

messages/challenge.cr

Constant Summary

ENDIAN = ["little"]

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786

KLASS_NAME = [NTLM::Challenge]

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786

PARTS = [{type: "string", name: protocol, cls: String, onlyif: nil, verify: nil, length: nil, value: -> do "NTLMSSP" end, encoding: nil}, {type: "enum", name: message_type, cls: UInt32, onlyif: nil, verify: nil, value: nil, encoding: Type}, {type: "group", name: domain_loc, cls: DomainLoc, onlyif: nil, verify: nil, value: nil}, {type: "enum", name: flags_low, cls: UInt16, onlyif: nil, verify: nil, value: nil, encoding: FlagsLow}, {type: "enum", name: flags_high, cls: UInt16, onlyif: nil, verify: nil, value: nil, encoding: FlagsHigh}, {type: "bytes", name: challenge, cls: Bytes, onlyif: nil, verify: nil, length: -> do 8 end, value: nil}, {type: "basic", name: context, cls: UInt64, onlyif: -> do has_context? end, verify: nil, value: nil}, {type: "group", name: domain_info_loc, cls: DomainInfoLoc, onlyif: -> do flags_high.negotiate_domain_info? end, verify: nil, value: nil}, {type: "group", name: version, cls: Version, onlyif: -> do flags_high.negotiate_version? end, verify: nil, value: nil}] of Nil

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786

REMAINING = [{type: "bytes", name: buffer, onlyif: nil, verify: nil}] of Nil

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786

Class Method Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

Server responds to the negotiation request with a challenge https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/801a4681-8809-4be9-ab0d-61dcfe762786


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def buffer : Bytes #

def buffer=(buffer : Bytes) #

def buffer_start #

[View source]
def challenge : Bytes #

64bit challenge


def challenge=(challenge : Bytes) #

64bit challenge


def context : UInt64 #

def context=(context : UInt64) #

def domain : String #

[View source]
def domain=(value : String) #

[View source]
def domain_info : Array(AVPair) #

[View source]
def domain_info_loc : NTLM::Challenge::DomainInfoLoc #

def domain_info_loc=(domain_info_loc : NTLM::Challenge::DomainInfoLoc) #

def domain_loc : NTLM::Challenge::DomainLoc #

def domain_loc=(domain_loc : NTLM::Challenge::DomainLoc) #

def flags_high : FlagsHigh #

def flags_high=(flags_high : FlagsHigh) #

def flags_low : FlagsLow #

def flags_low=(flags_low : FlagsLow) #

def has_context? #

[View source]
def message_type : Type #

def message_type=(message_type : Type) #

def protocol : String #

def protocol=(protocol : String) #

def update_buffer #

[View source]
def version : NTLM::Challenge::Version #

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b1a6ceb2-f8ad-462b-b5af-f18527c48175


def version=(version : NTLM::Challenge::Version) #

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b1a6ceb2-f8ad-462b-b5af-f18527c48175