mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
feat: update WELA.ps1 to display audit results in GUI format
This commit is contained in:
5
WELA.ps1
5
WELA.ps1
@@ -5173,9 +5173,6 @@ function AuditLogSetting {
|
|||||||
}
|
}
|
||||||
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, DefaultSetting, CurrentSetting, RecommendedSetting, Volume, Note | Export-Csv -Path "WELA-Audit-Result.csv" -NoTypeInformation
|
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, DefaultSetting, CurrentSetting, RecommendedSetting, Volume, Note | Export-Csv -Path "WELA-Audit-Result.csv" -NoTypeInformation
|
||||||
Write-Output "Audit check result saved to: WELA-Audit-Result.csv"
|
Write-Output "Audit check result saved to: WELA-Audit-Result.csv"
|
||||||
} elseif ($outType -eq "gui") {
|
|
||||||
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, DefaultSetting, CurrentSetting, RecommendedSetting, Volume, Note | Out-GridView -Title "WELA Audit Result"
|
|
||||||
Write-Output "Audit check result saved to: WELA-Audit-Result.csv"
|
|
||||||
} elseif ($outType -eq "table") {
|
} elseif ($outType -eq "table") {
|
||||||
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, DefaultSetting, CurrentSetting, RecommendedSetting, Volume | Format-Table
|
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, DefaultSetting, CurrentSetting, RecommendedSetting, Volume | Format-Table
|
||||||
}
|
}
|
||||||
@@ -5188,6 +5185,8 @@ function AuditLogSetting {
|
|||||||
if ($outType -eq "gui") {
|
if ($outType -eq "gui") {
|
||||||
$usableRules | Select-Object title, level, service, category, description, id | Out-GridView -Title "Usable Detection Rules"
|
$usableRules | Select-Object title, level, service, category, description, id | Out-GridView -Title "Usable Detection Rules"
|
||||||
$unUsableRules | Select-Object title, level, service, category, description, id | Out-GridView -Title "Unusable Detection Rules"
|
$unUsableRules | Select-Object title, level, service, category, description, id | Out-GridView -Title "Unusable Detection Rules"
|
||||||
|
$auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, DefaultSetting, CurrentSetting, RecommendedSetting, Volume, Note | Out-GridView -Title "WELA Audit Result"
|
||||||
|
Write-Output "Audit check result saved to: WELA-Audit-Result.csv"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output "Usable detection rules list saved to: UsableRules.csv"
|
Write-Output "Usable detection rules list saved to: UsableRules.csv"
|
||||||
|
|||||||
Reference in New Issue
Block a user