mirror of
https://github.com/ffuf/ffuf
synced 2024-12-12 21:12:38 +00:00
8883aea432
* 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
14 lines
277 B
Go
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)
|
|
}
|
|
}
|