#!/bin/bash if [ ! -f /bin/mail ]; then yum -y install mailx fi cd /root rm -rf rkhunter-1.4.0.tar.gz rm -rf rkhunter-1.4.0 wget http://pkgs.fedoraproject.org/repo/pkgs/rkhunter/rkhunter-1.4.0.tar... tar -xzf rkhunter-1.4.0.tar.gz cd rkhunter-1.4.0 ./installer.sh --install /usr/local/bin/rkhunter --versioncheck /usr/local/bin/rkhunter --update rm -rf /root/rkhunt er-1.4.0 rm -rf /root/rkhunter-1.4.0.tar.gz cd /etc/cron.daily/ echo '#!/bin/bash' >rkhunter.sh echo '/usr/local/bin/rkhunter --versioncheck' >> rkhunter.sh echo '/usr/local/bin/rkhunter --update' >> rkhunter.sh echo '/usr/local/bin/rkhunter --cronjob --report-warnings-only | mail -s "Rkhunter daily scan results for `hostname`" root' >> rkhunter.sh chmod 755 /etc/cron.daily/rkhunter.sh yum install -y sysstat iotop libpcap rpm -ih http://pkgs.repoforge.org/iftop/iftop-0.17-1.el6.rf.x86_64.rpm rpm -ih http://pkgs.repoforge.org/multitail/multitail-5.2.9-1.el6.rf.x86_64.rpm
Wednesday, April 30, 2014
Group Install: iftop,multitail,sysstat,rkhunter
Chkrootkit Installation
#!/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
Subscribe to:
Posts (Atom)