tools

package
v1.8.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolSysmon   = "sysmon"
	ToolOSQueryi = "osqueryi"
)

Variables

This section is empty.

Functions

func WithExecExt

func WithExecExt(name string) string

Types

type Metadata

type Metadata struct {
	Md5    string `sod:"lower,index" json:"md5"`
	Sha1   string `sod:"lower,index" json:"sha1"`
	Sha256 string `sod:"lower,index" json:"sha256"`
	Sha512 string `sod:"lower,index" json:"sha512"`
}

type Tool

type Tool struct {
	sod.Item
	Uuid     string   `sod:"index,unique" json:"uuid"`
	OS       string   `sod:"index" json:"os"`
	Name     string   `sod:"index" json:"name"`
	Alias    string   `json:"alias"`
	Metadata Metadata `json:"metadata"`
	Binary   []byte   `json:"binary,omitempty"`
}

func New

func New(os, name, alias string, binary []byte) (t *Tool)

func (*Tool) Dump

func (t *Tool) Dump(dir string) error

func (*Tool) Filepath

func (t *Tool) Filepath(dir string) string

func (*Tool) Remove

func (t *Tool) Remove(dir string) error

func (*Tool) Update

func (t *Tool) Update(binary []byte)

func (*Tool) Validate

func (t *Tool) Validate() error

Validate function triggered by database insertion Structure will not be inserted if any error is returned by this function

Jump to

Keyboard shortcuts

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