[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
ROOTDIR is '/' Checking 'amd'… not found Checking 'basename'… not infected Checking 'biff'… not found Checking 'chfn'… not infected Checking 'chsh'… not infected Checking 'cron'… not infected Checking 'crontab'… not infected Checking 'date'… not infected Checking 'du'… not infected Checking 'dirname'… not infected Checking 'echo'… not infected Checking 'egrep'… not infected Checking 'env'… not infected
cat chkrootkit.sh #!/bin/bash PATH=/usr/bin:/bin TMPLOG=mktemp # Run the chkrootkit /usr/bin/chkrootkit > $TMPLOG # Output the log cat $TMPLOG | logger -t chkrootkit # bindshe of SMTPSllHow to do some wrongs if [ ! -z "$(grep 465 $TMPLOG)" ] && [ -z $(/usr/sbin/lsof -i:465|grep bindshell) ]; then sed -i '/465/d' $TMPLOG fi # If the rootkit have been found,mail root [ ! -z "$(grep INFECTED $TMPLOG)" ] && grep INFECTED $TMPLOG | mail -s "chkrootkit report in hostname" root chmod 700 chkroot.sh mv chkrootkit /etc/cron.daily