File: functionality.ntlm

package info (click to toggle)
httest 2.4.23-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,876 kB
  • sloc: ansic: 19,553; sh: 10,550; xml: 1,047; makefile: 510; lisp: 145; perl: 31
file content (28 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
INCLUDE $TOP/test/config.htb

CLIENT
_MATCH EXEC "(.*)" B64M
_EXEC $TOP/src/htntlm --write --type=1 --flags="neg-oem neg-ntlm-key"

_EXPECT EXEC "type: 1"
_EXPECT EXEC "flags: neg-oem neg-ntlm-key"
_EXEC $TOP/src/htntlm --read=$B64M --info

_MATCH EXEC "(.*)" B64M
_EXEC $TOP/src/htntlm --write --type=2 --flags="neg-oem neg-ntlm-key" --challenge=0x0123456789abcdef

_EXPECT EXEC "type: 2"
_EXPECT EXEC "flags: neg-oem neg-ntlm-key"
_EXPECT EXEC "challenge: 123456789abcdef"
_EXEC $TOP/src/htntlm --read=$B64M --info

# Do this test static to avoid errors in lm and ntlm hash calculation
_MATCH EXEC "(.*)" B64M
_EXEC $TOP/src/htntlm --write --type=3 --challenge=0x0123456789abcdef --user=hans --password=peter --response="lm ntlm"

_EXPECT EXEC "type: 3"
_EXPECT EXEC "user: HANS"
_EXPECT EXEC "lm hash: [0-9a-f]{48,48}$"
_EXPECT EXEC "ntlm hash: [0-9a-f]{48,48}$"
_EXEC $TOP/src/htntlm --read=$B64M --info
END