Documentation ¶
Index ¶
- Constants
- func NewInputProvider(conf *ffuf.Config) (ffuf.InputProvider, ffuf.Multierror)
- func NewWordlistInputProvider(conf *ffuf.Config, wl *WordlistInput) (ffuf.InputProvider, ffuf.Multierror)
- type CommandInput
- func (c *CommandInput) Active() bool
- func (c *CommandInput) Disable()
- func (c *CommandInput) Enable()
- func (c *CommandInput) IncrementPosition()
- func (c *CommandInput) Keyword() string
- func (c *CommandInput) Next() bool
- func (c *CommandInput) Position() int
- func (c *CommandInput) ResetPosition()
- func (c *CommandInput) SetPosition(pos int)
- func (c *CommandInput) Total() int
- func (c *CommandInput) Value() []byte
- type MainInputProvider
- func (i *MainInputProvider) ActivateKeywords(kws []string)
- func (i *MainInputProvider) AddProvider(provider ffuf.InputProviderConfig) error
- func (i *MainInputProvider) Keywords() []string
- func (i *MainInputProvider) Next() bool
- func (i *MainInputProvider) Position() int
- func (i *MainInputProvider) Reset()
- func (i *MainInputProvider) SetPosition(pos int)
- func (i *MainInputProvider) Total() int
- func (i *MainInputProvider) Value() map[string][]byte
- type WordlistInput
- func (w *WordlistInput) Active() bool
- func (w *WordlistInput) Disable()
- func (w *WordlistInput) Enable()
- func (w *WordlistInput) IncrementPosition()
- func (w *WordlistInput) Keyword() string
- func (w *WordlistInput) Next() bool
- func (w *WordlistInput) Position() int
- func (w *WordlistInput) ResetPosition()
- func (w *WordlistInput) SetPosition(pos int)
- func (w *WordlistInput) Total() int
- func (w *WordlistInput) Value() []byte
- type WordlistInputProvider
- func (i *WordlistInputProvider) ActivateKeywords(kws []string)
- func (i *WordlistInputProvider) AddProvider(provider ffuf.InputProviderConfig) error
- func (i *WordlistInputProvider) Keywords() []string
- func (i *WordlistInputProvider) Next() bool
- func (i *WordlistInputProvider) Position() int
- func (i *WordlistInputProvider) Reset()
- func (i *WordlistInputProvider) SetPosition(pos int)
- func (i *WordlistInputProvider) Total() int
- func (i *WordlistInputProvider) Value() map[string][]byte
Constants ¶
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)
func NewWordlistInputProvider ¶
func NewWordlistInputProvider(conf *ffuf.Config, wl *WordlistInput) (ffuf.InputProvider, ffuf.Multierror)
Types ¶
type CommandInput ¶
type CommandInput struct {
// contains filtered or unexported fields
}
func NewCommandInput ¶
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) SetPosition ¶
func (c *CommandInput) SetPosition(pos int)
SetPosition will set the current position of the inputprovider
func (*CommandInput) Value ¶
func (c *CommandInput) Value() []byte
Value returns the input from command stdoutput
type MainInputProvider ¶
type MainInputProvider struct { Providers []ffuf.InternalInputProvider Encoders map[string]*pencode.Chain 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) SetPosition ¶
func (i *MainInputProvider) SetPosition(pos int)
SetPosition will reset the MainInputProvider to a specific position
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 (*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) SetPosition ¶
func (w *WordlistInput) SetPosition(pos int)
SetPosition sets the current position of the inputprovider
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
type WordlistInputProvider ¶
type WordlistInputProvider struct { Providers []ffuf.InternalInputProvider Encoders map[string]*pencode.Chain Config *ffuf.Config // contains filtered or unexported fields }
func (*WordlistInputProvider) ActivateKeywords ¶
func (i *WordlistInputProvider) ActivateKeywords(kws []string)
ActivateKeywords enables / disables wordlists based on list of active keywords
func (*WordlistInputProvider) AddProvider ¶
func (i *WordlistInputProvider) AddProvider(provider ffuf.InputProviderConfig) error
func (*WordlistInputProvider) Keywords ¶
func (i *WordlistInputProvider) Keywords() []string
Keywords returns a slice of all keywords in the inputprovider
func (*WordlistInputProvider) Next ¶
func (i *WordlistInputProvider) Next() bool
Next will increment the cursor position, and return a boolean telling if there's inputs left
func (*WordlistInputProvider) Position ¶
func (i *WordlistInputProvider) Position() int
Position will return the current position of progress
func (*WordlistInputProvider) Reset ¶
func (i *WordlistInputProvider) Reset()
Reset resets all the inputproviders and counters
func (*WordlistInputProvider) SetPosition ¶
func (i *WordlistInputProvider) SetPosition(pos int)
SetPosition will reset the MainInputProvider to a specific position
func (*WordlistInputProvider) Total ¶
func (i *WordlistInputProvider) Total() int
Total returns the amount of input combinations available
func (*WordlistInputProvider) Value ¶
func (i *WordlistInputProvider) Value() map[string][]byte
Value returns a map of inputs for keywords