spray/pkg/config.go

43 lines
719 B
Go
Raw Normal View History

2022-09-08 15:57:17 +08:00
package pkg
import (
"github.com/antonmedv/expr/vm"
2022-09-08 15:57:17 +08:00
"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
Thread int
Wordlist []string
Timeout int
CheckPeriod int
ErrPeriod int
BreakThreshold int
Method string
Mod SprayMod
Headers http.Header
ClientType int
MatchExpr *vm.Program
FilterExpr *vm.Program
2022-12-11 00:24:28 +08:00
RecuExpr *vm.Program
OutputCh chan *Baseline
FuzzyCh chan *Baseline
Fuzzy bool
IgnoreWaf bool
2023-01-03 17:09:32 +08:00
Crawl bool
2022-09-08 15:57:17 +08:00
}