chkrootkit install and daily scan

Here's a quick one-liner to install chkrootkit and have it run daily:

sudo yum -y install chkrootkit && sudo printf "#"'!'"/bin/sh\necho '###' \`date\` \`hostname\` >> /tmp/rootkit.log\n`which chkrootkit` -q >> /tmp/rootkit.log\n" > /etc/cron.daily/chkrootkit.sh && sudo chmod +x /etc/cron.daily/chkrootkit.sh

Log file:  /tmp/rootkit.log

Comments

Popular Posts