ffuff/pkg/ffuf/request.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

20 lines
389 B
Go

package ffuf
// Request holds the meaningful data that is passed for runner for making the query
type Request struct {
Method string
Url string
Headers map[string]string
Data []byte
Input []byte
Position int
}
func NewRequest(conf *Config) Request {
var req Request
req.Method = conf.Method
req.Url = conf.Url
req.Headers = make(map[string]string)
return req
}