def test_response_to_NTLM_v1(self): # [MS-NLMP] page 75 (NTLMv1Response, LMv1Response) = ntlm2sr_calc_resp( create_NT_hashed_password_v1(Password), ServerChallenge, ClientChallenge) assert HexToByte( "aa aa aa aa aa aa aa aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" ) == LMv1Response assert HexToByte( "75 37 f8 03 ae 36 71 28 ca 45 82 04 bd e7 ca f8 1e 97 ed 26 83 26 72 32" ) == NTLMv1Response
def test_response_to_NT_hashed_password(self): assert HexToByte("67 c4 30 11 f3 02 98 a2 ad 35 ec e6 4f 16 33 1c 44 bd be d9 27 84 1f 94") == \ calc_resp(create_NT_hashed_password_v1(Password), ServerChallenge)
def test_NT_hashed_password(self): # [MS-NLMP] page 73 assert HexToByte("a4 f4 9c 40 65 10 bd ca b6 82 4e e7 c3 0f d8 52" ) == create_NT_hashed_password_v1(Password)
def test_response_to_NTLM_v1(self): # [MS-NLMP] page 75 (NTLMv1Response, LMv1Response) = ntlm2sr_calc_resp(create_NT_hashed_password_v1(Password), ServerChallenge, ClientChallenge) assert HexToByte("aa aa aa aa aa aa aa aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00") == LMv1Response assert HexToByte("75 37 f8 03 ae 36 71 28 ca 45 82 04 bd e7 ca f8 1e 97 ed 26 83 26 72 32") == NTLMv1Response
def test_NT_hashed_password(self): # [MS-NLMP] page 73 assert HexToByte("a4 f4 9c 40 65 10 bd ca b6 82 4e e7 c3 0f d8 52") == create_NT_hashed_password_v1(Password)