Maldetect Scan Syntax

Maldetect Scan Syntax

Here are some useful Maldet switches for locating and removing malware on a Linux server:

To scan a folder: maldet --scan-all /path

If you only want to scan some specified file types (.php for this example): maldet --scan-all /home/domain.com/public_html/*.php

To view a scanning report: maldet --report 14715-1421.3219 (Replace 14715-1421.3219 with the scan ID)


To update Maldet's definitions run: maldet -u

To delete all quarantined files: rm -rf /usr/local/maldetect/quarantine/*
    • Related Articles

    • Maldet Ignore Paths

      If you need to Exclude/Ignore a certain path performed by maldet scan. Edit the following file : Using your Favorite Editor : vim /usr/local/maldetect/ignore_paths and add the path required for exclusion.
    • Rsync over SSH

      How To Use Rsync via SSH OR how to use RSync with a Remote System: Syncing to a remote system is trivial if you have SSH access to the remote machine and rsync installed on both sides. Once you have SSH access verified on between the two machines, ...
    • Common .htaccess Redirects

      #301 Redirects for .htaccess #Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html #Redirect an entire site: Redirect 301 / http://www.domain.com/ #Redirect an entire site to a sub folder Redirect 301 / ...
    • Common .htaccess Redirects

      #301 Redirects for .htaccess #Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html #Redirect an entire site: Redirect 301 / http://www.domain.com/ #Redirect an entire site to a sub folder Redirect 301 / ...
    • enable cURL on WHM/cPanel using EasyApache

      How to enable cURL on WHM/cPanel using EasyApache Authorsupport support Article Reference NumberAA-05017 Views10659 How to enable cURL on WHM/cPanel using EasyApache Overview A command line tool for getting or sending files using URL syntax. To ...