Documentation ¶
Index ¶
- func MakeComTransaction2Error(header SMBHeader) ([]byte, error)
- func MakeComTransaction2Response(header SMBHeader) ([]byte, error)
- func MakeComTransactionResponse(header SMBHeader) ([]byte, error)
- func MakeHeaderResponse(header SMBHeader) ([]byte, error)
- func MakeNegotiateProtocolResponse(header SMBHeader) ([]byte, error)
- func ParseHeader(buffer *bytes.Buffer, header *SMBHeader) error
- func ParseParam(buffer *bytes.Buffer, param *SMBParameters) error
- func ValidateData(data []byte) (*bytes.Buffer, error)
- type ComTransaction2Error
- type ComTransaction2Response
- type ComTransactionResponse
- type Filetime
- type NegotiateProtocolRequest
- type NegotiateProtocolResponse
- type SMBData
- type SMBHeader
- type SMBParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHeaderResponse ¶
func ParseParam ¶
func ParseParam(buffer *bytes.Buffer, param *SMBParameters) error
Types ¶
type ComTransaction2Error ¶
type ComTransaction2Response ¶
type ComTransaction2Response struct { Header SMBHeader WordCount byte TotalParameterCount [2]byte TotalDataCount [2]byte Reserved1 [2]byte ParameterCount [2]byte ParameterOffset [2]byte ParameterDisplacement [2]byte DataCount [2]byte DataOffset [2]byte DataDisplacement [2]byte SetupCount byte Reserved2 byte ByteCount [2]byte Pad1 byte SearchID [2]byte SearchCount [2]byte EndofSearch [2]byte ErrorOffset [2]byte LastNameOffset [2]byte Pad2 [2]byte Data [16]byte Data1 [16]byte Data2 [16]byte Data3 [16]byte Data4 [16]byte Data5 [16]byte Data6 [16]byte Data7 [16]byte Data8 [16]byte Data9 [16]byte Data10 [16]byte Data11 [16]byte Data12 [4]byte }
type ComTransactionResponse ¶
type ComTransactionResponse struct { Header SMBHeader WordCount byte TotalParameterCount [2]byte TotalDataCount [2]byte Reserved1 [2]byte ParameterCount [2]byte ParameterOffset [2]byte ParameterDisplacement [2]byte DataCount [2]byte DataOffset [2]byte DataDisplacement [2]byte SetupCount byte Reserved2 byte }
type NegotiateProtocolRequest ¶
type NegotiateProtocolRequest struct { Header SMBHeader Param SMBParameters Data SMBData }
func ParseNegotiateProtocolRequest ¶
func ParseNegotiateProtocolRequest(buffer *bytes.Buffer, header SMBHeader) (NegotiateProtocolRequest, error)
type NegotiateProtocolResponse ¶
type NegotiateProtocolResponse struct { Header SMBHeader StructureSize [2]byte SecurityMode [2]byte DialectRevision [2]byte NegotiateContextCount [2]byte ServerGUID [16]byte Capabilities [4]byte MaxTransactSize [4]byte MaxReadSize [4]byte MaxWriteSize [4]byte SystemTime Filetime ServerStartTime Filetime SecurityBufferOffset [2]byte SecurityBufferLength [2]byte NegotiateContextOffset [4]byte }
type SMBParameters ¶
type SMBParameters struct {
WordCount byte
}
Click to show internal directories.
Click to hide internal directories.