Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getNTHash (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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