malware scan

Post Reply
User avatar
T4B
Posts: 166
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

how can run a malware scan on myvestacp :?:
User avatar
myVesta
Site Admin
Posts: 949
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 9 times
Been thanked: 6 times

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
AGENT
Posts: 14
Joined: Sun Sep 05, 2021 5:19 pm

Can you please give me the commands to remove maldet + clamav after performing a scan?
Becasue it's uses load of ram.
User avatar
myVesta
Site Admin
Posts: 949
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 9 times
Been thanked: 6 times

Post Reply