generator

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LOGGER_NAME_AFL = "afl_fuzz_logs"

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Category string
	// contains filtered or unexported fields
}

func New

func New(category string) *Generator

New creates a new generator for a fuzzer of a given category.

func (*Generator) Clear

func (g *Generator) Clear() error

Clear removes the previous fuzzing sessions data and any previously used binaries.

func (*Generator) DownloadSeedFiles

func (g *Generator) DownloadSeedFiles(storageClient fstorage.FuzzerGCSClient) error

DownloadSeedFiles downloads the seed files stored in Google Storage to be used by afl-fuzz. It places them in config.Generator.FuzzSamples/[category] after cleaning the folder out. It returns an error on failure.

func (*Generator) Start

func (g *Generator) Start(ctx context.Context) error

Start starts up 1 goroutine running a "master" afl-fuzz and n-1 "slave" afl-fuzz processes, where n is specified by config.Generator.NumFuzzProcesses. Output goes to config.Generator.AflOutputPath/[category].

func (*Generator) Stop

func (g *Generator) Stop()

Stop terminates all afl-fuzz processes that were spawned, logging any errors. It also sets some key metrics to 0, so the graphs at mon.skia.org reflect the stoppage.

Jump to

Keyboard shortcuts

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