Documentation
¶
Index ¶
- Variables
- func ResetHTTPStore()
- type HTTPFileExtractor
- func (h *HTTPFileExtractor) DescribeFile(handle *file.FileHandle) string
- func (h *HTTPFileExtractor) ExtractFile(conv *core.ConversationInfo, data []byte, metadata file.FileMetadata) error
- func (h *HTTPFileExtractor) GetFileHandle(conv *core.ConversationInfo, isOrigin bool, depth int) string
- func (h *HTTPFileExtractor) ProtocolName() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder = &decoder.StreamDecoder{ Type: types.Type_NC_HTTP, Name: "HTTP", Description: "The Hypertext Transfer Protocol is powering the world wide web", PostInit: func(sd *decoder.StreamDecoder) error { var err error httpLog, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "http", decoderconfig.Instance.Debug, ) return err }, CanDecode: func(client, server []byte) bool { return containsHTTPProtocolName(server) && containsHTTPMethod(client) }, DeInit: func(sd *decoder.StreamDecoder) error { return httpLog.Sync() }, Factory: &httpReader{}, Typ: core.All, }
Decoder for protocol analysis and writing audit records to disk.
Functions ¶
func ResetHTTPStore ¶ added in v0.7.6
func ResetHTTPStore()
ResetHTTPStore clears the HTTP meta store This should be called when resetting state between processing different files
Types ¶
type HTTPFileExtractor ¶ added in v0.9.0
type HTTPFileExtractor struct{}
HTTPFileExtractor implements file extraction for HTTP transfers
func (*HTTPFileExtractor) DescribeFile ¶ added in v0.9.0
func (h *HTTPFileExtractor) DescribeFile(handle *file.FileHandle) string
DescribeFile returns a human-readable description of the HTTP file transfer
func (*HTTPFileExtractor) ExtractFile ¶ added in v0.9.0
func (h *HTTPFileExtractor) ExtractFile(conv *core.ConversationInfo, data []byte, metadata file.FileMetadata) error
ExtractFile performs HTTP file extraction with enhanced metadata
func (*HTTPFileExtractor) GetFileHandle ¶ added in v0.9.0
func (h *HTTPFileExtractor) GetFileHandle(conv *core.ConversationInfo, isOrigin bool, depth int) string
GetFileHandle generates a unique identifier for an HTTP file transfer
func (*HTTPFileExtractor) ProtocolName ¶ added in v0.9.0
func (h *HTTPFileExtractor) ProtocolName() string
ProtocolName returns the protocol name
Click to show internal directories.
Click to hide internal directories.