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/*