configuration

package
v0.0.0-...-f4a351a Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is responsible for building a new instance of Configuration.

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new builder.

func (*Builder) BaseURL

func (b *Builder) BaseURL(baseURL *url.URL) *Builder

BaseURL method allows to define a base URL.

func (*Builder) Build

func (b *Builder) Build() *Configuration

Build method returns a built earlier instance.

func (*Builder) FuzzSetFile

func (b *Builder) FuzzSetFile(fuzzSetFile *os.File) *Builder

FuzzSetFile method allows to define a file with fuzz entries.

func (*Builder) HTTPErrorCode

func (b *Builder) HTTPErrorCode(httpErrorCode uint64) *Builder

HTTPErrorCode method allows to define a HTTP error code.

func (*Builder) Headers

func (b *Builder) Headers(headers map[string]string) *Builder

Headers method allows to define HTTP headers.

func (*Builder) Methods

func (b *Builder) Methods(methods []string) *Builder

Methods method allows to define HTTP methods.

func (*Builder) OutputFile

func (b *Builder) OutputFile(outputFile string) *Builder

OutputFile method allows to define a result output file.

func (*Builder) URLResponseTimeout

func (b *Builder) URLResponseTimeout(urlResponseTimeout time.Duration) *Builder

URLResponseTimeout method allows to define a fuzzed URL response timeout.

func (*Builder) WorkerWaitPeriod

func (b *Builder) WorkerWaitPeriod(workerWaitPeriod time.Duration) *Builder

WorkerWaitPeriod method allows to define waiting period between each URL checks per worker.

func (*Builder) WorkersNumber

func (b *Builder) WorkersNumber(workersNumber uint64) *Builder

WorkersNumber method allows to define number of fuzzying workers.

type Configuration

type Configuration struct {
	// contains filtered or unexported fields
}

Configuration of the application

func (*Configuration) BaseURL

func (c *Configuration) BaseURL() url.URL

BaseURL returns a base URL of the target website.

func (*Configuration) FuzzSetFile

func (c *Configuration) FuzzSetFile() *os.File

FuzzSetFile returns a file with fuzzed relative URLs.

func (*Configuration) HTTPErrorCode

func (c *Configuration) HTTPErrorCode() uint64

HTTPErrorCode method returns a defined HTTP status error code, e.g. 404

func (*Configuration) Headers

func (c *Configuration) Headers() (result map[string]string, exists bool)

Headers method returns HTTP headers.

func (*Configuration) Methods

func (c *Configuration) Methods() []string

Methods returns unique HTTP methods.

func (*Configuration) OutputFile

func (c *Configuration) OutputFile() (result string, defined bool)

OutputFile method returns a path of the text output file.

func (*Configuration) URLResponseTimeout

func (c *Configuration) URLResponseTimeout() time.Duration

URLResponseTimeout method returns fuzzed URL response timeout.

func (*Configuration) WorkerWaitPeriod

func (c *Configuration) WorkerWaitPeriod() time.Duration

WorkerWaitPeriod returns a period of time between two fuzzed requests per worker.

func (*Configuration) WorkersNumber

func (c *Configuration) WorkersNumber() uint64

WorkersNumber returns a number of active fuzzing workers.

type Factory

type Factory struct{}

Factory allows for creating a struct representing configuration.

func NewFactory

func NewFactory() *Factory

NewFactory returns a new instance of configuration f

func (*Factory) FromCommandLine

func (f *Factory) FromCommandLine() *Configuration

FromCommandLine returns a configuration created from the command line parameters.

Jump to

Keyboard shortcuts

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