Skip to content

Commit cde9ef3

Browse files
committed
update
1 parent cd3293b commit cde9ef3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

config/WELA.ps1

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ $outputFilePath = "auditpol_output.txt"
33
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait
44
$auditpolOutput = Get-Content -Path $outputFilePath
55
$filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing"
6-
Write-Host "DEBUG2"
76
$extractedStrings = [System.Collections.Generic.HashSet[string]]::new()
8-
Write-Host "DEBUG"
97
$filteredOutput | ForEach-Object {
108
if ($_ -match '{(.*?)}') {
119
$extractedStrings.Add($matches[1])
1210
}
1311
}
14-
15-
Write-Host "Extracted GUIDs:"
12+
Write-Host $extractedStrings
1613

1714
# Step 2: Read the rules from security_rules.json
1815
$jsonFilePath = "./config/security_rules.json"

0 commit comments

Comments
 (0)