]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-check
- updated to 0.52
[packages/chkrootkit.git] / chkrootkit-check
1 #!/bin/sh
2
3 # Get service config
4 [ -f /etc/sysconfig/chkrootkit ] && . /etc/sysconfig/chkrootkit
5
6 DATE=`date`
7 SYSTEM=`hostname`
8
9 cd /usr/bin
10 t=`mktemp ${TMPDIR:-/tmp}/chkrootkitXXXXXX` || exit 1
11 echo -n "Generated with: " > $t
12 /usr/bin/chkrootkit -V 2>> $t
13 /usr/bin/chkrootkit 2>&1 | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' >> $t
14 L=$(wc -l $t)
15 if [ "${L% *}" -gt 1 ]; then
16         mail -s "CHKROOTKIT $SYSTEM $DATE" $CHKROOTKIT_MAILTO < $t
17 fi
18 rm -f $t
This page took 0.075565 seconds and 3 git commands to generate.