]> git.pld-linux.org Git - packages/chkrootkit.git/blame - chkrootkit-check
- updated to 0.52
[packages/chkrootkit.git] / chkrootkit-check
CommitLineData
8f805fb6
PG
1#!/bin/sh
2
3# Get service config
a513d2d4 4[ -f /etc/sysconfig/chkrootkit ] && . /etc/sysconfig/chkrootkit
8f805fb6 5
52f05674 6DATE=`date`
8f805fb6
PG
7SYSTEM=`hostname`
8
52f05674 9cd /usr/bin
e5b3f6cf 10t=`mktemp ${TMPDIR:-/tmp}/chkrootkitXXXXXX` || exit 1
52f05674
ER
11echo -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
14L=$(wc -l $t)
15if [ "${L% *}" -gt 1 ]; then
16 mail -s "CHKROOTKIT $SYSTEM $DATE" $CHKROOTKIT_MAILTO < $t
8f805fb6 17fi
52f05674 18rm -f $t
This page took 0.068288 seconds and 4 git commands to generate.