package ntlm
Import Path
github.com/hirochachacha/go-smb2/internal/ntlm (on go.dev)
Dependency Relation
imports 13 packages, and imported by one package
Package-Level Type Names (total 4)
NTLM v2 client
// e.g "WORKGROUP", "MicrosoftAccount"
Hash []byte
Password string
// SPN ::= "service/hostname[:port]"; e.g "cifs/remotehost:1020"
User string
// e.g "localhost", "HOME-PC"
(*Client) Authenticate(cmsg []byte) (amsg []byte, err error)
(*Client) Negotiate() (nmsg []byte, err error)
(*Client) Session() *Session
DnsComputerName string
DnsDomainName string
DnsTreeName string
NbComputerName string
NbDomainName string
func (*Session).InfoMap() *InfoMap
NTLM v2 server
(*Server) AddAccount(user, password string)
(*Server) Authenticate(amsg []byte) (err error)
(*Server) Challenge(nmsg []byte) (cmsg []byte, err error)
(*Server) Session() *Session
func NewServer(targetName string) *Server
(*Session) CheckSum(sum, plaintext []byte, seqNum uint32) (bool, uint32)
TODO export to somewhere
(*Session) Overhead() int
(*Session) Seal(dst, plaintext []byte, seqNum uint32) ([]byte, uint32)
(*Session) SessionKey() []byte
(*Session) Sum(plaintext []byte, seqNum uint32) ([]byte, uint32)
(*Session) Unseal(dst, ciphertext []byte, seqNum uint32) ([]byte, uint32, error)
(*Session) User() string
func (*Client).Session() *Session
func (*Server).Session() *Session
Package-Level Constants (total 44)
const MsvAvChannelBindings = 10 const MsvAvDnsComputerName = 3 const MsvAvDnsDomainName = 4 const MsvAvDnsTreeName = 5 const MsvAvEOL = 0 const MsvAvFlags = 6 const MsvAvNbComputerName = 1 const MsvAvNbDomainName = 2 const MsvAvSingleHost = 8 const MsvAvTargetName = 9 const MsvAvTimestamp = 7 const NTLM_NEGOTIATE_OEM = 2 const NtLmAuthenticate = 3 const NtLmChallenge = 2 const NtLmNegotiate = 1 const NTLMSSP_ANONYMOUS = 2048 const NTLMSSP_NEGOTIATE_128 = 536870912 const NTLMSSP_NEGOTIATE_56 = 2147483648 const NTLMSSP_NEGOTIATE_ALWAYS_SIGN = 32768 const NTLMSSP_NEGOTIATE_DATAGRAM = 64 const NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY = 524288 const NTLMSSP_NEGOTIATE_IDENTIFY = 1048576 const NTLMSSP_NEGOTIATE_KEY_EXCH = 1073741824 const NTLMSSP_NEGOTIATE_LM_KEY = 128 const NTLMSSP_NEGOTIATE_NTLM = 512 const NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED = 4096 const NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED = 8192 const NTLMSSP_NEGOTIATE_SEAL = 32 const NTLMSSP_NEGOTIATE_SIGN = 16 const NTLMSSP_NEGOTIATE_TARGET_INFO = 8388608 const NTLMSSP_NEGOTIATE_UNICODE = 1 const NTLMSSP_NEGOTIATE_VERSION = 33554432 const NTLMSSP_REQUEST_NON_NT_SESSION_KEY = 4194304 const NTLMSSP_REQUEST_TARGET = 4 const NTLMSSP_REVISION_W2K3 = 15 const NTLMSSP_TARGET_TYPE_DOMAIN = 65536 const NTLMSSP_TARGET_TYPE_SERVER = 131072 const WINDOWS_MAJOR_VERSION_10 = 10 const WINDOWS_MAJOR_VERSION_5 = 5 const WINDOWS_MAJOR_VERSION_6 = 6 const WINDOWS_MINOR_VERSION_0 = 0 const WINDOWS_MINOR_VERSION_1 = 1 const WINDOWS_MINOR_VERSION_2 = 2 const WINDOWS_MINOR_VERSION_3 = 3
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |