Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 333 for 0x08 (0.01 sec)

  1. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        // ---------------- Static read tests -----------------
        @Test
        @DisplayName("readULong correctly interprets little endian")
        void testReadULong() {
            byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 };
            int result = NtlmMessage.readULong(a, 0);
            assertEquals(0x04030201, result, "ULong should be little‑endian");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            dst[dstIndex + OPCODE_OFFSET] = (byte) ((isResponse ? 0x80 : 0x00) + (opCode << 3 & 0x78) + (isAuthAnswer ? 0x04 : 0x00)
                    + (isTruncated ? 0x02 : 0x00) + (isRecurDesired ? 0x01 : 0x00));
            dst[dstIndex + OPCODE_OFFSET + 1] = (byte) ((isRecurAvailable ? 0x80 : 0x00) + (isBroadcast ? 0x10 : 0x00) + (resultCode & 0x0F));
            writeInt2(questionCount, dst, start + QUESTION_OFFSET);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServicePacket.java

            dst[dstIndex + OPCODE_OFFSET] = (byte) ((this.isResponse ? 0x80 : 0x00) + (this.opCode << 3 & 0x78)
                    + (this.isAuthAnswer ? 0x04 : 0x00) + (this.isTruncated ? 0x02 : 0x00) + (this.isRecurDesired ? 0x01 : 0x00));
            dst[dstIndex + OPCODE_OFFSET + 1] =
                    (byte) ((this.isRecurAvailable ? 0x80 : 0x00) + (this.isBroadcast ? 0x10 : 0x00) + (this.resultCode & 0x0F));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

        class ToStringTests {
    
            @Test
            @DisplayName("toString with valid data produces expected format")
            void testToStringWithValidData() {
                byte[] challenge = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0xFF };
                UniAddress dc = mock(UniAddress.class);
                when(dc.toString()).thenReturn("SERVER123");
    
                NtlmChallenge nc = new NtlmChallenge(challenge, dc);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

            new byte[] {
              0x01, (byte) 0xc0, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x14, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x04, 0x00,
              0x00, 0x00, 0x00, 0x14,
              0x00, 0x00, 0x00, 0x18,
              0x28, 0x00, 0x00, 0x00,
              0x00, 0x00, 0x00, 0x00,
              0x02, 0x00, 0x00, 0x00,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test successful reading of 6 bytes from the input stream.
            // The content of these bytes is not critical for this test, only that 6 bytes are read.
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes
            ByteArrayInputStream bais = new ByteArrayInputStream(data);
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            assertEquals(FILE_NOTIFY_CHANGE_ATTRIBUTES, SMBUtil.readInt4(dst3, 0));
    
            // Verify watch tree flags
            assertEquals(0x00, dst1[6]);
            assertEquals(0x01, dst2[6]);
            assertEquals(0x00, dst3[6]);
        }
    
        @Test
        @DisplayName("Test setup count initialization")
        void testSetupCountInitialization() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            byte[] params = { 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00 };
            response.readParametersWireFormat(params, 0, params.length);
    
            // Data block: 2 entries
            byte[] data = new byte[100];
            // Entry 1: SHARE1, type 0 (Disk), remark "Remark 1"
            System.arraycopy("SHARE1".getBytes(StandardCharsets.US_ASCII), 0, data, 0, 6);
            data[14] = 0x00;
            data[15] = 0x00; // type = 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            }
            impersonationLevel = 0x02; // As seen on NT :~)
            securityFlags = (byte) 0x03; // SECURITY_CONTEXT_TRACKING | SECURITY_EFFECTIVE_ONLY
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x00;
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
            // set fields via reflection
            setField(cmd, "fid", 0x1234);
            setField(cmd, "typeOfLock", (byte) 0x05);
            setField(cmd, "newOpLockLevel", (byte) 0x01);
            setField(cmd, "timeout", 3000L);
            // arrays of one lock and one unlock range
            LockingAndXRange lock = new LockingAndXRange(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top