* 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
20 lines
389 B
Go
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
|
|
}
|