mirror of https://github.com/daffainfo/nuclei.git
Added enhancements for http variables support (#2223)
parent
8040b66370
commit
f3de611b49
|
@ -222,6 +222,10 @@ func (request *Request) executeTurboHTTP(reqURL string, dynamicValues, previous
|
||||||
|
|
||||||
// ExecuteWithResults executes the final request on a URL
|
// ExecuteWithResults executes the final request on a URL
|
||||||
func (request *Request) ExecuteWithResults(reqURL string, dynamicValues, previous output.InternalEvent, callback protocols.OutputEventCallback) error {
|
func (request *Request) ExecuteWithResults(reqURL string, dynamicValues, previous output.InternalEvent, callback protocols.OutputEventCallback) error {
|
||||||
|
if request.Pipeline || request.Race && request.RaceNumberRequests > 0 || request.Threads > 0 {
|
||||||
|
variablesMap := request.options.Variables.Evaluate(generators.MergeMaps(dynamicValues, previous))
|
||||||
|
dynamicValues = generators.MergeMaps(variablesMap, dynamicValues)
|
||||||
|
}
|
||||||
// verify if pipeline was requested
|
// verify if pipeline was requested
|
||||||
if request.Pipeline {
|
if request.Pipeline {
|
||||||
return request.executeTurboHTTP(reqURL, dynamicValues, previous, callback)
|
return request.executeTurboHTTP(reqURL, dynamicValues, previous, callback)
|
||||||
|
@ -229,7 +233,7 @@ func (request *Request) ExecuteWithResults(reqURL string, dynamicValues, previou
|
||||||
|
|
||||||
// verify if a basic race condition was requested
|
// verify if a basic race condition was requested
|
||||||
if request.Race && request.RaceNumberRequests > 0 {
|
if request.Race && request.RaceNumberRequests > 0 {
|
||||||
return request.executeRaceRequest(reqURL, previous, callback)
|
return request.executeRaceRequest(reqURL, dynamicValues, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify if parallel elaboration was requested
|
// verify if parallel elaboration was requested
|
||||||
|
|
Loading…
Reference in New Issue