mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
update
This commit is contained in:
10
WELA.ps1
10
WELA.ps1
@@ -55,11 +55,11 @@ function ShowRulesCountsByLevel {
|
|||||||
param ($usableRate, $msg)
|
param ($usableRate, $msg)
|
||||||
Write-Output $msg
|
Write-Output $msg
|
||||||
$levelColorMap = [ordered]@{
|
$levelColorMap = [ordered]@{
|
||||||
"critical" = "ff0000"
|
"critical" = "Red"
|
||||||
"high" = "ffc100"
|
"high" = "Yellow"
|
||||||
"medium" = "ffff00"
|
"medium" = "Cyan"
|
||||||
"low" = "00ff00"
|
"low" = "Green"
|
||||||
"informational" = "ffffff" # Assuming a default color for informational
|
"informational" = "White" # Assuming a default color for informational
|
||||||
}
|
}
|
||||||
$usableRate | Sort-Object { $levelColorMap.Keys.IndexOf($_.Level) } | ForEach-Object {
|
$usableRate | Sort-Object { $levelColorMap.Keys.IndexOf($_.Level) } | ForEach-Object {
|
||||||
$color = $levelColorMap[$_.Level]
|
$color = $levelColorMap[$_.Level]
|
||||||
|
|||||||
Reference in New Issue
Block a user