mirror of https://github.com/daffainfo/nuclei.git
added epss-percentile field under classification (#3911)
* added epss-percentile field under classification * lint fixdev
parent
28f6c37974
commit
9a44deb9e1
|
@ -76,8 +76,6 @@ func init() {
|
|||
}
|
||||
}
|
||||
|
||||
var idRegex = regexp.MustCompile("id: ([C|c][V|v][E|e]-[0-9]+-[0-9]+)")
|
||||
|
||||
type options struct {
|
||||
input string
|
||||
errorLogFile string
|
||||
|
|
|
@ -207,6 +207,7 @@ func tryCollectConditionsMatchinfo(template *templates.Template) map[string]inte
|
|||
parameters["cwe_id"] = template.Info.Classification.CWEID.ToSlice()
|
||||
parameters["cpe"] = template.Info.Classification.CPE
|
||||
parameters["epss_score"] = template.Info.Classification.EPSSScore
|
||||
parameters["epss_percentile"] = template.Info.Classification.EPSSPercentile
|
||||
}
|
||||
|
||||
if template.Type() == types.HTTPProtocol {
|
||||
|
|
|
@ -101,6 +101,11 @@ type Classification struct {
|
|||
// - value: "\"0.42509\""
|
||||
EPSSScore float64 `json:"epss-score,omitempty" yaml:"epss-score,omitempty" jsonschema:"title=epss score for the template,description=EPSS Score for the template,example=0.42509"`
|
||||
// description: |
|
||||
// EPSS Percentile for the template.
|
||||
// examples:
|
||||
// - value: "\"0.42509\""
|
||||
EPSSPercentile float64 `json:"epss-percentile,omitempty" yaml:"epss-percentile,omitempty" jsonschema:"title=epss percentile for the template,description=EPSS Percentile for the template,example=0.42509"`
|
||||
// description: |
|
||||
// CPE for the template.
|
||||
// examples:
|
||||
// - value: "\"cpe:/a:vendor:product:version\""
|
||||
|
|
Loading…
Reference in New Issue