Skip to content

Commit

Permalink
refactor: Remove WinPcap installation from Install-Snort function
Browse files Browse the repository at this point in the history
The `Install-Snort` function in `snort.ps1` is refactored to remove the installation of WinPcap. Previously, both Npcap and WinPcap were installed, but now only Npcap is downloaded and installed using the provided URL. This change ensures that Npcap is properly installed and configured for Snort to function correctly.
  • Loading branch information
bengo237 committed Sep 5, 2024
1 parent eed8335 commit 69f3e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/windows/snort.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Install-Snort {
)

# Write the rules to the file
$rules | Out-File -FilePath $rulesFile -Encoding UTF8
$rules | Out-File -FilePath $rulesFile

# Add Snort configuration to ossec.conf
$snortConfig = @"
Expand Down Expand Up @@ -94,4 +94,4 @@ output alert_fast: snort.alert
Write-Host "Installation and configuration completed!"
}

Install-Snort
Install-Snort

0 comments on commit 69f3e88

Please sign in to comment.