]>
Commit | Line | Data |
---|---|---|
8f805fb6 PG |
1 | #!/bin/sh |
2 | ||
3 | # Get service config | |
a513d2d4 | 4 | [ -f /etc/sysconfig/chkrootkit ] && . /etc/sysconfig/chkrootkit |
8f805fb6 PG |
5 | |
6 | DATA=`date` | |
7 | SYSTEM=`hostname` | |
8 | ||
9 | /usr/bin/chkrootkit | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' > /var/tmp/$$ | |
10 | LIN=`grep -c . /var/tmp/$$` | |
11 | if [ "$LIN" -gt "1" ]; then | |
12 | mail -s "CHKROOTKIT $SYSTEM $DATA" $CHKROOTKIT_MAILTO < /var/tmp/$$ | |
13 | fi | |
14 | rm -f /var/tmp/$$ |