#!/bin/bash if [ ! -f /bin/mail ]; then yum -y install mailx yum -y install glibc-static fi cd /root rm -rf chkrootkit-0.49 rm -rf chkrootkit-0.49.tar.gz wget http://pkgs.fedoraproject.org/repo/pkgs/chkrootkit/chkrootkit-0.49.tar.gz/304d840d52840689e 0ab0af56d6d3a18/chkrootkit-0.49.tar.gz tar -xzf chkrootkit-0.49.tar.gz rm -rf chkrootkit-0.49.tar.gz cd /root/chkrootkit-0.49 make sense cd /etc/cron.daily/ echo '#!/bin/bash' >chkrootkit.sh echo 'cd /root/chkrootkit-0.49' >> chkrootkit.sh echo './chkrootkit| grep INFECTED | grep -v 465 | mail -s "Chkrootkit weekly scan results for `hostname`" root' >> chkrootkit.sh chmod 755 /etc/cron.weekly/chkrootkit.sh
Wednesday, April 30, 2014
Chkrootkit Installation
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment