mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-25 00:15:24 +00:00
Merge pull request #1148 from projectdiscovery/uniform-json
Uniform JSON output
This commit is contained in:
commit
dbbaf8da1a
@ -59,15 +59,15 @@ type InternalWrappedEvent struct {
|
||||
// ResultEvent is a wrapped result event for a single nuclei output.
|
||||
type ResultEvent struct {
|
||||
// TemplateID is the ID of the template for the result.
|
||||
TemplateID string `json:"templateID"`
|
||||
TemplateID string `json:"template-id"`
|
||||
// TemplatePath is the path of template
|
||||
TemplatePath string `json:"-"`
|
||||
// Info contains information block of the template for the result.
|
||||
Info model.Info `json:"info,inline"`
|
||||
// MatcherName is the name of the matcher matched if any.
|
||||
MatcherName string `json:"matcher_name,omitempty"`
|
||||
MatcherName string `json:"matcher-name,omitempty"`
|
||||
// ExtractorName is the name of the extractor matched if any.
|
||||
ExtractorName string `json:"extractor_name,omitempty"`
|
||||
ExtractorName string `json:"extractor-name,omitempty"`
|
||||
// Type is the type of the result event.
|
||||
Type string `json:"type"`
|
||||
// Host is the host input on which match was found.
|
||||
@ -75,9 +75,9 @@ type ResultEvent struct {
|
||||
// Path is the path input on which match was found.
|
||||
Path string `json:"path,omitempty"`
|
||||
// Matched contains the matched input in its transformed form.
|
||||
Matched string `json:"matched,omitempty"`
|
||||
Matched string `json:"matched-at,omitempty"`
|
||||
// ExtractedResults contains the extraction result from the inputs.
|
||||
ExtractedResults []string `json:"extracted_results,omitempty"`
|
||||
ExtractedResults []string `json:"extracted-results,omitempty"`
|
||||
// Request is the optional, dumped request for the match.
|
||||
Request string `json:"request,omitempty"`
|
||||
// Response is the optional, dumped response for the match.
|
||||
@ -92,7 +92,7 @@ type ResultEvent struct {
|
||||
Interaction *server.Interaction `json:"interaction,omitempty"`
|
||||
// CURLCommand is an optional curl command to reproduce the request
|
||||
// Only applicable if the report is for HTTP.
|
||||
CURLCommand string `json:"curl_command,omitempty"`
|
||||
CURLCommand string `json:"curl-command,omitempty"`
|
||||
FileToIndexPosition map[string]int `json:"-"`
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user