Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getLMv2Response (0.33 sec)

  1. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Act
            byte[] expected = NtlmUtil.computeResponse(key, server, client, 0, client.length);
            byte[] actual = NtlmUtil.getLMv2Response(key, server, client);
    
            // Assert
            assertArrayEquals(expected, actual);
        }
    
        @Test
        @DisplayName("getLMv2Response(String,...): 24-byte response embeds client challenge")
        void testGetLMv2Response_strings_embedsClientChallenge() throws GeneralSecurityException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmUtil.java

         * @throws GeneralSecurityException if a cryptographic error occurs
         */
        public static byte[] getLMv2Response(final String domain, final String user, final String password, final byte[] challenge,
                final byte[] clientChallenge) throws GeneralSecurityException {
            return getLMv2Response(domain, user, getNTHash(password), challenge, clientChallenge);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

         */
        public static byte[] getLMv2Response(final Type2Message type2, final String domain, final String user, final String password,
                final byte[] clientChallenge) {
            if (type2 == null || domain == null || user == null || password == null || clientChallenge == null) {
                return null;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type3Message.java

         */
        public static byte[] getLMv2Response(final CIFSContext tc, final Type2Message type2, final String domain, final String user,
                final String password, final byte[] clientChallenge) throws GeneralSecurityException {
            if (password == null) {
                return null;
            }
            return getLMv2Response(tc, type2, domain, user, NtlmUtil.getNTHash(password), clientChallenge);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                if (this.clientChallenge == null) {
                    this.clientChallenge = new byte[8];
                    tc.getConfig().getRandom().nextBytes(this.clientChallenge);
                }
                return NtlmUtil.getLMv2Response(this.domain, this.username, getPasswordAsCharArray(), chlng, this.clientChallenge);
            default:
                // Default to NTLMv2 for security
                log.info("Defaulting to secure NTLMv2 authentication");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

         * @param challenge The server challenge.
         * @param clientChallenge The client challenge (nonce).
         * @return the LMv2 response bytes
         */
        public static byte[] getLMv2Response(final String domain, final String user, final String password, final byte[] challenge,
                final byte[] clientChallenge) {
            try {
                final byte[] hash = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
Back to top