Sunday, October 9, 2016

chkrootkit install and daily scan

chkrootkit install and daily scan


Heres a quick one-liner to install chkrootkit and have it run daily:

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

Log file:  /tmp/rootkit.log

Go to link download