123 Reg Support

How to install a Malware scanner on my server?

This article applies to 123 Reg Servers
This article will show you how to install Malware scanners on your server. For Linux servers, you can install the below:

Maldet

You can install Maldet via SSH by entering this command:
cd /usr/local/src/ wget http://www.rfxn.com/downloads/maldetect-current.tar.gz tar -xzf maldetect-current.tar.gz cd maldetect-* sh ./install.sh maldet --update-ver maldet --update
To scan a folder, for example /var, you should enter maldet -a /var. This will print an output with two commands, which will either show the scan results or quarantine the infected files.

ClamAV

To install ClamAV, run the command:
apt-get install clamav
or
yum install clamav
Before scanning with ClamAV you should run Freshclam. This will update the ClamAV definitions database, which means that the scan will include any new pieces of malware. Run:
clamscan -rvi / --log=malwarescan.txt
To view the instances of malware that have been found you can view the log file by running:
cat malwarescan.txt | grep FOUND
 

Windows

For Windows servers you can download Clamwin by visiting www.clamwin.com and use this to scan your severs.