Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TRANS2_FIND_FIRST2 (0.17 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

    import jcifs.internal.smb1.trans.SmbComTransactionResponse;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Trans2 FindFirst2 response message for SMB1 directory enumeration.
     * This class handles the response from a TRANS2_FIND_FIRST2 request, which returns
     * the first set of directory entries matching the specified search criteria.
     */
    public class Trans2FindFirst2Response extends SmbComTransactionResponse {
    
        // information levels
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

        int lastNameOffset, lastNameBufferIndex;
        String lastName;
        int resumeKey;
    
        Trans2FindFirst2Response() {
            command = SMB_COM_TRANSACTION2;
            subCommand = SmbComTransaction.TRANS2_FIND_FIRST2;
        }
    
        String readString(final byte[] src, final int srcIndex, int len) {
            String str = null;
            try {
                if (useUnicode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            // The command should be SMB_COM_TRANSACTION2 (0x32 = 50)
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, response.getCommand());
            // The subcommand should be TRANS2_FIND_FIRST2 (0x01 = 1)
            assertEquals(SmbComTransaction.TRANS2_FIND_FIRST2, response.getSubCommand());
        }
    
        @Test
        void testIsEndOfSearch() {
            // Test the isEndOfSearch method
            // By default, it should be false
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

        }
    
        @Test
        @DisplayName("Test constructor initialization")
        void testConstructor() {
            // Verify command and subcommand are set correctly
            assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transaction.getCommand());
            assertEquals(SmbComTransaction.TRANS2_FIND_FIRST2, transaction.getSubCommand());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            assertEquals(expected, result);
        }
    
        @Test
        void testReadParametersWireFormat_FindFirst2() {
            response.subCommand = SmbComTransaction.TRANS2_FIND_FIRST2;
            byte[] buffer = new byte[10];
            // sid = 1
            writeInt2(1, buffer, 0);
            // numEntries = 2
            writeInt2(2, buffer, 2);
            // isEndOfSearch = true
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2FindFirst2.getCommand());
            assertEquals(Trans2FindFirst2.TRANS2_FIND_FIRST2, trans2FindFirst2.getSubCommand());
            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
        }
    
        @Test
        @DisplayName("Test constructor with path ending in backslash")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

            }
            this.wildcard = wildcard;
            this.searchAttributes = searchAttributes & 0x37; /* generally ignored tho */
            command = SMB_COM_TRANSACTION2;
            subCommand = TRANS2_FIND_FIRST2;
    
            flags = 0x00;
            informationLevel = SMB_FILE_BOTH_DIRECTORY_INFO;
    
            totalDataCount = 0;
            maxParameterCount = 10;
            maxDataCount = LIST_SIZE;
            maxSetupCount = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2.java

        public Trans2FindFirst2(final Configuration config, final String filename, final String wildcard, final int searchAttributes,
                final int batchCount, final int batchSize) {
            super(config, SMB_COM_TRANSACTION2, TRANS2_FIND_FIRST2);
            if (filename.equals("\\") || (filename.charAt(filename.length() - 1) == '\\')) {
                this.path = filename;
            } else {
                this.path = filename + "\\";
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java

        }
    
        @Test
        @DisplayName("Test transaction subcommand constants")
        void testSubcommandConstants() {
            // Test Trans2 subcommands
            assertEquals((byte) 0x01, SmbComTransaction.TRANS2_FIND_FIRST2);
            assertEquals((byte) 0x02, SmbComTransaction.TRANS2_FIND_NEXT2);
            assertEquals((byte) 0x03, SmbComTransaction.TRANS2_QUERY_FS_INFORMATION);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

        private boolean isPrimary = true;
        private int bufParameterOffset;
        private int bufDataOffset;
    
        static final int TRANSACTION_BUF_SIZE = 0xFFFF;
    
        static final byte TRANS2_FIND_FIRST2 = (byte) 0x01;
        static final byte TRANS2_FIND_NEXT2 = (byte) 0x02;
        static final byte TRANS2_QUERY_FS_INFORMATION = (byte) 0x03;
        static final byte TRANS2_QUERY_PATH_INFORMATION = (byte) 0x05;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top