Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getNTHash (0.26 sec)

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

            super();
            this.ntHash = passwordHash;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#getNTHash()
         */
        @Override
        protected byte[] getNTHash () {
            return this.ntHash;
        }
    
    
        @Override
        public NtlmPasswordAuthenticator clone () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmUtil.java

         * @param password
         * 
         * @return the caclulated mac
         */
        public static byte[] nTOWFv2 ( String domain, String username, String password ) {
            return nTOWFv2(domain, username, getNTHash(password));
        }
    
    
        /**
         * 
         * @param domain
         * @param username
         * @param passwordHash
         *            NT password hash
         * 
         * @return the caclulated mac
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         */
        public void getUserSessionKey ( CIFSContext tc, byte[] chlng, byte[] dest, int offset ) throws SmbException {
            try {
                MessageDigest md4 = Crypto.getMD4();
                byte[] ntHash = getNTHash();
                switch ( tc.getConfig().getLanManCompatibility() ) {
                case 0:
                case 1:
                case 2:
                    md4.update(ntHash);
                    md4.digest(dest, offset, 16);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type3Message.java

                setLMResponse(null);
                setNTResponse(null);
                return;
            }
    
            if ( passwordHash == null ) {
                passwordHash = NtlmUtil.getNTHash(password);
            }
    
            switch ( tc.getConfig().getLanManCompatibility() ) {
            case 0:
            case 1:
                if ( !getFlag(NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmContext.java

            if ( this.auth instanceof NtlmNtHashAuthenticator ) {
                return new Type3Message(
                    this.transportContext,
                    msg2,
                    this.targetName,
                    this.auth.getNTHash(),
                    this.auth.getUserDomain(),
                    this.auth.getUsername(),
                    this.workstation,
                    this.ntlmsspFlags);
            }
    
            return new Type3Message(
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/SessionTest.java

        @Test
        public void logonUserHash () throws IOException {
            Assume.assumeTrue(Boolean.parseBoolean(getProperties().getOrDefault("jcifs.smb.client.useExtendedSecurity", "true")));
            byte[] hash = NtlmUtil.getNTHash(getTestUserPassword());
            CIFSContext ctx = getContext().withCredentials(new NtlmNtHashAuthenticator(getTestUserDomain(), getTestUser(), hash));
            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx); ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
Back to top