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"`
|
Matched string `json:"matched"`
|
||||||
MatcherName string `json:"matcher_name,omitempty"`
|
MatcherName string `json:"matcher_name,omitempty"`
|
||||||
ExtractedResults []string `json:"extracted_results,omitempty"`
|
ExtractedResults []string `json:"extracted_results,omitempty"`
|
||||||
|
Name string `json:"name"`
|
||||||
Severity string `json:"severity"`
|
Severity string `json:"severity"`
|
||||||
Author string `json:"author"`
|
Author string `json:"author"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
|
@ -18,6 +18,7 @@ func (e *DNSExecuter) writeOutputDNS(domain string, req, resp *dns.Msg, matcher
|
||||||
Template: e.template.ID,
|
Template: e.template.ID,
|
||||||
Type: "dns",
|
Type: "dns",
|
||||||
Matched: domain,
|
Matched: domain,
|
||||||
|
Name: e.template.Info.Name,
|
||||||
Severity: e.template.Info.Severity,
|
Severity: e.template.Info.Severity,
|
||||||
Author: e.template.Info.Author,
|
Author: e.template.Info.Author,
|
||||||
Description: e.template.Info.Description,
|
Description: e.template.Info.Description,
|
||||||
|
|
|
@ -20,6 +20,7 @@ func (e *HTTPExecuter) writeOutputHTTP(req *requests.HTTPRequest, resp *http.Res
|
||||||
Template: e.template.ID,
|
Template: e.template.ID,
|
||||||
Type: "http",
|
Type: "http",
|
||||||
Matched: URL,
|
Matched: URL,
|
||||||
|
Name: e.template.Info.Name,
|
||||||
Severity: e.template.Info.Severity,
|
Severity: e.template.Info.Severity,
|
||||||
Author: e.template.Info.Author,
|
Author: e.template.Info.Author,
|
||||||
Description: e.template.Info.Description,
|
Description: e.template.Info.Description,
|
||||||
|
|
Loading…
Reference in New Issue