Page 1 of 1

malware scan

Posted: Thu Aug 05, 2021 12:17 pm
by T4B
how can run a malware scan on myvestacp :?:

Re: malware scan

Posted: Thu Aug 05, 2021 1:09 pm
by myVesta
with clamav:

Code: Select all

apt update
apt install clamdscan clamav
freshclam

# scan whole server
nice -n 19 ionice -c 3 clamscan -r -i /home/

# scan specific domain
nice -n 19 ionice -c 3 clamscan -r -i /home/user/web/domain.com/public_html/
with maldet + clamav:

Code: Select all

apt update
apt install clamdscan
wget https://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xvf maldetect-current.tar.gz
cd maldetect-1.6.4/
./install.sh
systemctl stop maldet
systemctl disable maldet

# scan whole server
cd ~
maldet -a
maldet --report 200113-1058.3612

# scan specific domain
nice -n 19 ionice -c 3 maldet -a /home/user/web/domain.com/public_html/
maldet --report 200113-1058.3612

Re: malware scan

Posted: Mon Sep 06, 2021 10:14 am
by AGENT
Can you please give me the commands to remove maldet + clamav after performing a scan?
Becasue it's uses load of ram.

Re: malware scan

Posted: Mon Sep 06, 2021 10:48 am
by myVesta