Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2020 Changes in this version + const BytesPayload + const OemStringPayload + const UnicodeStringPayload + func FlagsToString(flags uint32) string + func GetFlagName(flag NegotiateFlag) string + func StringToUtf16(value string) []byte + func Uint32ToBytes(v uint32) []byte + func Utf16ToString(bytes []byte) string + type Authenticate struct + DomainName *PayloadStruct + EncryptedRandomSessionKey *PayloadStruct + LmChallengeResponse *PayloadStruct + LmV1Response *LmV1Response + LmV2Response *LmV2Response + MessageType uint32 + Mic []byte + NegotiateFlags uint32 + NtChallengeResponseFields *PayloadStruct + NtlmV1Response *NtlmV1Response + NtlmV2Response *NtlmV2Response + Payload []byte + Signature []byte + UserName *PayloadStruct + Version *VersionStruct + Workstation *PayloadStruct + func ParseAuthenticateMessage(body []byte, ntlmVersion int) (*Authenticate, error) + func (a *Authenticate) Bytes() []byte + func (a *Authenticate) ClientChallenge() (response []byte) + func (a *Authenticate) String() string + type AvPair struct + AvId AvPairType + AvLen uint16 + Value []byte + func ReadAvPair(data []byte, offset int) *AvPair + func (a *AvPair) Bytes() (result []byte) + func (a *AvPair) String() string + func (a *AvPair) UnicodeStringValue() string + type AvPairType uint16 + const MsAvRestrictions + const MsvAvDnsComputerName + const MsvAvDnsDomainName + const MsvAvDnsTreeName + const MsvAvEOL + const MsvAvFlags + const MsvAvNbComputerName + const MsvAvNbDomainName + const MsvAvTargetName + const MsvAvTimestamp + const MsvChannelBindings + type AvPairs struct + List []AvPair + func ReadAvPairs(data []byte) *AvPairs + func (p *AvPairs) AddAvPair(avId AvPairType, bytes []byte) + func (p *AvPairs) ByteValue(avType AvPairType) (result []byte) + func (p *AvPairs) Bytes() (result []byte) + func (p *AvPairs) Find(avType AvPairType) (result *AvPair) + func (p *AvPairs) String() string + func (p *AvPairs) StringValue(avType AvPairType) (result string) + type Challenge struct + MessageType uint32 + NegotiateFlags uint32 + Payload []byte + Reserved []byte + ServerChallenge []byte + Signature []byte + TargetInfo *AvPairs + TargetInfoPayloadStruct *PayloadStruct + TargetName *PayloadStruct + Version *VersionStruct + func ParseChallengeMessage(body []byte) (*Challenge, error) + func (c *Challenge) Bytes() []byte + func (c *Challenge) String() string + type LmV1Response struct + Response []byte + func ReadLmV1Response(bytes []byte) *LmV1Response + func (l *LmV1Response) String() string + type LmV2Response struct + ChallengeFromClient []byte + Response []byte + func ReadLmV2Response(bytes []byte) *LmV2Response + func (l *LmV2Response) String() string + type Negotiate struct + Bytes []byte + DomainNameFields *PayloadStruct + MessageType uint32 + NegotiateFlags uint32 + Payload []byte + PayloadOffset int + Signature []byte + Version *VersionStruct + WorkstationFields *PayloadStruct + type NegotiateFlag uint32 + const NTLMSSP_ANONYMOUS + const NTLMSSP_NEGOTIATE_128 + const NTLMSSP_NEGOTIATE_56 + const NTLMSSP_NEGOTIATE_ALWAYS_SIGN + const NTLMSSP_NEGOTIATE_DATAGRAM + const NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY + const NTLMSSP_NEGOTIATE_IDENTIFY + const NTLMSSP_NEGOTIATE_KEY_EXCH + const NTLMSSP_NEGOTIATE_LM_KEY + const NTLMSSP_NEGOTIATE_NTLM + const NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED + const NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED + const NTLMSSP_NEGOTIATE_SEAL + const NTLMSSP_NEGOTIATE_SIGN + const NTLMSSP_NEGOTIATE_TARGET_INFO + const NTLMSSP_NEGOTIATE_UNICODE + const NTLMSSP_NEGOTIATE_VERSION + const NTLMSSP_R1 + const NTLMSSP_R10 + const NTLMSSP_R2 + const NTLMSSP_R3 + const NTLMSSP_R4 + const NTLMSSP_R5 + const NTLMSSP_R6 + const NTLMSSP_R7 + const NTLMSSP_R8 + const NTLMSSP_R9 + const NTLMSSP_REQUEST_NON_NT_SESSION_KEY + const NTLMSSP_REQUEST_TARGET + const NTLMSSP_TARGET_TYPE_DOMAIN + const NTLMSSP_TARGET_TYPE_SERVER + const NTLM_NEGOTIATE_OEM + func (f NegotiateFlag) IsSet(flags uint32) bool + func (f NegotiateFlag) Set(flags uint32) uint32 + func (f NegotiateFlag) String() string + func (f NegotiateFlag) Unset(flags uint32) uint32 + type NtlmV1Response struct + Response []byte + func ReadNtlmV1Response(bytes []byte) (*NtlmV1Response, error) + func (n *NtlmV1Response) String() string + type NtlmV2ClientChallenge struct + AvPairs *AvPairs + ChallengeFromClient []byte + HiRespType byte + Reserved1 uint16 + Reserved2 uint32 + Reserved3 uint32 + RespType byte + TimeStamp []byte + func (n *NtlmV2ClientChallenge) String() string + type NtlmV2Response struct + NtlmV2ClientChallenge *NtlmV2ClientChallenge + Response []byte + func ReadNtlmV2Response(bytes []byte) (*NtlmV2Response, error) + func (n *NtlmV2Response) String() string + type PayloadStruct struct + Len uint16 + MaxLen uint16 + Offset uint32 + Payload []byte + Type int + func CreateBytePayload(bytes []byte) (*PayloadStruct, error) + func CreateStringPayload(value string) (*PayloadStruct, error) + func ReadBytePayload(startByte int, bytes []byte) (*PayloadStruct, error) + func ReadPayloadStruct(startByte int, bytes []byte, PayloadType int) (*PayloadStruct, error) + func ReadStringPayload(startByte int, bytes []byte) (*PayloadStruct, error) + func (p *PayloadStruct) Bytes() []byte + func (p *PayloadStruct) String() string + type VersionStruct struct + NTLMRevisionCurrent uint8 + ProductBuild uint16 + ProductMajorVersion uint8 + ProductMinorVersion uint8 + Reserved []byte + func ReadVersionStruct(structSource []byte) (*VersionStruct, error) + func (v *VersionStruct) Bytes() []byte + func (v *VersionStruct) String() string