mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-08 02:02:56 +01:00
feat: verbose security
This commit is contained in:
@@ -21,7 +21,7 @@ function CountRules {
|
|||||||
$counts[$rule.level]++
|
$counts[$rule.level]++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$status = if ($filterd_rules[0].applicable) { " enabled" } else { " disabled" }
|
$status = if ($filterd_rules[0].applicable) { "enabled" } else { "disabled" }
|
||||||
$result = "$status (critical: $($counts['critical']) | high: $($counts['high']) | medium: $($counts['medium']) | low: $($counts['low']), info: $($counts['informational']))"
|
$result = "$status (critical: $($counts['critical']) | high: $($counts['high']) | medium: $($counts['medium']) | low: $($counts['low']), info: $($counts['informational']))"
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user