cd /usr/local/src/ wget --passive-ftp ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar xvfz chkrootkit.tar.gz cd chkrootkit-*/ yum install glibc-static make sense cd .. mv chkrootkit-0.52 /usr/local/chkrootkit ln -s /usr/local/chkrootkit/chkrootkit /usr/local/bin/chkrootkit cd chkrootkit nano -w /etc/cron.daily/chkrootkit.sh #!/bin/bashcd /usr/local/src/chkrootkit-*/ ; ./chkrootkit |grep -v not| /bin/mail -s 'CHROOTKIT Scan Result' api@netway.ezyadmin.com chmod 700 /etc/cron.daily/chkrootkit.sh
cd /usr/local/src wget https://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.6/rkhunter-1.4.6.tar.gz tar -zxvf rkhunter-1.4.6.tar.gz cd rkhunter-* ./installer.sh --layout default --install rkhunter --update rkhunter -c nano -w /etc/rkhunter.conf Search for MAIL-ON-WARNING, then add an email address. api@netway.ezyadmin.com nano -w /etc/cron.daily/rkhunter.sh #!/bin/sh(/usr/local/bin/rkhunter --versioncheck/usr/local/bin/rkhunter --update/usr/local/bin/rkhunter --cronjob --report-warnings-only) | /bin/mail -s 'rkhunter Daily Run (server.systemnetway.com)' api@netway.ezyadmin.com chmod 700 /etc/cron.daily/rkhunter.sh
cd /usr/local/directadmin/custombuild ./build update ./build set clamav yes ./build clamav freshclam -v systemctl restart exim nano -w /etc/freshclam.conf Add row DatabaseCustomURL DatabaseCustomURL http://cdn.malware.expert/malware.expert.ndb DatabaseCustomURL http://cdn.malware.expert/malware.expert.hdb DatabaseCustomURL http://cdn.malware.expert/malware.expert.ldb DatabaseCustomURL http://cdn.malware.expert/malware.expert.fp freshclam -v
Error*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y
Oops: Unable to download: Protocol scheme 'https' is not supported (Crypt::SSLeay or IO::Socket::SSL not installed) - Error is typically seen in the CLI when you attempt to run csf -u yum list perl-Crypt-SSLeay perl-Net-SSLeay yum install perl-Crypt-SSLeay perl-Net-SSLeay