mirror of https://github.com/daffainfo/nuclei.git
Merge branch 'bugfix-engine-rework' into enumeration-progressbar-next
commit
c967997a5a
|
@ -106,6 +106,11 @@ func (e *HTTPExecuter) ExecuteHTTP(p *progress.Progress, URL string) (result Res
|
|||
result.Extractions = make(map[string]interface{})
|
||||
dynamicvalues := make(map[string]interface{})
|
||||
|
||||
// verify if the URL is already being processed
|
||||
if e.bulkHttpRequest.HasGenerator(URL) {
|
||||
return
|
||||
}
|
||||
|
||||
remaining := e.template.GetHTTPRequestsCount()
|
||||
|
||||
e.bulkHttpRequest.CreateGenerator(URL)
|
||||
|
|
|
@ -128,6 +128,10 @@ func (r *BulkHTTPRequest) CreateGenerator(URL string) {
|
|||
r.gsfm.Add(URL)
|
||||
}
|
||||
|
||||
func (r *BulkHTTPRequest) HasGenerator(URL string) bool {
|
||||
return r.gsfm.Has(URL)
|
||||
}
|
||||
|
||||
func (r *BulkHTTPRequest) ReadOne(URL string) {
|
||||
r.gsfm.ReadOne(URL)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue