mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-14 13:12:52 +01:00
update
This commit is contained in:
@@ -3,6 +3,7 @@ $outputFilePath = "auditpol_output.txt"
|
|||||||
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait
|
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait
|
||||||
$auditpolOutput = Get-Content -Path $outputFilePath -Raw
|
$auditpolOutput = Get-Content -Path $outputFilePath -Raw
|
||||||
$filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing"
|
$filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing"
|
||||||
|
Write-Host $filteredOutput
|
||||||
$extractedStrings = [System.Collections.Generic.HashSet[string]]::new()
|
$extractedStrings = [System.Collections.Generic.HashSet[string]]::new()
|
||||||
$filteredOutput | ForEach-Object {
|
$filteredOutput | ForEach-Object {
|
||||||
if ($_ -match '{(.*?)}') {
|
if ($_ -match '{(.*?)}') {
|
||||||
|
|||||||
Reference in New Issue
Block a user