Documentation ¶
Index ¶
Constants ¶
View Source
const ( // A yara detected malware line should be in the following format: <yara rule name> [<coma,separated,meta data>] <path>. ScanError = "error scanning" SampleScanErrorNum = 10 ErrThreshold = 0.8 // Error threshold )
Variables ¶
This section is empty.
Functions ¶
func IsErrorThresholdReached ¶
func ParseYaraScanOutput ¶
func ParseYaraScanOutput(line string) (*common.DetectedMalware, error)
Types ¶
type InvalidLineError ¶
type InvalidLineError struct {
Line string
}
func (*InvalidLineError) Error ¶
func (e *InvalidLineError) Error() string
Click to show internal directories.
Click to hide internal directories.