mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 11:40:13 +00:00
新增--check-only参数, 暂未实装
This commit is contained in:
parent
9439191ed4
commit
11a8b6168c
1
internal/check.go
Normal file
1
internal/check.go
Normal file
@ -0,0 +1 @@
|
||||
package internal
|
@ -52,6 +52,7 @@ type RequestOptions struct {
|
||||
Cookie string `long:"cookie"`
|
||||
Force bool `long:"force"`
|
||||
SimhashDistance int `long:"distance"`
|
||||
CheckOnly bool `long:"--check-only"`
|
||||
}
|
||||
|
||||
type MiscOptions struct {
|
||||
@ -72,19 +73,20 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
||||
}
|
||||
var err error
|
||||
r := &Runner{
|
||||
Progress: uiprogress.New(),
|
||||
Threads: opt.Threads,
|
||||
PoolSize: opt.PoolSize,
|
||||
Mod: opt.Mod,
|
||||
Timeout: opt.Timeout,
|
||||
Deadline: opt.Deadline,
|
||||
Offset: opt.Offset,
|
||||
Limit: opt.Limit,
|
||||
URLList: make(chan string),
|
||||
OutputCh: make(chan *pkg.Baseline, 100),
|
||||
FuzzyCh: make(chan *pkg.Baseline, 100),
|
||||
Fuzzy: opt.Fuzzy,
|
||||
Force: opt.Force,
|
||||
Progress: uiprogress.New(),
|
||||
Threads: opt.Threads,
|
||||
PoolSize: opt.PoolSize,
|
||||
Mod: opt.Mod,
|
||||
Timeout: opt.Timeout,
|
||||
Deadline: opt.Deadline,
|
||||
Offset: opt.Offset,
|
||||
Limit: opt.Limit,
|
||||
URLList: make(chan string),
|
||||
OutputCh: make(chan *pkg.Baseline, 100),
|
||||
FuzzyCh: make(chan *pkg.Baseline, 100),
|
||||
Fuzzy: opt.Fuzzy,
|
||||
Force: opt.Force,
|
||||
CheckOnly: opt.CheckOnly,
|
||||
}
|
||||
|
||||
err = pkg.LoadTemplates()
|
||||
|
Loading…
x
Reference in New Issue
Block a user