Jump to content

How to scan for malwares and viruses with maldet in Linux


Sandeep B.

Recommended Posts

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 /
#or
maldet -a /home
#or
maldet -a /home/user/public_html


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.

For more advance malware/virus scanning and cleaning you can contact me (paid service low price)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...