Rkhunter is a very useful tool that is used to check for trojans, rootkits, and other security problems. Is a security scanning tool which will scan for rootkits, backdoors, and local exploits.
I will show you how to install it and set it up to send daily reports:
tar -zxvf rkhunter-1.1.1.tar.gz
cd rkhunter-1.1.1
./installer.sh
cd rkhunter-1.1.1
./installer.sh
We have now successfully installed it. To run a complete scan of the server
/usr/local/bin/rkhunter -c
Now setting up the daily report. Open a new file using your favourite editor.
vim /etc/cron.daily/rkhunter.sh
Add this script to the new file (rkhunter.sh). Replace abc@xyz.com with your e-mail address.
#!/bin/bash
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Daily Rkhunter Scan Report" abc@xyz.com)
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Daily Rkhunter Scan Report" abc@xyz.com)
Give the script permission
chmod +x /etc/cron.daily/rkhunter.sh
0 comments:
Post a Comment