Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for Nt (0.01 seconds)

  1. src/main/java/jcifs/smb/NtlmUtil.java

            hmac.update(Strings.getUNIBytes(domain));
            return hmac.digest();
        }
    
        /**
         * Generates the NT password hash for the given password.
         *
         * @param password the password to hash
         * @return nt password hash
         */
        public static byte[] getNTHash(final String password) {
            if (password == null) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

    package jcifs.smb;
    
    import org.bouncycastle.util.encoders.Hex;
    
    /**
     * Authenticator directly specifing the user's NT hash
     *
     * @author mbechler
     *
     */
    public class NtlmNtHashAuthenticator extends NtlmPasswordAuthenticator {
    
        private static final long serialVersionUID = 4328214169536360351L;
        /** The NT hash for authentication */
        private final byte[] ntHash;
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/NtStatus.java

                NT_STATUS_PATH_NOT_COVERED, NT_STATUS_IO_REPARSE_TAG_NOT_HANDLED, };
    
        /**
         * Array of NT status message strings corresponding to NT status codes.
         * These messages provide human-readable descriptions for various NT status values.
         */
        String[] NT_STATUS_MESSAGES = { "The operation completed successfully.", "A device attached to the system is not functioning.",
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/NtlmUtilTest.java

            String password = "password";
            // Known NT hash for "password" (UTF-16LE MD4)
            // This is a well-known test vector: password -> 8846F7EAEE8FB117AD06BDD830B7586C
            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
            // Act
            byte[] actual = NtlmUtil.getNTHash(password);
    
            // Assert
            assertArrayEquals(expected, actual, "NT hash must match known test vector");
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  5. src/main/java/jcifs/smb/NtStatus.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb;
    
    /**
     * Interface defining NT status codes used in SMB protocol operations.
     * These status codes are returned by SMB servers to indicate the result
     * of requested operations. The codes follow the Windows NT status code format.
     */
    public interface NtStatus {
    
        /*
         * Don't bother to edit this. Everything within the interface
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  6. gradlew.bat

    @rem
    @rem  Gradle startup script for Windows
    @rem
    @rem ##########################################################################
    
    @rem Set local scope for the variables with windows NT shell
    if "%OS%"=="Windows_NT" setlocal
    
    set DIRNAME=%~dp0
    if "%DIRNAME%"=="" set DIRNAME=.
    @rem This is normally unused
    set APP_BASE_NAME=%~n0
    set APP_HOME=%DIRNAME%
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Sep 18 20:55:41 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  7. internal/lock/lock_windows.go

    	if w == len(`\\?\c:`) {
    		pathbuf[w] = '\\'
    		w++
    	}
    	return string(pathbuf[:w])
    }
    
    // Open - perm param is ignored, on windows file perms/NT acls
    // are not octet combinations. Providing access to NT
    // acls is out of scope here.
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	if path == "" {
    		return nil, syscall.ERROR_FILE_NOT_FOUND
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

    import jcifs.internal.RequestWithPath;
    import jcifs.internal.dfs.DfsReferralDataInternal;
    import jcifs.internal.smb1.com.SmbComClose;
    import jcifs.internal.smb1.com.SmbComFindClose2;
    import jcifs.internal.smb1.trans.nt.NtTransQuerySecurityDesc;
    import jcifs.util.transport.TransportException;
    
    /**
     * This class encapsulates the logic for switching tree connections
     *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 30.4K bytes
    - Click Count (1)
  9. src/main/java/jcifs/config/BaseConfiguration.java

        /** Preferred lease version (1 or 2) */
        protected int leaseVersion = 2;
        /** Lease break timeout in seconds (per MS-SMB2 spec) */
        protected int leaseBreakTimeout = 60;
        /** Whether to use NT status codes instead of DOS error codes */
        protected boolean useNtStatus = true;
        /** Whether to use extended security negotiation */
        protected boolean useExtendedSecurity = true;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                    break;
                }
            } catch (Exception e) {
                throw new SmbException("", e);
            }
        }
    
        /**
         * Get the NT hash of the password
         *
         * @return the NT hash
         */
        protected byte[] getNTHash() {
            MessageDigest md4 = Crypto.getMD4();
            char[] pwd = getPasswordAsCharArray();
            if (pwd == null || pwd.length == 0) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
Back to Top