nla

package
v0.0.0-...-985a324 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NTLMSSP_NEGOTIATE_56                       = 0x80000000
	NTLMSSP_NEGOTIATE_KEY_EXCH                 = 0x40000000
	NTLMSSP_NEGOTIATE_128                      = 0x20000000
	NTLMSSP_NEGOTIATE_VERSION                  = 0x02000000
	NTLMSSP_NEGOTIATE_TARGET_INFO              = 0x00800000
	NTLMSSP_REQUEST_NON_NT_SESSION_KEY         = 0x00400000
	NTLMSSP_NEGOTIATE_IDENTIFY                 = 0x00100000
	NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY = 0x00080000
	NTLMSSP_TARGET_TYPE_SERVER                 = 0x00020000
	NTLMSSP_TARGET_TYPE_DOMAIN                 = 0x00010000
	NTLMSSP_NEGOTIATE_ALWAYS_SIGN              = 0x00008000
	NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED = 0x00002000
	NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED      = 0x00001000
	NTLMSSP_NEGOTIATE_NTLM                     = 0x00000200
	NTLMSSP_NEGOTIATE_LM_KEY                   = 0x00000080
	NTLMSSP_NEGOTIATE_DATAGRAM                 = 0x00000040
	NTLMSSP_NEGOTIATE_SEAL                     = 0x00000020
	NTLMSSP_NEGOTIATE_SIGN                     = 0x00000010
	NTLMSSP_REQUEST_TARGET                     = 0x00000004
	NTLM_NEGOTIATE_OEM                         = 0x00000002
	NTLMSSP_NEGOTIATE_UNICODE                  = 0x00000001
)

Variables

This section is empty.

Functions

func EncodeDERTRequest

func EncodeDERTRequest(negoMsgs []*NegotiateMessage, authInfo string, pubKeyAuth string) []byte

Types

type AuthenticateMessage

type AuthenticateMessage struct {
	Signature                          [8]byte
	MessageType                        uint32
	LmChallengeResponseLen             uint16
	LmChallengeResponseMaxLen          uint16
	LmChallengeResponseBufferOffset    uint32
	NtChallengeResponseLen             uint16
	NtChallengeResponseMaxLen          uint16
	NtChallengeResponseBufferOffset    uint32
	DomainNameLen                      uint16
	DomainNameMaxLen                   uint16
	DomainNameBufferOffset             uint32
	UserNameLen                        uint16
	UserNameMaxLen                     uint16
	UserNameBufferOffset               uint32
	WorkstationLen                     uint16
	WorkstationMaxLen                  uint16
	WorkstationBufferOffset            uint32
	EncryptedRandomSessionLen          uint16
	EncryptedRandomSessionMaxLen       uint16
	EncryptedRandomSessionBufferOffset uint16
	NegotiateFlags                     uint32
	Version                            NVersion
	MIC                                [16]byte
	Payload                            string
}

type ChallengeMessage

type ChallengeMessage struct {
	Signature              [8]byte
	MessageType            uint32
	TargetNameLen          uint16
	TargetNameMaxLen       uint16
	TargetNameBufferOffset uint32
	NegotiateFlags         uint32
	ServerChallenge        [8]byte
	Reserved               [8]byte
	TargetInfoLen          uint16
	TargetInfoMaxLen       uint16
	TargetInfoBufferOffset uint32
	Version                NVersion
	Payload                string
}

type NTLMv2

type NTLMv2 struct {
	// contains filtered or unexported fields
}

func NewNTLMv2

func NewNTLMv2(domain, user, password string) *NTLMv2

func (*NTLMv2) GetAuthenticateMessage

func (n *NTLMv2) GetAuthenticateMessage() *AuthenticateMessage

func (*NTLMv2) GetNegotiateMessage

func (n *NTLMv2) GetNegotiateMessage() *NegotiateMessage

generate first handshake messgae

type NVersion

type NVersion struct {
	ProductMajorVersion uint8
	ProductMinorVersion uint8
	ProductBuild        uint16
	Reserved            [3]byte
	UInt8               uint8
}

type NegoData

type NegoData struct {
}

type NegoToken

type NegoToken struct {
}

type NegotiateMessage

type NegotiateMessage struct {
	Signature               [8]byte
	MessageType             uint32
	NegotiateFlags          uint32
	DomainNameLen           uint16
	DomainNameMaxLen        uint16
	DomainNameBufferOffset  uint32
	WorkstationLen          uint16
	WorkstationMaxLen       uint16
	WorkstationBufferOffset uint32
	Varsion                 NVersion
	Payload                 string
}

type OpenSSLRSAPublicKey

type OpenSSLRSAPublicKey struct {
}

type TSCredentials

type TSCredentials struct {
}

type TSCspDataDetail

type TSCspDataDetail struct {
}

type TSPasswordCreds

type TSPasswordCreds struct {
}

type TSRequest

type TSRequest struct {
}

func DecodeDERTRequest

func DecodeDERTRequest(s []byte) (*TSRequest, error)

type TSSmartCardCreds

type TSSmartCardCreds struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL