Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 99 for 0x4004 (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            }
    
            @Test
            @DisplayName("Should handle ciphers with maximum value")
            void testMaximumCipherValues() throws SMBProtocolDecodingException {
                int[] ciphers = { 0xFFFF, 0x0000, 0x7FFF };
                EncryptionNegotiateContext originalContext = new EncryptionNegotiateContext(mockConfig, ciphers);
    
                int encoded = originalContext.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

                    this.createDisposition = FILE_OPEN_IF;
                }
            } else {
                this.createDisposition = FILE_OPEN;
            }
    
            if ((createOptions & 0x0001) == 0) {
                this.createOptions = createOptions | 0x0040;
            } else {
                this.createOptions = createOptions;
            }
            this.impersonationLevel = 0x02; // As seen on NT :~)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // recordType (2 bytes)
            src[srcIndex + 2] = 0x00;
            src[srcIndex + 3] = 0x20; // NB (0x0020)
            // recordClass (2 bytes)
            src[srcIndex + 4] = 0x00;
            src[srcIndex + 5] = 0x01; // IN (0x0001)
            // ttl (4 bytes)
            src[srcIndex + 6] = 0x00;
            src[srcIndex + 7] = 0x00;
            src[srcIndex + 8] = 0x00;
            src[srcIndex + 9] = 0x00;
            // rDataLength (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            assertEquals(expectedHigh, buffer[offset + 3]);
        }
    
        private static Stream<Arguments> provideFidTestCases() {
            return Stream.of(Arguments.of(0x0000, (byte) 0x00, (byte) 0x00), Arguments.of(0x00FF, (byte) 0xFF, (byte) 0x00),
                    Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF),
                    Arguments.of(0x1234, (byte) 0x34, (byte) 0x12));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SID.java

        /**
         * Flag indicating that SIDs should be resolved to names.
         */
        public static final int SID_FLAG_RESOLVE_SIDS = 0x0001;
    
        /**
         * Well known SID: EVERYONE
         */
        public static SID EVERYONE = null;
    
        /**
         * Well known SID: CREATOR_OWNER
         */
        public static SID CREATOR_OWNER = null;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
    
            assertEquals(0x0003, command); // SMB2_TREE_CONNECT command value
    
            // Verify path is set correctly
            Field pathField = Smb2TreeConnectRequest.class.getDeclaredField("path");
            pathField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (16384)
            assertEquals(16384, SMBUtil.readInt2(dst, descrEnd + 2));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            when(response.getHeaderStart()).thenReturn(0);
    
            // Write minimal SecurityDescriptor header (20 bytes)
            buffer[20] = 1; // Revision
            buffer[21] = 0; // Sbz1
            SMBUtil.writeInt2(0x8004, buffer, 22); // Control flags
            SMBUtil.writeInt4(0, buffer, 24); // Owner offset
            SMBUtil.writeInt4(0, buffer, 28); // Group offset
            SMBUtil.writeInt4(0, buffer, 32); // SACL offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
            assertEquals(0x0001, command); // SMB2_SESSION_SETUP command value
    
            Field securityModeField = Smb2SessionSetupRequest.class.getDeclaredField("securityMode");
            securityModeField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            // Bit 2: active (1)
            // Bit 1: permanent (1)
    
            // MAC address
            byte[] testMac = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
            System.arraycopy(testMac, 0, src, srcIndex + 19, 6);
    
            // Statistics
            byte[] stats = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
            System.arraycopy(stats, 0, src, srcIndex + 25, 6);
    
            response.readRDataWireFormat(src, srcIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top