input

package
v0.0.0-...-bf2c381 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHELL_CMD = "/bin/sh"
	SHELL_ARG = "-c"
)

Variables

This section is empty.

Functions

func NewInputProvider

func NewInputProvider(conf *ffuf.Config) (ffuf.InputProvider, ffuf.Multierror)

Types

type CommandInput

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

func NewCommandInput

func NewCommandInput(keyword string, value string, conf *ffuf.Config) (*CommandInput, error)

func (*CommandInput) Active

func (c *CommandInput) Active() bool

func (*CommandInput) Disable

func (c *CommandInput) Disable()

func (*CommandInput) Enable

func (c *CommandInput) Enable()

func (*CommandInput) IncrementPosition

func (c *CommandInput) IncrementPosition()

IncrementPosition increments the current position in the inputprovider

func (*CommandInput) Keyword

func (c *CommandInput) Keyword() string

Keyword returns the keyword assigned to this InternalInputProvider

func (*CommandInput) Next

func (c *CommandInput) Next() bool

Next will increment the cursor position, and return a boolean telling if there's iterations left

func (*CommandInput) Position

func (c *CommandInput) Position() int

Position will return the current position in the input list

func (*CommandInput) ResetPosition

func (c *CommandInput) ResetPosition()

ResetPosition will reset the current position of the InternalInputProvider

func (*CommandInput) Total

func (c *CommandInput) Total() int

Total returns the size of wordlist

func (*CommandInput) Value

func (c *CommandInput) Value() []byte

Value returns the input from command stdoutput

type MainInputProvider

type MainInputProvider struct {
	Providers []ffuf.InternalInputProvider
	Config    *ffuf.Config
	// contains filtered or unexported fields
}

func (*MainInputProvider) ActivateKeywords

func (i *MainInputProvider) ActivateKeywords(kws []string)

ActivateKeywords enables / disables wordlists based on list of active keywords

func (*MainInputProvider) AddProvider

func (i *MainInputProvider) AddProvider(provider ffuf.InputProviderConfig) error

func (*MainInputProvider) Keywords

func (i *MainInputProvider) Keywords() []string

Keywords returns a slice of all keywords in the inputprovider

func (*MainInputProvider) Next

func (i *MainInputProvider) Next() bool

Next will increment the cursor position, and return a boolean telling if there's inputs left

func (*MainInputProvider) Position

func (i *MainInputProvider) Position() int

Position will return the current position of progress

func (*MainInputProvider) Reset

func (i *MainInputProvider) Reset()

Reset resets all the inputproviders and counters

func (*MainInputProvider) Total

func (i *MainInputProvider) Total() int

Total returns the amount of input combinations available

func (*MainInputProvider) Value

func (i *MainInputProvider) Value() map[string][]byte

Value returns a map of inputs for keywords

type WordlistInput

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

func NewWordlistInput

func NewWordlistInput(keyword string, value string, conf *ffuf.Config) (*WordlistInput, error)

func (*WordlistInput) Active

func (w *WordlistInput) Active() bool

Active returns boolean if the inputprovider is active

func (*WordlistInput) Disable

func (w *WordlistInput) Disable()

Disable disables the inputprovider

func (*WordlistInput) Enable

func (w *WordlistInput) Enable()

Enable sets the inputprovider as active

func (*WordlistInput) IncrementPosition

func (w *WordlistInput) IncrementPosition()

IncrementPosition will increment the current position in the inputprovider data slice

func (*WordlistInput) Keyword

func (w *WordlistInput) Keyword() string

Keyword returns the keyword assigned to this InternalInputProvider

func (*WordlistInput) Next

func (w *WordlistInput) Next() bool

Next will return a boolean telling if there's words left in the list

func (*WordlistInput) Position

func (w *WordlistInput) Position() int

Position will return the current position in the input list

func (*WordlistInput) ResetPosition

func (w *WordlistInput) ResetPosition()

ResetPosition resets the position back to beginning of the wordlist.

func (*WordlistInput) Total

func (w *WordlistInput) Total() int

Total returns the size of wordlist

func (*WordlistInput) Value

func (w *WordlistInput) Value() []byte

Value returns the value from wordlist at current cursor position

Jump to

Keyboard shortcuts

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