Execute script on Snort alert
I currently am experimenting with a Raspberry Pi. I am running Snort, which is packet detection software. In the case Snort raises an alert, I would want to execute a (Python) script. Snort is executed, on a raspberry pi as followed: sudo snort -q -A console -i eth0 -c /etc/snort/snort.conf I created a python script that, when called, controls a GPIO pin of a raspberry pi. To bring it more in context; When the raspberry pi receives a ping/ICMP packet, a red alarm light is illuminated and controlled by the same device. The snort rule currently works, and when an ICMP packet arrives an alert is