util

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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 IsErrorThresholdReached(errorCount, allCount uint) bool

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

type ScanResultLine

type ScanResultLine struct {
	RuleName string
	Metadata map[string]string
	Path     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL