Documentation ¶
Index ¶
- func GetFileInfo(docker *client.Docker, arg string, search string) (string, error)
- func GetMimeType(docker *client.Docker, arg string) (string, error)
- type File
- func (file *File) CopyToSamples() error
- func (file *File) GetMD5(data []byte) (hMd5Sum string, err error)
- func (file *File) GetName() (name string, err error)
- func (file *File) GetSHA1(data []byte) (h1Sum string, err error)
- func (file *File) GetSHA256(data []byte) (h256Sum string, err error)
- func (file *File) GetSHA512(data []byte) (h512Sum string, err error)
- func (file *File) GetSize() (bytes int64, err error)
- func (file *File) Init()
- func (file *File) PrintFileDetails()
- func (file *File) ToJSON() []byte
- func (file *File) ToMarkdownTable()
- type Filestore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileInfo ¶
GetFileInfo start malice/fileinfo container and extract certain fields with a search string
Types ¶
type File ¶
type File struct { Name string `json:"name,omitempty" structs:"name"` Path string `json:"path,omitempty" structs:"path"` // Valid bool `json:"valid"` Size string `json:"size,omitempty" structs:"size"` // CRC32 string MD5 string `json:"md5,omitempty" structs:"md5"` SHA1 string `json:"sha1,omitempty" structs:"sha1"` SHA256 string `json:"sha256,omitempty" structs:"sha256"` SHA512 string `json:"sha512,omitempty" structs:"sha512"` }
File is a file object
func (*File) CopyToSamples ¶
CopyToSamples copys input file to samples folder
func (*File) PrintFileDetails ¶
func (file *File) PrintFileDetails()
PrintFileDetails prints file details
func (*File) ToMarkdownTable ¶
func (file *File) ToMarkdownTable()
ToMarkdownTable converts File object Markdown table
Click to show internal directories.
Click to hide internal directories.