Skip to content

Commit

Permalink
Merge pull request #266 from vzamanillo/json-output-template-name
Browse files Browse the repository at this point in the history
Add template name to JSON output
  • Loading branch information
ehsandeep committed Aug 30, 2020
2 parents d0525e4 + e774104 commit d7451a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/executer/http_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions pkg/executer/output_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pkg/executer/output_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7451a6

Please sign in to comment.