- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getNTLM2Response (0.06 sec)
-
src/test/java/jcifs/smb/NtlmUtilTest.java
byte[] client = hex("DEADBEEFCAFEBABE"); // Act byte[] a = NtlmUtil.getNTLM2Response(pwdHash, server, client); server[7] ^= 0x01; // mutate byte[] b = NtlmUtil.getNTLM2Response(pwdHash, server, client); // Assert assertEquals(24, a.length); assertFalse(Arrays.equals(a, b), "Changing server challenge must alter the response"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
* @param clientChallenge the client challenge bytes * @return the calculated response * @throws GeneralSecurityException if a cryptographic error occurs */ public static byte[] getNTLM2Response(final byte[] passwordHash, final byte[] serverChallenge, final byte[] clientChallenge) throws GeneralSecurityException { final byte[] sessionHash = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
final byte[] responseKeyNT = NtlmPasswordAuthentication.nTOWFv1(password); final byte[] ntlm2Response = NtlmPasswordAuthentication.getNTLM2Response(responseKeyNT, type2.getChallenge(), clientChallenge); setLMResponse(clientChallenge); setNTResponse(ntlm2Response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* @param serverChallenge the server challenge bytes * @param clientChallenge the client challenge bytes * @return the NTLM2 response bytes */ public static byte[] getNTLM2Response(final byte[] nTOWFv1, final byte[] serverChallenge, final byte[] clientChallenge) { final byte[] sessionHash = new byte[8]; try { MessageDigest md5;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
tc.getConfig().getRandom().nextBytes(clientChallenge); java.util.Arrays.fill(clientChallenge, 8, 24, (byte) 0x00); final byte[] ntlm2Response = NtlmUtil.getNTLM2Response(passwordHash, type2.getChallenge(), clientChallenge); setLMResponse(clientChallenge); setNTResponse(ntlm2Response); final byte[] sessionNonce = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0)