def test_get_LMv2_response(self):
     # 4.2.4.2.1 - LMv2 Response
     server_challenge = b"\x01\x23\x45\x67\x89\xab\xcd\xef"
     client_challenge = b"\xaa" * 8
     expected = b"\x86\xc3\x50\x97\xac\x9c\xec\x10" \
                b"\x25\x54\x76\x4a\x57\xcc\xcc\x19" \
                b"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
     actual = ComputeResponse._get_LMv2_response("User", "Password",
                                                 "Domain", server_challenge,
                                                 client_challenge)
     assert actual == expected
Esempio n. 2
0
    def test_get_LMv2_response(self):
        expected = ntlmv2_lmv2_response

        actual = ComputeResponse._get_LMv2_response(user_name, password, domain_name, server_challenge, client_challenge)

        assert actual == expected