analysis

package
v0.0.0-...-9610229 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DetectionLog = ring.New(1000)

Contains the most recent 1000 events

Functions

func Log

func Log(d Detection)

logEvent writes the given event to the EventLog.

Types

type Detection

type Detection struct {
	Time      time.Time
	Level     int
	Tech      techs.Tech
	Dupe      *Detection
	Artifacts []events.LogItem
}

func Exec

func Exec(e *events.Exec) ([]*Detection, error)

func Listen

func Listen(e *events.Listen) ([]*Detection, error)

func Open

func Open(e *events.Open) ([]*Detection, error)

func Readline

func Readline(e *events.Readline) ([]*Detection, error)

func (*Detection) Brief

func (d *Detection) Brief() string

func (*Detection) Print

func (d *Detection) Print() string

type LogItem

type LogItem struct {
	Time time.Time
	Det  Detection
}

func GetAll

func GetAll() []LogItem

Jump to

Keyboard shortcuts

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