Class SMB2PacketData

All Implemented Interfaces:
PacketData<SMBBuffer>
Direct Known Subclasses:
SMB2DecryptedPacketData

public class SMB2PacketData extends SMBPacketData<SMB2PacketHeader>
Represents the partially deserialized SMB2Packet contents.

The SMB2 Header is always present and has a fixed layout. The packet data itself varies based on the SMB2MessageCommandCode in the header, together with the NtStatus.

  • Constructor Details

  • Method Details

    • getSequenceNumber

      public long getSequenceNumber()
    • isSuccess

      protected boolean isSuccess()
      Check whether this packetData has an success status
      Returns:
    • isIntermediateAsyncResponse

      public boolean isIntermediateAsyncResponse()
      Check whether this packet is an intermediate ASYNC response
    • isOplockBreakNotification

      public boolean isOplockBreakNotification()
      Check whether this is an SMB2_OPLOCK_BREAK Notification packet
    • isCompounded

      public boolean isCompounded()
      Check whether this Packet is part of a Compounded message
      Returns:
    • next

      public SMB2PacketData next() throws Buffer.BufferException
      Throws:
      Buffer.BufferException
    • isDecrypted

      public boolean isDecrypted()
    • toString

      public String toString()
      Overrides:
      toString in class Object