* Multiple wordlist support * Display error correctly if wordlist file could not be opened * Add back the redirect location * Support multiple keywords in HTML output and fix wordlist positioning * Support multiple wordlists for md output * Support multiple keywords in CSV output * Improve output for multi keyword runs * Add changelog entry * Switch the wordlist filename <-> keyword around to allow tab completion * Fix the usage example in README
43 lines
1.0 KiB
Go
43 lines
1.0 KiB
Go
package ffuf
|
|
|
|
//FilterProvider is a generic interface for both Matchers and Filters
|
|
type FilterProvider interface {
|
|
Filter(response *Response) (bool, error)
|
|
Repr() string
|
|
}
|
|
|
|
//RunnerProvider is an interface for request executors
|
|
type RunnerProvider interface {
|
|
Prepare(input map[string][]byte) (Request, error)
|
|
Execute(req *Request) (Response, error)
|
|
}
|
|
|
|
//InputProvider interface handles the input data for RunnerProvider
|
|
type InputProvider interface {
|
|
AddProvider(InputProviderConfig) error
|
|
Next() bool
|
|
Position() int
|
|
Value() map[string][]byte
|
|
Total() int
|
|
}
|
|
|
|
//InternalInputProvider interface handles providing input data to InputProvider
|
|
type InternalInputProvider interface {
|
|
Keyword() string
|
|
Next() bool
|
|
Position() int
|
|
ResetPosition()
|
|
Value() []byte
|
|
Total() int
|
|
}
|
|
|
|
//OutputProvider is responsible of providing output from the RunnerProvider
|
|
type OutputProvider interface {
|
|
Banner() error
|
|
Finalize() error
|
|
Progress(status Progress)
|
|
Error(errstring string)
|
|
Warning(warnstring string)
|
|
Result(resp Response)
|
|
}
|