mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 19:50:18 +00:00
优化初始化信息输出
This commit is contained in:
parent
5dddf1933c
commit
e48390a4be
@ -183,7 +183,7 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
logs.Log.Importantf("load %d word from %s", len(dicts[i]), f)
|
||||
logs.Log.Importantf("Loaded %d word from %s", len(dicts[i]), f)
|
||||
}
|
||||
|
||||
if opt.Word == "" {
|
||||
@ -213,6 +213,8 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
logs.Log.Importantf("Parsed %d words by %s", len(r.Wordlist), opt.Word)
|
||||
|
||||
if r.Limit == 0 {
|
||||
if r.CheckOnly {
|
||||
r.Limit = len(r.URLList)
|
||||
@ -258,7 +260,7 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
||||
return s
|
||||
})
|
||||
}
|
||||
|
||||
logs.Log.Importantf("Loaded %d dictionaries and %d decorators", len(opt.Dictionaries), len(r.Fns))
|
||||
// prepare header
|
||||
for _, h := range opt.Headers {
|
||||
i := strings.Index(h, ":")
|
||||
|
Loading…
x
Reference in New Issue
Block a user