mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-22 08:53:08 +01:00
feat: verbose security
This commit is contained in:
@@ -235,6 +235,6 @@ System
|
||||
$expandedMsg = $ExecutionContext.InvokeCommand.ExpandString($msg)
|
||||
|
||||
# 変数部分を色付きで出力
|
||||
$coloredMsg = $msg -replace '\$(\w+)', { param($match) "`e[31m$match`e[0m" }
|
||||
$coloredMsg = $expandedMsg -replace '\$(\w+)', { param($match) "`e[31m$match`e[0m" }
|
||||
Write-Host $coloredMsg
|
||||
}
|
||||
Reference in New Issue
Block a user