mirror of https://github.com/daffainfo/nuclei.git
Update outdated comment
parent
a9560336f4
commit
b33a2b6d16
|
@ -244,7 +244,7 @@ func (r *Runner) RunEnumeration() {
|
||||||
p := r.progress
|
p := r.progress
|
||||||
templateCount := len(allTemplates)
|
templateCount := len(allTemplates)
|
||||||
|
|
||||||
// precompute total request count if we are executing more than one template
|
// precompute total request count
|
||||||
var totalRequests int64 = 0
|
var totalRequests int64 = 0
|
||||||
barIndex := 0
|
barIndex := 0
|
||||||
parsedTemplates := []string{}
|
parsedTemplates := []string{}
|
||||||
|
@ -256,6 +256,7 @@ func (r *Runner) RunEnumeration() {
|
||||||
barIndex++
|
barIndex++
|
||||||
template := t.(*templates.Template)
|
template := t.(*templates.Template)
|
||||||
totalRequests += template.GetHTTPRequestsCount()
|
totalRequests += template.GetHTTPRequestsCount()
|
||||||
|
// track per-template progress
|
||||||
p.SetupTemplateProgressbar(template.ID, r.inputCount*template.GetHTTPRequestsCount(), barIndex)
|
p.SetupTemplateProgressbar(template.ID, r.inputCount*template.GetHTTPRequestsCount(), barIndex)
|
||||||
parsedTemplates = append(parsedTemplates, match)
|
parsedTemplates = append(parsedTemplates, match)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue