auth

package
v0.0.0-...-8ec5100 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NTLMSSP_NEGOTIATE_UNICODE uint32 = 1 << iota
	NTLMSSP_NEGOTIATE_OEM
	NTLMSSP_REQUEST_TARGET

	NTLMSSP_NEGOTIATE_SIGN
	NTLMSSP_NEGOTIATE_SEAL
	NTLMSSP_NEGOTIATE_DATAGRAM
	NTLMSSP_NEGOTIATE_LM_KEY

	NTLMSSP_NEGOTIATE_NTLM

	NTLMSSP_NEGOTIATE_ANONYMOUS
	NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED
	NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED

	NTLMSSP_NEGOTIATE_ALWAYS_SIGN
	NTLMSSP_TARGET_TYPE_DOMAIN
	NTLMSSP_TARGET_TYPE_SERVER

	NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
	NTLMSSP_NEGOTIATE_IDENTIFY

	NTLMSSP_REQUEST_NON_NT_SESSION_KEY
	NTLMSSP_NEGOTIATE_TARGET_INFO

	NTLMSSP_NEGOTIATE_VERSION

	NTLMSSP_NEGOTIATE_128
	NTLMSSP_NEGOTIATE_KEY_EXCH
	NTLMSSP_NEGOTIATE_56
)
View Source
const (
	NTLMSSP_NEGOTIATE uint32 = 1
	NTLMSSP_AUTH      uint32 = 3
)

Variables

View Source
var DefaultNegoPayload = func() []byte {
	r, _ := hex.DecodeString("604806062b0601050502a03e303ca00e300c060a2b06010401823702020aa32a3028a0261b246e6f745f646566696e65645f696e5f5246433431373840706c656173655f69676e6f7265")

	return r
}()
View Source
var (
	OBJECT_IDENTIFIER = 0x06
)

Functions

This section is empty.

Types

type ContextFlags

type ContextFlags int32

type InitPayload

type InitPayload struct {
	OID   encoding_asn1.ObjectIdentifier `asn1:"set,tag:6"`
	Token NegotiationToken               `asn1:"set,tag:0"`
}

func NewInitPayload

func NewInitPayload(b []byte) (*InitPayload, error)

func (*InitPayload) Bytes

func (payload *InitPayload) Bytes() ([]byte, error)

type MechTypeList

type MechTypeList []MechType

type NTLMMessage

type NTLMMessage []byte

func (NTLMMessage) IsInvalid

func (p NTLMMessage) IsInvalid() bool

func (NTLMMessage) MessageType

func (p NTLMMessage) MessageType() uint32

func (NTLMMessage) SetMessageType

func (p NTLMMessage) SetMessageType(v uint32)

type NTLMNegotiateMessage

type NTLMNegotiateMessage []byte

func (NTLMNegotiateMessage) BuildNumber

func (p NTLMNegotiateMessage) BuildNumber() uint16

func (NTLMNegotiateMessage) DomainNameBufferOffset

func (p NTLMNegotiateMessage) DomainNameBufferOffset() uint32

func (NTLMNegotiateMessage) DomainNameLen

func (p NTLMNegotiateMessage) DomainNameLen() uint16

func (NTLMNegotiateMessage) DomainNameMaxLen

func (p NTLMNegotiateMessage) DomainNameMaxLen() uint16

func (NTLMNegotiateMessage) Flags

func (p NTLMNegotiateMessage) Flags() uint32

func (NTLMNegotiateMessage) IsInvalid

func (p NTLMNegotiateMessage) IsInvalid() bool

func (NTLMNegotiateMessage) MajorVersion

func (p NTLMNegotiateMessage) MajorVersion() uint8

func (NTLMNegotiateMessage) MinorVersion

func (p NTLMNegotiateMessage) MinorVersion() uint8

func (NTLMNegotiateMessage) NTLMRevisionCurrent

func (p NTLMNegotiateMessage) NTLMRevisionCurrent() uint8

func (NTLMNegotiateMessage) SetBuildNumber

func (p NTLMNegotiateMessage) SetBuildNumber(v uint16)

func (NTLMNegotiateMessage) SetDomainNameBufferOffset

func (p NTLMNegotiateMessage) SetDomainNameBufferOffset(v uint32)

func (NTLMNegotiateMessage) SetDomainNameLen

func (p NTLMNegotiateMessage) SetDomainNameLen(v uint16)

func (NTLMNegotiateMessage) SetDomainNameMaxLen

func (p NTLMNegotiateMessage) SetDomainNameMaxLen(v uint16)

func (NTLMNegotiateMessage) SetFlags

func (p NTLMNegotiateMessage) SetFlags(v uint32)

func (NTLMNegotiateMessage) SetWorkstationBufferOffset

func (p NTLMNegotiateMessage) SetWorkstationBufferOffset(v uint32)

func (NTLMNegotiateMessage) SetWorkstationLen

func (p NTLMNegotiateMessage) SetWorkstationLen(v uint16)

func (NTLMNegotiateMessage) SetWorkstationMaxLen

func (p NTLMNegotiateMessage) SetWorkstationMaxLen(v uint16)

func (NTLMNegotiateMessage) VersionReserved

func (p NTLMNegotiateMessage) VersionReserved() []byte

func (NTLMNegotiateMessage) WorkstationBufferOffset

func (p NTLMNegotiateMessage) WorkstationBufferOffset() uint32

func (NTLMNegotiateMessage) WorkstationLen

func (p NTLMNegotiateMessage) WorkstationLen() uint16

func (NTLMNegotiateMessage) WorkstationMaxLen

func (p NTLMNegotiateMessage) WorkstationMaxLen() uint16

type NegTokenInitData

type NegTokenInitData struct {
	MechTypes   MechTypeList            `asn1:"application,tag:0"`
	ReqFlags    encoding_asn1.BitString `asn1:"application,tag:1"`
	MechToken   []byte                  `asn1:"application,tag:2"`
	NegHints    []byte                  `asn1:"application,tag:3"`
	MechListMIC []byte                  `asn1:"application,tag:3"`
}

type NegotiationToken

type NegotiationToken struct {
	NegTokenInit NegTokenInitData `asn1:"application,tag:0"`
}

type TargPayload

type TargPayload struct {
	NegResult     uint8
	SupportedMech MechType
	ResponseToken []byte
	MechListMIC   []byte
}

func NewTargPayload

func NewTargPayload(b []byte) (*TargPayload, error)

func (*TargPayload) Bytes

func (payload *TargPayload) Bytes() ([]byte, error)

Jump to

Keyboard shortcuts

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