Versions in this module Expand all Collapse all v1 v1.0.1 Dec 7, 2021 Changes in this version + const MsvAvDnsComputerName + const MsvAvDnsDomainName + const MsvAvDnsTreeName + const MsvAvEOL + const MsvAvFlags + const MsvAvNbComputerName + const MsvAvNbDomainName + const MsvAvSingleHost + const MsvAvTargetName + const MsvAvTimestamp + const MsvChannelBindings + 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_REQUEST_NON_NT_SESSION_KEY + const NTLMSSP_REQUEST_TARGET + const NTLMSSP_REVISION_W2K3 + const NTLMSSP_TARGET_TYPE_DOMAIN + const NTLMSSP_TARGET_TYPE_SERVER + const NTLM_NEGOTIATE_OEM + const WINDOWS_MAJOR_VERSION_5 + const WINDOWS_MAJOR_VERSION_6 + const WINDOWS_MINOR_VERSION_0 + const WINDOWS_MINOR_VERSION_1 + const WINDOWS_MINOR_VERSION_2 + const WINDOWS_MINOR_VERSION_3 + func EncodeDERTCredentials(domain, username, password []byte) []byte + func EncodeDERTRequest(msgs []Message, authInfo []byte, pubKeyAuth []byte) []byte + func HMAC_MD5(key, data []byte) []byte + func LMOWFv2(password, user, domain string) []byte + func MD4(data []byte) []byte + func MD5(data []byte) []byte + func MIC(exportedSessionKey []byte, ...) []byte + func NTOWFv2(password, user, domain string) []byte + func RC4K(key, src []byte) []byte + type AVPair struct + Id uint16 + Len uint16 + Value []byte + type AuthenticateMessage struct + DomainNameBufferOffset uint32 + DomainNameLen uint16 + DomainNameMaxLen uint16 + EncryptedRandomSessionBufferOffset uint32 + EncryptedRandomSessionLen uint16 + EncryptedRandomSessionMaxLen uint16 + LmChallengeResponseBufferOffset uint32 + LmChallengeResponseLen uint16 + LmChallengeResponseMaxLen uint16 + MIC [16]byte + MessageType uint32 + NegotiateFlags uint32 + NtChallengeResponseBufferOffset uint32 + NtChallengeResponseLen uint16 + NtChallengeResponseMaxLen uint16 + Payload []byte + Signature [8]byte + UserNameBufferOffset uint32 + UserNameLen uint16 + UserNameMaxLen uint16 + Version NVersion + WorkstationBufferOffset uint32 + WorkstationLen uint16 + WorkstationMaxLen uint16 + func NewAuthenticateMessage(negFlag uint32, domain, user, workstation []byte, ...) *AuthenticateMessage + func (m *AuthenticateMessage) BaseLen() uint32 + func (m *AuthenticateMessage) Serialize() []byte + type ChallengeMessage struct + MessageType uint32 + NegotiateFlags uint32 + Payload []byte + Reserved [8]byte + ServerChallenge [8]byte + Signature []byte + TargetInfoBufferOffset uint32 + TargetInfoLen uint16 + TargetInfoMaxLen uint16 + TargetNameBufferOffset uint32 + TargetNameLen uint16 + TargetNameMaxLen uint16 + Version NVersion + func NewChallengeMessage() *ChallengeMessage + func (m *ChallengeMessage) BaseLen() uint32 + func (m *ChallengeMessage) Serialize() []byte + type Message interface + Serialize func() []byte + type NTLMv2 struct + func NewNTLMv2(domain, user, password string) *NTLMv2 + func (n *NTLMv2) ComputeResponseV2(...) (ntChallResp, lmChallResp, SessBaseKey []byte) + func (n *NTLMv2) GetAuthenticateMessage(s []byte) (*AuthenticateMessage, *NTLMv2Security) + func (n *NTLMv2) GetEncodedCredentials() ([]byte, []byte, []byte) + func (n *NTLMv2) GetNegotiateMessage() *NegotiateMessage + type NTLMv2Security struct + DecryptRC4 *rc4.Cipher + EncryptRC4 *rc4.Cipher + SeqNum uint32 + SigningKey []byte + VerifyKey []byte + func (n *NTLMv2Security) GssDecrypt(s []byte) []byte + func (n *NTLMv2Security) GssEncrypt(s []byte) []byte + type NVersion struct + NTLMRevisionCurrent uint8 + ProductBuild uint16 + ProductMajorVersion uint8 + ProductMinorVersion uint8 + Reserved [3]byte + func NewNVersion() NVersion + type NegoToken struct + Data []byte + type NegotiateMessage struct + DomainNameBufferOffset uint32 + DomainNameLen uint16 + DomainNameMaxLen uint16 + MessageType uint32 + NegotiateFlags uint32 + Payload [32]byte + Signature [8]byte + Version NVersion + WorkstationBufferOffset uint32 + WorkstationLen uint16 + WorkstationMaxLen uint16 + func NewNegotiateMessage() *NegotiateMessage + func (m *NegotiateMessage) Serialize() []byte + type TSCredentials struct + CredType int + Credentials []byte + func DecodeDERTCredentials(s []byte) (*TSCredentials, error) + type TSCspDataDetail struct + CardName string + ContainerName string + CspName string + KeySpec int + ReaderName string + type TSPasswordCreds struct + DomainName []byte + Password []byte + UserName []byte + type TSRequest struct + AuthInfo []byte + NegoTokens []NegoToken + PubKeyAuth []byte + Version int + func DecodeDERTRequest(s []byte) (*TSRequest, error) + type TSSmartCardCreds struct + CspData []TSCspDataDetail + DomainHint string + Pin string + UserHint string