* New input provider: command * Set env var and move to Windows and POSIX constants for shell instead of CLI flag. * Display position instead of input payload when --input-cmd is used * Update README * Fix README and flags help * Add an example to README
32 lines
754 B
Go
32 lines
754 B
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 []byte) (Request, error)
|
|
Execute(req *Request) (Response, error)
|
|
}
|
|
|
|
//InputProvider interface handles the input data for RunnerProvider
|
|
type InputProvider interface {
|
|
Next() bool
|
|
Position() int
|
|
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)
|
|
}
|