adding missing result bool

dev
Mzack9999 2020-07-25 20:45:31 +02:00
parent 5fa309cb82
commit c05cf9f8c6
2 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,7 @@ func (e *DNSExecuter) ExecuteDNS(URL string) (result Result) {
// write the first output then move to next matcher. // write the first output then move to next matcher.
if matcherCondition == matchers.ORCondition && len(e.dnsRequest.Extractors) == 0 { if matcherCondition == matchers.ORCondition && len(e.dnsRequest.Extractors) == 0 {
e.writeOutputDNS(domain, matcher, nil) e.writeOutputDNS(domain, matcher, nil)
result.GotResults = true
} }
} }
} }

View File

@ -191,6 +191,7 @@ func (e *HTTPExecuter) handleHTTP(URL string, request *requests.HttpRequest, dyn
// probably redundant but ensures we snapshot current payload values when matchers are valid // probably redundant but ensures we snapshot current payload values when matchers are valid
result.Meta = request.Meta result.Meta = request.Meta
e.writeOutputHTTP(request, resp, body, matcher, nil) e.writeOutputHTTP(request, resp, body, matcher, nil)
result.GotResults = true
} }
} }
} }
@ -214,6 +215,7 @@ func (e *HTTPExecuter) handleHTTP(URL string, request *requests.HttpRequest, dyn
// AND or if we have extractors for the mechanism too. // AND or if we have extractors for the mechanism too.
if len(e.bulkHttpRequest.Extractors) > 0 || matcherCondition == matchers.ANDCondition { if len(e.bulkHttpRequest.Extractors) > 0 || matcherCondition == matchers.ANDCondition {
e.writeOutputHTTP(request, resp, body, nil, extractorResults) e.writeOutputHTTP(request, resp, body, nil, extractorResults)
result.GotResults = true
} }
return nil return nil