mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-06 10:41:21 +00:00
54 lines
1.0 KiB
Go
54 lines
1.0 KiB
Go
package pkg
|
|
|
|
import (
|
|
"github.com/antonmedv/expr/vm"
|
|
"github.com/chainreactors/words/rule"
|
|
)
|
|
|
|
type SprayMod int
|
|
|
|
const (
|
|
PathSpray SprayMod = iota + 1
|
|
HostSpray
|
|
ParamSpray
|
|
CustomSpray
|
|
)
|
|
|
|
var ModMap = map[string]SprayMod{
|
|
"path": PathSpray,
|
|
"host": HostSpray,
|
|
}
|
|
|
|
type Config struct {
|
|
BaseURL string
|
|
ProxyAddr string
|
|
Thread int
|
|
Wordlist []string
|
|
Timeout int
|
|
RateLimit int
|
|
CheckPeriod int
|
|
ErrPeriod int32
|
|
BreakThreshold int32
|
|
Method string
|
|
Mod SprayMod
|
|
Headers map[string]string
|
|
ClientType int
|
|
MatchExpr *vm.Program
|
|
FilterExpr *vm.Program
|
|
RecuExpr *vm.Program
|
|
AppendRule *rule.Program
|
|
OutputCh chan *Baseline
|
|
FuzzyCh chan *Baseline
|
|
Fuzzy bool
|
|
IgnoreWaf bool
|
|
Crawl bool
|
|
Scope []string
|
|
Active bool
|
|
Bak bool
|
|
Common bool
|
|
Retry int
|
|
RandomUserAgent bool
|
|
Random string
|
|
Index string
|
|
}
|