Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fastlog=$(cat /var/log/suricata/fast.log)
- while true
- do
- fastlogtmp=$(cat /var/log/suricata/fast.log)
- if [[ "$fastlog" == "$fastlogtmp" ]]; then
- sleep 1
- else
- echo 'Alert !'
- echo
- cat /var/log/suricata/fast.log
- echo
- echo '#############################################'
- echo
- paplay /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga & zenity --info --width=250 --height=50 --text "Suricata Attack notification!"
- fastlog=$(cat /var/log/suricata/fast.log)
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement