ffuf/pkg/input/input.go
Joona Hoikkala 8883aea432
New input provider --input-cmd (#40)
* 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
2019-06-17 00:42:42 +03:00

14 lines
277 B
Go

package input
import (
"github.com/ffuf/ffuf/pkg/ffuf"
)
func NewInputProviderByName(name string, conf *ffuf.Config) (ffuf.InputProvider, error) {
if name == "command" {
return NewCommandInput(conf)
} else {
// Default to wordlist
return NewWordlistInput(conf)
}
}