Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 230 for SMBUtil (0.04 sec)

  1. src/main/java/jcifs/smb/NtlmContext.java

                    throw new CIFSException("Failed to encrypt MIC", e);
                }
            }
    
            final byte[] sig = new byte[16];
            SMBUtil.writeInt4(1, sig, 0); // version
            System.arraycopy(trunc, 0, sig, 4, 8); // checksum
            SMBUtil.writeInt4(seqNum, sig, 12); // seqNum
    
            return sig;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/dtyp/ACE.java

        public int decode(final byte[] buf, int bi, final int len) {
            this.allow = buf[bi] == (byte) 0x00;
            bi++;
            this.flags = buf[bi++] & 0xFF;
            final int size = SMBUtil.readInt2(buf, bi);
            bi += 2;
            this.access = SMBUtil.readInt4(buf, bi);
            bi += 4;
            this.sid = new SID(buf, bi);
            return size;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

            final int start = dstIndex;
            SMBUtil.writeInt2(32, dst, dstIndex);
            SMBUtil.writeInt2(this.notifyFlags, dst, dstIndex + 2);
            dstIndex += 4;
    
            SMBUtil.writeInt4(this.outputBufferLength, dst, dstIndex);
            dstIndex += 4;
    
            System.arraycopy(this.fileId, 0, dst, dstIndex, 16);
            dstIndex += 16;
    
            SMBUtil.writeInt4(this.completionFilter, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                assertEquals(0, SMBUtil.readInt2(buffer, 72));
    
                // Verify input buffer length (should be 0 when no input buffer)
                assertEquals(0, SMBUtil.readInt4(buffer, 76));
    
                // Verify additional information
                assertEquals(0x12345678, SMBUtil.readInt4(buffer, 80));
    
                // Verify query flags
                assertEquals(0xABCDEF00, SMBUtil.readInt4(buffer, 84));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            byte[] buffer = new byte[100];
            // Write non-aligned next entry offset (not divisible by 4)
            SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes
            SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4);
            SMBUtil.writeInt4(8, buffer, 8); // file name length
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.mode, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.offset, dst, dstIndex);
            dstIndex += 4;
            return dstIndex - start;
        }
    
        /**
         * {@inheritDoc}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.sid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxItems, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.informationLevel, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.resumeKey, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.tflags, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

            final int start = dstIndex;
            SMBUtil.writeInt2(9, dst, dstIndex);
            SMBUtil.writeInt2(this.treeFlags, dst, dstIndex + 2);
            dstIndex += 4;
    
            final byte[] data = this.path.getBytes(StandardCharsets.UTF_16LE);
            final int offsetOffset = dstIndex;
            SMBUtil.writeInt2(data.length, dst, dstIndex + 2);
            dstIndex += 4;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComClose.java

    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.Request;
    import jcifs.internal.smb1.SMB1SigningDigest;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 Close file request message.
     *
     * This command is used to close a file that was previously opened
     * with an Open command.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.internal.smb1.trans;
    
    import jcifs.Configuration;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 transaction subcommand for peeking at data in a named pipe.
     *
     * This class implements the TRANS_PEEK_NAMED_PIPE transaction which allows
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top