aapanelCentosControl PanelCWPHestia CPLinuxUbuntuWordpress

How to scan for malwares and viruses with maldat in Linux

Maldet is a malware scanner for Linux servers. It detects varieties of infections and malwares within your scripts (php and etc) and in server. To scan for viruses with Maldet, follow these steps:

Log in to your Linux server as the root user.

Install Maldet by running the following command:

wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzf maldetect-current.tar.gz
cd maldetect-*
sh install.sh

Update Maldet with the latest malware definitions by running the following command:

maldet -u

To scan a specific directory, run the following command:

maldet -a /path/to/directory

Replace “/path/to/directory” with the path to the directory you want to scan.

To scan all files on the server, run the following command:

maldet -a /

Note that this can take a long time to complete, depending on the size of your server and the number of files.

Maldet will output any suspicious files it finds. If it finds a file that it suspects is malware, it will quarantine it automatically if enable. You can view the quarantine list by running the following command:

maldet --quarantine list

If you want to restore a file from quarantine, run the following command:

maldet --quarantine restore ID

Replace “ID” with the ID of the file you want to restore, which you can find in the quarantine list.

That’s it! You’ve successfully scanned for viruses with Maldet.

Sandeep B.

I'm a system admin and php developer and currently working as System Admin In CWP Control panel, expertise in Linux and Windows administration RHEL certified admin.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button