Last active
December 12, 2015 02:38
-
-
Save gfoss/4700590 to your computer and use it in GitHub Desktop.
simple cronjob to alert on 'unknown/unexpected' access to a system.
This file contains 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
0 */1 * * * last -5 | grep -v '[user]\|wtmp\|reboot\|shutdown' && last -10 | grep -v '[user]\|wtmp\|reboot\|shutdown' >> ~/Desktop/ALERT && wall -g [group] ~/Desktop/ALERT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment