Documentation ¶
Index ¶
- Constants
- type Client
- type InfoMap
- type Server
- type Session
- func (s *Session) CheckSum(sum, plaintext []byte, seqNum uint32) (bool, uint32)
- func (s *Session) InfoMap() *InfoMap
- func (s *Session) Overhead() int
- func (s *Session) Seal(dst, plaintext []byte, seqNum uint32) ([]byte, uint32)
- func (s *Session) SessionKey() []byte
- func (s *Session) Sum(plaintext []byte, seqNum uint32) ([]byte, uint32)
- func (s *Session) Unseal(dst, ciphertext []byte, seqNum uint32) ([]byte, uint32, error)
- func (s *Session) User() string
Constants ¶
View Source
const ( NtLmNegotiate = 0x00000001 NtLmChallenge = 0x00000002 NtLmAuthenticate = 0x00000003 )
View Source
const ( NtlmsspNegotiateUnicode = 1 << iota NtlmNegotiateOem NtlmsspRequestTarget NtlmsspNegotiateSign NtlmsspNegotiateSeal NtlmsspNegotiateDatagram NtlmsspNegotiateLmKey NtlmsspNegotiateNtlm NtlmsspAnonymous NtlmsspNegotiateOemDomainSupplied NtlmsspNegotiateOemWorkstationSupplied NtlmsspNegotiateAlwaysSign NtlmsspTargetTypeDomain NtlmsspTargetTypeServer NtlmsspNegotiateExtendedSessionsecurity NtlmsspNegotiateIdentify NtlmsspRequestNonNtSessionKey NtlmsspNegotiateTargetInfo NtlmsspNegotiateVersion NtlmsspNegotiate128 NtlmsspNegotiateKeyExch NtlmsspNegotiate56 )
View Source
const ( MsvAvEOL = iota MsvAvNbComputerName MsvAvNbDomainName MsvAvDnsComputerName MsvAvDnsDomainName MsvAvDnsTreeName MsvAvFlags MsvAvTimestamp MsvAvSingleHost MsvAvTargetName MsvAvChannelBindings )
View Source
const ( WindowsMajorVersion5 = 0x05 WindowsMajorVersion6 = 0x06 WindowsMajorVersion10 = 0x0a )
View Source
const ( WindowsMinorVersion0 = 0x00 WindowsMinorVersion1 = 0x01 WindowsMinorVersion2 = 0x02 WindowsMinorVersion3 = 0x03 )
View Source
const (
NtlmsspRevisionW2k3 = 0x0f
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { User string Password string Hash []byte Domain string // e.g "WORKGROUP", "MicrosoftAccount" Workstation string // e.g "localhost", "HOME-PC" TargetSPN string // SPN ::= "service/hostname[:port]"; e.g "cifs/remotehost:1020" // contains filtered or unexported fields }
Client represents an NTLM v2 client
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
NTLM v2 server
func (*Server) AddAccount ¶
func (*Server) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.