Documentation
¶
Index ¶
- Constants
- Variables
- func GenSubProtocol(data any, key string) ([]byte, error)
- func LMOWFv1(Passwd, User, UserDom string) []byte
- func LMOWFv2(Passwd, User, UserDom string) []byte
- func NTOWFv1(Passwd, User, UserDom string) []byte
- func NTOWFv2(Passwd, User, UserDom string) []byte
- func NetNTLMv1(nt []byte, lm []byte, serverChallenge []byte, clientChallenge []byte, ...) ([]byte, []byte, []byte)
- func NetNTLMv2(nt []byte, lm []byte, serverChallenge []byte, clientChallenge []byte, ...) ([]byte, []byte, []byte)
- func ParseSubProtocol(reader io.Reader, v any, key string) error
- func UnicodeEncode(p string) []byte
- type AVPAIR
- type AuthenticationMessage
- type BERElement
- type BERElementType
- type ChallengeMessage
- type Field
- type NegotiateMessage
- type TpktPacket
- type Version
Constants ¶
View Source
const ( BERUniversalData = 0 BERApplicationData = 1 BERContextSpecificData = 2 BERPrivateData = 3 BERInteger = 0x02 BERString = 0x1b )
Variables ¶
View Source
var NoLMResponseNTLMv1 bool
Functions ¶
func UnicodeEncode ¶
Types ¶
type AVPAIR ¶
func ParseAVPAIRs ¶
type AuthenticationMessage ¶
type AuthenticationMessage struct { Signature [8]byte MessageType uint32 LmChallengeResponseFields Field NtChallengeResponseFields Field DomainNameFields Field UserNameFields Field WorkstationFields Field EncryptedRandomSessionKeyFields Field NegotiateFlags [4]byte Version Version MIC [16]byte // contains filtered or unexported fields }
func NewAuthenticationMessage ¶
func NewAuthenticationMessage() *AuthenticationMessage
func ParseAuthenticationMessage ¶
func ParseAuthenticationMessage(data []byte) (*AuthenticationMessage, error)
func (*AuthenticationMessage) Marshal ¶
func (n *AuthenticationMessage) Marshal() ([]byte, error)
func (*AuthenticationMessage) NewField ¶
func (n *AuthenticationMessage) NewField(d []byte) Field
func (*AuthenticationMessage) SetPayload ¶
func (n *AuthenticationMessage) SetPayload(payload []byte)
type BERElement ¶
type BERElement struct { Type *BERElementType Value any }
func LoadFromMap ¶
func LoadFromMap(d map[string]any) *BERElement
func NewBER ¶
func NewBER(data any) (*BERElement, error)
func (*BERElement) Marshal ¶
func (b *BERElement) Marshal() ([]byte, error)
func (*BERElement) ToMap ¶
func (b *BERElement) ToMap() map[string]any
type BERElementType ¶
type ChallengeMessage ¶
type ChallengeMessage struct { Signature [8]byte MessageType uint32 TargetNameFields Field NegotiateFlags uint32 ServerChallenge [8]byte Reserved [8]byte TargetInfoFields Field Version Version // contains filtered or unexported fields }
func NewChallengeMessage ¶
func NewChallengeMessage() *ChallengeMessage
func ParseChallengeMessage ¶
func ParseChallengeMessage(data []byte) (*ChallengeMessage, error)
func (*ChallengeMessage) Marshal ¶
func (n *ChallengeMessage) Marshal() ([]byte, error)
func (*ChallengeMessage) NewField ¶
func (n *ChallengeMessage) NewField(d []byte) Field
func (*ChallengeMessage) SetPayload ¶
func (n *ChallengeMessage) SetPayload(payload []byte)
type Field ¶
type NegotiateMessage ¶
type NegotiateMessage struct { Signature [8]byte MessageType uint32 NegotiateFlags uint32 DomainNameFields Field WorkstationFields Field Version Version // contains filtered or unexported fields }
func NewNegotiateMessage ¶
func NewNegotiateMessage() *NegotiateMessage
func ParseNegotiateMessage ¶
func ParseNegotiateMessage(data []byte) (*NegotiateMessage, error)
func (*NegotiateMessage) Marshal ¶
func (n *NegotiateMessage) Marshal() ([]byte, error)
func (*NegotiateMessage) NewField ¶
func (n *NegotiateMessage) NewField(d []byte) Field
type TpktPacket ¶
func NewTpktPacket ¶
func NewTpktPacket(data []byte) *TpktPacket
func (*TpktPacket) Marshal ¶
func (t *TpktPacket) Marshal() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.