def test_get_LMv1_response(self):
     # 4.2.2.2.2 - LMv1 Response
     server_challenge = b"\x01\x23\x45\x67\x89\xab\xcd\xef"
     expected = b"\x98\xde\xf7\xb8\x7f\x88\xaa\x5d" \
                b"\xaf\xe2\xdf\x77\x96\x88\xa1\x72" \
                b"\xde\xf1\x1c\x7d\x5c\xcd\xef\x13"
     actual = ComputeResponse._get_LMv1_response("Password",
                                                 server_challenge)
     assert actual == expected
Example #2
0
    def test_get_LMv1_response(self):
        expected = ntlmv1_lmv1_response

        actual = ComputeResponse._get_LMv1_response(password, server_challenge)

        assert actual == expected