mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
chg: guide -> baseline
This commit is contained in:
16
WELA.ps1
16
WELA.ps1
@@ -1,7 +1,7 @@
|
|||||||
param (
|
param (
|
||||||
[string]$Cmd,
|
[string]$Cmd,
|
||||||
[string]$OutType = "std",
|
[string]$OutType = "std",
|
||||||
[string]$Guide = "YamatoSecurity",
|
[string]$Baseline = "YamatoSecurity",
|
||||||
[bool]$Debug = $false
|
[bool]$Debug = $false
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -4766,7 +4766,7 @@ function GuideMSS {
|
|||||||
function AuditLogSetting {
|
function AuditLogSetting {
|
||||||
param (
|
param (
|
||||||
[string] $outType,
|
[string] $outType,
|
||||||
[string] $guide,
|
[string] $Baseline,
|
||||||
[bool] $debug
|
[bool] $debug
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -4786,13 +4786,13 @@ function AuditLogSetting {
|
|||||||
}
|
}
|
||||||
$auditResult = @()
|
$auditResult = @()
|
||||||
|
|
||||||
if ($guide.ToLower() -eq "yamatosecurity") {
|
if ($Baseline.ToLower() -eq "yamatosecurity") {
|
||||||
$auditResult = GuideYamatoSecurity $all_rules
|
$auditResult = GuideYamatoSecurity $all_rules
|
||||||
} elseif ($guide.ToLower() -eq "asd") {
|
} elseif ($Baseline.ToLower() -eq "asd") {
|
||||||
$auditResult = GuideASD $all_rules
|
$auditResult = GuideASD $all_rules
|
||||||
} elseif ($guide.ToLower() -eq "microsoft_client") {
|
} elseif ($Baseline.ToLower() -eq "microsoft_client") {
|
||||||
$auditResult = GuideMSC $all_rules
|
$auditResult = GuideMSC $all_rules
|
||||||
} elseif ($guide.ToLower() -eq "microsoft_server") {
|
} elseif ($Baseline.ToLower() -eq "microsoft_server") {
|
||||||
$auditResult = GuideMSS $all_rules
|
$auditResult = GuideMSS $all_rules
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5020,11 +5020,11 @@ Write-Host $logo -ForegroundColor Green
|
|||||||
switch ($Cmd.ToLower()) {
|
switch ($Cmd.ToLower()) {
|
||||||
"audit-settings" {
|
"audit-settings" {
|
||||||
$validGuides = @("YamatoSecurity", "ASD", "Microsoft_Client", "Microsoft_Server")
|
$validGuides = @("YamatoSecurity", "ASD", "Microsoft_Client", "Microsoft_Server")
|
||||||
if (-not ($validGuides -contains $Guide.ToLower())) {
|
if (-not ($validGuides -contains $Baseline.ToLower())) {
|
||||||
Write-Host "Invalid Guide specified. Valid options are: YamatoSecurity, ASD, Microsoft_Client, Microsoft_Server."
|
Write-Host "Invalid Guide specified. Valid options are: YamatoSecurity, ASD, Microsoft_Client, Microsoft_Server."
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
AuditLogSetting $OutType $Guide $Debug
|
AuditLogSetting $OutType $Baseline $Debug
|
||||||
}
|
}
|
||||||
"audit-filesize" {
|
"audit-filesize" {
|
||||||
AuditFileSize
|
AuditFileSize
|
||||||
|
|||||||
Reference in New Issue
Block a user