Documentation
¶
Overview ¶
Package ntlm is the client side of NTLMv2 authentication (MS-NLMP), as far as an HTTP proxy asks for it: the two messages a client sends, built from a user name, a password and the proxy's challenge.
It exists because the HTTP proxies of Windows-centred office networks commonly accept nothing else (or Negotiate, which a client without a Kerberos ticket answers with these same messages), and a machine behind such a proxy has no other way out. NTLM is old cryptography (MD4 and HMAC-MD5): the package does what the protocol requires and nothing with it protects a session. The password proves the user to the proxy, as the network's operator set it up; RemoHop's own encryption runs inside the tunnel the proxy then opens.
Only NTLMv2 is produced. No message is signed or sealed (a proxy does not ask for it), and no session key is derived.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(challengeMsg []byte, c Credentials) ([]byte, error)
Authenticate answers the server's challenge (CHALLENGE_MESSAGE) with the third message (AUTHENTICATE_MESSAGE) for the given credentials.
func IsMessage ¶
IsMessage reports whether b is an NTLM message, as opposed to, say, a Kerberos token inside Negotiate.
Types ¶
type Credentials ¶
Credentials identify a user to the proxy.