Skip to content

Instantly share code, notes, and snippets.

@jstrosch
Created December 2, 2024 13:13
Show Gist options
  • Save jstrosch/0001299e348d18fbff51bfa3837125b0 to your computer and use it in GitHub Desktop.
Save jstrosch/0001299e348d18fbff51bfa3837125b0 to your computer and use it in GitHub Desktop.
suri-pcap.bat
set log="C:\Users\TheCyberYeti\AppData\Local\Temp\suri"
@echo OFF
echo y | del "%log%\*"
@echo ON
suricata -k none -r %1 --runmode=autofp -l "%log%" -s "C:\Program Files\Suricata\custom.rules"
@echo OFF
grep "event_type\":\"alert" "%log%\eve.json" | jq "\"\(.alert.signature) (SID \(.alert.signature_id)): \(.alert.category) from \(.src_ip):\(.src_port) - \(.dest_ip):\(.dest_port)\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment