MCPcopy
hub / github.com/dreadl0ck/netcap / ExtractFile

Method ExtractFile

decoder/stream/file/framework.go:72–72  ·  view source on GitHub ↗

ExtractFile performs the actual file extraction

(conv *core.ConversationInfo, data []byte, metadata FileMetadata)

Source from the content-addressed store, hash-verified

70
71 // ExtractFile performs the actual file extraction
72 ExtractFile(conv *core.ConversationInfo, data []byte, metadata FileMetadata) error
73
74 // ProtocolName returns the name of the protocol this extractor handles
75 ProtocolName() string

Callers 6

readResponseMethod · 0.65
readRequestMethod · 0.65
ExtractDCCDataChannelFunction · 0.65
ParseFunction · 0.65
extractFileMethod · 0.65
ExtractDataChannelFunction · 0.65

Implementers 6

HTTPFileExtractordecoder/stream/http/http_file_extracto
IRCFileExtractordecoder/stream/irc/irc_file_extractor.
MockFileExtractordecoder/stream/file/framework_test.go
MailFileExtractordecoder/stream/mail/mail_file_extracto
FTPFileExtractordecoder/stream/ftp/ftp_file_extractor.
SMBFileExtractordecoder/stream/smb/smb_file_extractor.

Calls

no outgoing calls

Tested by

no test coverage detected