output

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TERMINAL_CLEAR_LINE = "\r\x1b[2K"
	ANSI_CLEAR          = "\x1b[0m"
	ANSI_RED            = "\x1b[31m"
	ANSI_GREEN          = "\x1b[32m"
	ANSI_BLUE           = "\x1b[34m"
	ANSI_YELLOW         = "\x1b[33m"
)
View Source
const (

)

Variables

This section is empty.

Functions

func NewOutputProviderByName

func NewOutputProviderByName(name string, conf *ffuf.Config) ffuf.OutputProvider

Types

type JsonResult

type JsonResult struct {
	Input            map[string]string `json:"input"`
	Position         int               `json:"position"`
	StatusCode       int64             `json:"status"`
	ContentLength    int64             `json:"length"`
	ContentWords     int64             `json:"words"`
	ContentLines     int64             `json:"lines"`
	ContentType      string            `json:"content-type"`
	RedirectLocation string            `json:"redirectlocation"`
	Duration         time.Duration     `json:"duration"`
	ResultFile       string            `json:"resultfile"`
	Url              string            `json:"url"`
	Host             string            `json:"host"`
}

type Stdoutput

type Stdoutput struct {
	Results        []ffuf.Result
	CurrentResults []ffuf.Result
	// contains filtered or unexported fields
}

func NewStdoutput

func NewStdoutput(conf *ffuf.Config) *Stdoutput

func (*Stdoutput) Banner

func (s *Stdoutput) Banner()

func (*Stdoutput) Cycle

func (s *Stdoutput) Cycle()

Cycle moves the CurrentResults to Results and resets the results slice

func (*Stdoutput) Error

func (s *Stdoutput) Error(errstring string)

func (*Stdoutput) Finalize

func (s *Stdoutput) Finalize() error

Finalize gets run after all the ffuf jobs are completed

func (*Stdoutput) GetCurrentResults

func (s *Stdoutput) GetCurrentResults() []ffuf.Result

GetResults returns the result slice

func (*Stdoutput) Info

func (s *Stdoutput) Info(infostring string)

func (*Stdoutput) PrintResult

func (s *Stdoutput) PrintResult(res ffuf.Result)

func (*Stdoutput) Progress

func (s *Stdoutput) Progress(status ffuf.Progress)

func (*Stdoutput) Raw

func (s *Stdoutput) Raw(output string)

func (*Stdoutput) Reset

func (s *Stdoutput) Reset()

Reset resets the result slice

func (*Stdoutput) Result

func (s *Stdoutput) Result(resp ffuf.Response)

func (*Stdoutput) SaveFile

func (s *Stdoutput) SaveFile(filename, format string) error

SaveFile saves the current results to a file of a given type

func (*Stdoutput) SetCurrentResults

func (s *Stdoutput) SetCurrentResults(results []ffuf.Result)

SetResults sets the result slice

func (*Stdoutput) Warning

func (s *Stdoutput) Warning(warnstring string)

Jump to

Keyboard shortcuts

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