Skip to content

Commit

Permalink
Fix test encryptedSessionKey
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed Nov 3, 2024
1 parent 59615e3 commit 82db955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SMB_RPC/test_ntlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_ntlmv2(self):
keyExchangeKey = ntlm.KXKEY(flags, sessionBaseKey, lmResponse, self.serverChallenge, self.password,'','')
encryptedSessionKey = ntlm.generateEncryptedSessionKey(keyExchangeKey,self.randomSessionKey)
hexdump(encryptedSessionKey)
self.assertEqual(encryptedSessionKey, bytearray(b'\xC5\xDA\xD2\x54\x4F\xC9\x79\x90\x94\xCE\x1C\xE9\x0B\xC9\xD0\x3E'))
self.assertEqual(encryptedSessionKey, bytearray(b'\x18\x6c\xaf\xee\x66\x20\x16\x9d\xd9\x8c\x4d\x1a\x22\x56\x71\x4c'))
print("\n")

print("AUTHENTICATE MESSAGE")
Expand Down

0 comments on commit 82db955

Please sign in to comment.