mirror of https://github.com/daffainfo/nuclei.git
Merge pull request #266 from vzamanillo/json-output-template-name
Add template name to JSON outputdev
commit
d7451a6c90
|
@ -12,6 +12,7 @@ type jsonOutput struct {
|
|||
Matched string `json:"matched"`
|
||||
MatcherName string `json:"matcher_name,omitempty"`
|
||||
ExtractedResults []string `json:"extracted_results,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Severity string `json:"severity"`
|
||||
Author string `json:"author"`
|
||||
Description string `json:"description"`
|
||||
|
|
|
@ -18,6 +18,7 @@ func (e *DNSExecuter) writeOutputDNS(domain string, req, resp *dns.Msg, matcher
|
|||
Template: e.template.ID,
|
||||
Type: "dns",
|
||||
Matched: domain,
|
||||
Name: e.template.Info.Name,
|
||||
Severity: e.template.Info.Severity,
|
||||
Author: e.template.Info.Author,
|
||||
Description: e.template.Info.Description,
|
||||
|
|
|
@ -20,6 +20,7 @@ func (e *HTTPExecuter) writeOutputHTTP(req *requests.HTTPRequest, resp *http.Res
|
|||
Template: e.template.ID,
|
||||
Type: "http",
|
||||
Matched: URL,
|
||||
Name: e.template.Info.Name,
|
||||
Severity: e.template.Info.Severity,
|
||||
Author: e.template.Info.Author,
|
||||
Description: e.template.Info.Description,
|
||||
|
|
Loading…
Reference in New Issue