public void GetLmUserSessionKey() { string expectedLmUserSessionKey = "/zdQvMKyJBIAAAAAAAAAAA=="; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] lmUserSessionKey = generator.GetLmUserSessionKey(); string actual = Convert.ToBase64String(lmUserSessionKey); Assert.That(actual, Is.EqualTo(expectedLmUserSessionKey)); }
public void GetNtlmV2Response() { string expectedNtlmV2Response = "y6u8pxPreV0EyXq8Ae5JgwEBAAAAAAAAAJDTNrc0wwH///8AESIzRAAAAAACAAwARABPAE0AQQBJAE4AAQAMAFMARQBSAFYARQBSAAQAFABkAG8AbQBhAGkAbgAuAGMAbwBtAAMAIgBzAGUAcgB2AGUAcgAuAGQAbwBtAGEAaQBuAC4AYwBvAG0AAAAAAAAAAAA="; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] ntlmV2Response = generator.GetNtlmV2Response(); string actual = Convert.ToBase64String(ntlmV2Response); Assert.That(actual, Is.EqualTo(expectedNtlmV2Response)); }
public void GetNtlm2SessionResponse() { string expectedNtlm2SessionResponse = "ENVQgy0Sssy3nVrR9O7T34KspMNoHdRV"; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] ntlm2SessionResponse = generator.GetNtlm2SessionResponse(); string actual = Convert.ToBase64String(ntlm2SessionResponse); Assert.That(actual, Is.EqualTo(expectedNtlm2SessionResponse)); }
public void GetNtlmResponse() { string expectedNtlmResponse = "JamMHDHoGEdGaymy30aA85lY+4whOpzG"; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] ntlmResponse = generator.GetNtlmResponse(); string actual = Convert.ToBase64String(ntlmResponse); Assert.That(actual, Is.EqualTo(expectedNtlmResponse)); }
public void GetLmV2Response() { string expectedLmV2Response = "1uYVLqJdA7fGumYpwtaq8P///wARIjNE"; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] lmV2Response = generator.GetLmV2Response(); string actual = Convert.ToBase64String(lmV2Response); Assert.That(actual, Is.EqualTo(expectedLmV2Response)); }
public void GetLmResponse() { string expectedLmResponse = "wzfNXL1E/JeCpmevbUJ8beZ8IMLT53xW"; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] lmResponse = generator.GetLmResponse(); string actual = Convert.ToBase64String(lmResponse); Assert.That(actual, Is.EqualTo(expectedLmResponse)); }
public void GetSecondaryKey() { string expectedSecondaryKey = "AAECAwQFBgcICQoLDA0ODw=="; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] secondaryKeyValue = generator.GetSecondaryKey(); string actual = Convert.ToBase64String(secondaryKeyValue); Assert.That(actual, Is.EqualTo(expectedSecondaryKey)); }
public void GetLm2SessionResponse() { string expectedLm2SessionResponse = "////ABEiM0QAAAAAAAAAAAAAAAAAAAAA"; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] lm2SessionResponse = generator.GetLm2SessionResponse(); string actual = Convert.ToBase64String(lm2SessionResponse); Assert.That(actual, Is.EqualTo(expectedLm2SessionResponse)); }
public void GetNtlm2SessionResponseUserSessionKey() { string expectedNtlm2SessionResponseUserSessionKey = "qW9E2Ey2jPsj/AS7rzgeVA=="; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] ntlm2SessionResponseUserSessionKey = generator.GetNtlm2SessionResponseUserSessionKey(); string actual = Convert.ToBase64String(ntlm2SessionResponseUserSessionKey); Assert.That(actual, Is.EqualTo(expectedNtlm2SessionResponseUserSessionKey)); }
public void GetNtlmV2UserSessionKey() { string expectedNtlmV2UserSesionKey = "uUojm7TG0ewIMGoHHSuQ8A=="; CipherGen generator = new CipherGen(rnd, testDateTime, target, userName, password, challenge, target, targetInfo, clientNonce, clientNonce, secondaryKey, timestamp); byte[] ntlmV2UserSessionKey = generator.GetNtlmV2UserSessionKey(); string actual = Convert.ToBase64String(ntlmV2UserSessionKey); Assert.That(actual, Is.EqualTo(expectedNtlmV2UserSesionKey)); }