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