Skip to content

Commit

Permalink
fix: add User-Agent header to bypass Cloudflare in Snort download
Browse files Browse the repository at this point in the history
  • Loading branch information
MarantosGeorge committed Oct 30, 2024
1 parent 97cc4ca commit da9301a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/windows/snort.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Install-Snort {
}

# Download and install Snort
Invoke-WebRequest -Uri $snortInstallerUrl -OutFile $snortInstallerPath
Invoke-WebRequest -Uri $snortInstallerUrl -OutFile $snortInstallerPath -Headers @{"User-Agent"="Mozilla/5.0"}
Start-Process -FilePath $snortInstallerPath -ArgumentList "/S" -Wait

# Download Npcap (manual installation required)
Expand Down

0 comments on commit da9301a

Please sign in to comment.