htntlm
A helper tool to enable ntlm login within the httest.
htntlm do generate type 1, 2 and 3 NTLM messages. The content of this message is defined with htntlm options. LM, NTLM, LMv2, NTLMv2 and NTLM2 session response are supported. Absolut no automatisme is implemented, you have to know what to do on a type 2 NTLM message.
The result is a base64 message, which you can place for example in a WWW-Authenticate header, see example below.
All information are from http://curl.haxx.se/rfc/ntlm.html
run htntlm --help for more information
Example
CLIENT
_REQ intranet 80
__GET / HTTP/1.1
__Host: intranet
__User-Agent: mozilla
__
_EXPECT . "WWW-Authenticate: NTLM"
_WAIT
_CLOSE
_REQ intranet 80
__GET / HTTP/1.1
__Host: intranet
_PIPE
_EXEC ./htntlm -m 1
_FLUSH
__User-Agent: mozilla
__
_MATCH headers "WWW-Authenticate: NTLM (.*)" MESSAGE2
_WAIT
_REQ intranet 80
__GET / HTTP/1.1
__Host: intranet
_PIPE
_EXEC ./htntlm -m 3 -u user -p 12345 -c $MESSAGE2
_FLUSH
__User-Agent: mozilla
__
_EXPECT . "200 OK"
_WAIT
END
