Documentation ¶
Index ¶
Constants ¶
View Source
const SMB = "smb"
Variables ¶
This section is empty.
Functions ¶
func DetectSMBv2 ¶
Types ¶
type NTLMChallenge ¶
type NegotiateResponse ¶
type NegotiateResponse struct { SessionMsgPrefix [4]byte PacketHeader SMB2PacketHeader // Negotiate Response StructureSize uint16 SecurityMode uint16 DialectRevision uint16 Reserved uint16 // if DialectRevision is 0x0311, used as NegotiateContextCount field ServerGUID [16]byte Capabilities uint32 MaxTransactSize uint32 MaxReadSize uint32 MaxWriteSize uint32 SystemTime uint64 ServerStartTime uint64 SecurityBufferOffset uint16 SecurityBufferLength uint16 Reserved2 uint32 // if DialectRevision is 0x0311, used as NegotiateContextOffset field }
type SMB2PacketHeader ¶
type SMB2PacketHeader struct { ProtocolID [4]byte StructureSize uint16 CreditCharge uint16 Status uint32 // In SMB 3.x dialect, used as ChannelSequence & Reserved fields Command uint16 CreditRequest uint16 Flags uint32 NextCommand uint32 MessageID uint64 Reserved uint32 TreeID uint32 SessionID uint64 Signature [16]byte }
Click to show internal directories.
Click to hide internal directories.