From cde9ef362e46e009c605580df345bc78740f7223 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:51:45 +0900 Subject: [PATCH] update --- config/WELA.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/WELA.ps1 b/config/WELA.ps1 index ff60ae4e..378d8590 100644 --- a/config/WELA.ps1 +++ b/config/WELA.ps1 @@ -3,16 +3,13 @@ $outputFilePath = "auditpol_output.txt" Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait $auditpolOutput = Get-Content -Path $outputFilePath $filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing" -Write-Host "DEBUG2" $extractedStrings = [System.Collections.Generic.HashSet[string]]::new() -Write-Host "DEBUG" $filteredOutput | ForEach-Object { if ($_ -match '{(.*?)}') { $extractedStrings.Add($matches[1]) } } - -Write-Host "Extracted GUIDs:" +Write-Host $extractedStrings # Step 2: Read the rules from security_rules.json $jsonFilePath = "./config/security_rules.json"