mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-10 11:12:58 +01:00
feat: verbose security
This commit is contained in:
@@ -233,10 +233,10 @@ System
|
|||||||
|
|
||||||
$msgLines = $msg -split "`n"
|
$msgLines = $msg -split "`n"
|
||||||
foreach ($line in $msgLines) {
|
foreach ($line in $msgLines) {
|
||||||
if ($line -match "\$(\w+)") {
|
if ($line -match '\$(\w+)') {
|
||||||
$parts = $line -split "(\$\w+)"
|
$parts = $line -split '(\$\w+)'
|
||||||
foreach ($part in $parts) {
|
foreach ($part in $parts) {
|
||||||
if ($part -match "\$(\w+)") {
|
if ($part -match '\$(\w+)') {
|
||||||
Write-Host -NoNewline $part -ForegroundColor Red
|
Write-Host -NoNewline $part -ForegroundColor Red
|
||||||
} else {
|
} else {
|
||||||
Write-Host -NoNewline $part
|
Write-Host -NoNewline $part
|
||||||
|
|||||||
Reference in New Issue
Block a user