spray/pkg/config.go

37 lines
578 B
Go
Raw Normal View History

2022-09-08 15:57:17 +08:00
package pkg
import (
"net/http"
)
type SprayMod int
const (
PathSpray SprayMod = iota + 1
HostSpray
ParamSpray
CustomSpray
)
2022-09-15 19:27:07 +08:00
var ModMap = map[string]SprayMod{
"path": PathSpray,
"host": HostSpray,
}
2022-09-08 15:57:17 +08:00
type Config struct {
BaseURL string
Wordlist []string
Thread int
Timeout int
CheckPeriod int
ErrPeriod int
BreakThreshold int
Method string
Mod SprayMod
Headers http.Header
ClientType int
Fns []func(string) string
OutputCh chan *Baseline
FuzzyCh chan *Baseline
2022-09-08 15:57:17 +08:00
}