mirror of https://github.com/daffainfo/nuclei.git
fixed small logic bug in positional finite state machine
parent
0b4bb3a2f7
commit
34656d177b
|
@ -259,6 +259,7 @@ func (e *HTTPExecuter) ExecuteHTTP(p progress.IProgress, reqURL string) (result
|
||||||
result.Matches = make(map[string]interface{})
|
result.Matches = make(map[string]interface{})
|
||||||
result.Extractions = make(map[string]interface{})
|
result.Extractions = make(map[string]interface{})
|
||||||
dynamicvalues := make(map[string]interface{})
|
dynamicvalues := make(map[string]interface{})
|
||||||
|
_ = dynamicvalues
|
||||||
|
|
||||||
// verify if the URL is already being processed
|
// verify if the URL is already being processed
|
||||||
if e.bulkHTTPRequest.HasGenerator(reqURL) {
|
if e.bulkHTTPRequest.HasGenerator(reqURL) {
|
||||||
|
|
|
@ -176,10 +176,6 @@ func (gfsm *GeneratorFSM) Next(key string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if gfsm.hasPayloads() && g.state == done {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if g.positionPath+g.positionRaw >= len(gfsm.Paths)+len(gfsm.Raws) {
|
if g.positionPath+g.positionRaw >= len(gfsm.Paths)+len(gfsm.Raws) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue