Skip to content

Commit

Permalink
Merge pull request #286 from vzamanillo/orange-critical
Browse files Browse the repository at this point in the history
Orange color for high, red for critical while listing available templates
  • Loading branch information
ehsandeep committed Sep 5, 2020
2 parents 8f6bfd5 + 6e85eae commit bc320d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/runner/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ import (
"github.com/projectdiscovery/nuclei/v2/pkg/workflows"
)

const fgOrange uint8 = 208

var severityMap = map[string]string{
"info": aurora.Blue("info").String(),
"low": aurora.Green("low").String(),
"medium": aurora.Yellow("medium").String(),
"high": aurora.Red("high").String(),
"critical": aurora.Red("critical").Bold().String(),
"high": aurora.Index(fgOrange, "high").String(),
"critical": aurora.Red("critical").String(),
}

// getTemplatesFor parses the specified input template definitions and returns a list of unique, absolute template paths.
Expand Down

0 comments on commit bc320d7

Please sign in to comment.