]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-check
ae7864ecccc32e0c60ff41b40bc7d2a88bc7e91b
[packages/chkrootkit.git] / chkrootkit-check
1 #!/bin/sh
2
3 # Get service config
4 [ -f /etc/sysconfig/aide ] && . /etc/sysconfig/aide
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/$$
This page took 0.062948 seconds and 3 git commands to generate.