Auto scan user every night
Hi,
I installed ClamAV and i dont see ClamAV scan in my server. How can i make ClamAV scan all user hosting every night ( 0AM ) and send alert email to my email when it scan completed.
Regards,
[QUOTE][url=http://sourceforge.net/projects/php-clamav/]php-clamav | Free software downloads at SourceForge.net - PHP ClamAV - ClamAV Interface for PHP5 Scripts PHP-ClamAV is a PHP5 extension that allows to incorporate virus scanning features on your PHP5 scripts. It uses the Clam AV API for virus scanning.
PHP ClamAV will deny or prevent shell scripts when attacker upload file to hosting?
PHP ClamAV will deny or prevent shell scripts when attacker upload file to hosting?
-
nvm didn't read op properly :rolleyes: 0 -
To scan your server through ClamAV you will have to setup the cron on your server under the root user. Also you can install LMD- Linux Malware Detect on your server and scan your server through LMD. You can configured the LMD with the mod_security 0 -
Hello :) Could you let us know what method you used to install ClamAV? You should be able to setup a cron job as root that utilizes the "clamscan" utility. EX: clamscan -ir /home -l /var/log/clamscan.log
Thank you.0 -
[quote="jazz1611, post: 1454371">PHP ClamAV will deny or prevent shell scripts when attacker upload file to hosting?
I think configserver exploit scanner can scan files as they are uploaded using a custom modsecurity hook. CXS is a one time $50 cost if i remember right. As far as clamscan, a cron like Michael suggested should work. If you don't get the e-mail you could also pipe the command to mail, like this:clamscan -ir /home*/*/public_html/ | mail -s "subject" your@email.com
I do not recommend scanning all of /home/ as you will get a lot of false positives from spam e-mail files, and sometimes the easyapache source will trigger things like execute globals hits (usually more with maldet than clamscan).0 -
Wel if you are looking free so LMD and clamd is good but not so. CXS is a one time $50 cost and too good. even i m still thinking to purchase it because i myself uploaded the virus file in hosting account but both lmd and clamav didn't did anything with file. and i was :eek: 0 -
hi, what is the correct syntax to put after the crontab -e command please : clamscan -ir /home*/*/public_html/ | mail -s "subject" your@email.com to run a daily scan at 1am thanks 0 -
[quote="bou3lam, post: 1760902">hi, what is the correct syntax to put after the crontab -e command please : clamscan -ir /home*/*/public_html/ | mail -s "subject" your@email.com to run a daily scan at 1am thanks
You would use the following syntax to have it run at 1AM daily: [QUOTE]0 1 * * *
Thank you.0 -
Hi Guys no one is give the right answer for this request is there a script can be run on WHM terminal to scan the full server ? 0 -
What do you mean the right answer wasn't given? The way to scan the full sever for what ClamAV will even scan for was provided. 0
Please sign in to leave a comment.
Comments
9 comments