Created
January 21, 2015 17:03
-
-
Save jeffgeiger/d9232303e0ec955ce430 to your computer and use it in GitHub Desktop.
Hourly Bro intel report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LINES=$(wc -l /nsm/bro/logs/current/intel.log | awk '{print $1}') | |
if [[ $LINES -gt 8 ]]; then | |
echo -e "<font face='monospace, monospace' size='1'>\n<pre>\n $(cat /nsm/bro/logs/current/intel.log | while read line; do echo "$line </br>"; done) \n</pre>\n</font>" | mail -a "Content-Type: text/html" -s "Bro Intel Hits - $(date)" [email protected] | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment