Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 230 for SMBUtil (1.07 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                byte[] data = new byte[128];
                // Initialize the data buffer with proper SMB2 header structure
                SMBUtil.writeInt4(0xFE534D42, data, 0); // SMB2 signature
                SMBUtil.writeInt4(0x0000, data, 12); // Command = 0
                SMBUtil.writeInt4(0x0000, data, 16); // Flags = 0
    
                CommonServerMessageBlock request = mock(CommonServerMessageBlock.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Set SMB 3.1.1 dialect and 1 context
            SMBUtil.writeInt2(0x0311, buffer, 4);
            SMBUtil.writeInt2(1, buffer, 6);
            SMBUtil.writeInt4(128, buffer, 60); // Context offset
    
            // At offset 128 + 64 (header start), set context with excessive data length
            int contextPos = 192;
            SMBUtil.writeInt2(1, buffer, contextPos); // Context type
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            // Version (2 bytes)
            SMBUtil.writeInt2(3, buffer, 8);
    
            // Size (2 bytes) - the size of this referral entry
            SMBUtil.writeInt2(20, buffer, 10);
    
            // Server type (2 bytes)
            SMBUtil.writeInt2(1, buffer, 12);
    
            // Referral flags (2 bytes)
            SMBUtil.writeInt2(0, buffer, 14);
    
            // Proximity (2 bytes for v3)
            SMBUtil.writeInt2(0, buffer, 16);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            int dataOffset = offset;
            SMBUtil.writeInt4(0, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(8, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(1000000, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(500000, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt2(512, buffer, dataOffset);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            SMBUtil.writeInt8(0, buffer, dataOffset + 32);
            // EndOfFile
            SMBUtil.writeInt8(0, buffer, dataOffset + 40);
            // AllocationSize
            SMBUtil.writeInt8(0, buffer, dataOffset + 48);
            // ExtFileAttributes
            SMBUtil.writeInt4(0, buffer, dataOffset + 56);
            // FileNameLength
            SMBUtil.writeInt4(8, buffer, dataOffset + 60);
            // EaSize
            SMBUtil.writeInt4(0, buffer, dataOffset + 64);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java

            SMBUtil.writeInt4(this.totalParameterCount, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.totalDataCount, dst, dstIndex);
            dstIndex += 4;
            if (this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY) {
                SMBUtil.writeInt4(this.maxParameterCount, dst, dstIndex);
                dstIndex += 4;
                SMBUtil.writeInt4(this.maxDataCount, dst, dstIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(512, SMBUtil.readInt4(buffer, 32)); // Minimum count
                assertEquals(Smb2ReadRequest.SMB2_CHANNEL_NONE, SMBUtil.readInt4(buffer, 36)); // Channel
                assertEquals(1024, SMBUtil.readInt4(buffer, 40)); // Remaining bytes
    
                // ReadChannelInfo
                assertEquals(0, SMBUtil.readInt2(buffer, 44)); // ReadChannelInfoOffset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            byte[] buffer = new byte[10];
            SMBUtil.writeInt2(0, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
            SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4);
    
            response.readParametersWireFormat(buffer, 0, 6);
            assertEquals(0, response.getAvailable());
    
            // Test maximum unsigned 16-bit value (65535)
            SMBUtil.writeInt2(0xFFFF, buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, 0));
        }
    
        @Test
        @DisplayName("Test encode with buffer offset")
        void testEncodeWithBufferOffset() throws SMBProtocolDecodingException {
            // First decode to set internal state
            byte[] sourceBuffer = new byte[8];
            long expectedIndexNumber = 0xAABBCCDDEEFF1122L;
            SMBUtil.writeInt8(expectedIndexNumber, sourceBuffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(6, bytesWritten);
                assertEquals(2, SMBUtil.readInt2(buffer, 0));
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_CCM, SMBUtil.readInt2(buffer, 2));
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, SMBUtil.readInt2(buffer, 4));
            }
    
            @Test
            @DisplayName("Should encode null ciphers as zero count")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top