mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-10-12 01:05:28 +02:00
feat: verbose security
This commit is contained in:
1 parent
7d713c068b
commit
8f1dacebbc
1 file changed
+10
-9
@@ -234,15 +234,16 @@ System
|
||||
$msgLines = $msg -split "`n"
|
||||
foreach ($line in $msgLines) {
|
||||
if ($line -match '.*disabled.*') {
|
||||
$parts = $line -split '(disabled.*\))'
|
||||
foreach ($part in $parts) {
|
||||
if ($part -match '.*disabled.*$') {
|
||||
Write-Host -NoNewline $part -ForegroundColor Red
|
||||
} else {
|
||||
Write-Host -NoNewline $part
|
||||
}
|
||||
}
|
||||
Write-Host ""
|
||||
Write-Host $line -ForegroundColor Red
|
||||
# $parts = $line -split '(disabled.*\))'
|
||||
# foreach ($part in $parts) {
|
||||
# if ($part -match '.*disabled.*$') {
|
||||
# Write-Host -NoNewline $part -ForegroundColor Red
|
||||
# } else {
|
||||
# Write-Host -NoNewline $part
|
||||
# }
|
||||
# }
|
||||
# Write-Host ""
|
||||
} else {
|
||||
Write-Host $line
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user