Skip to main content

Auto scan user every night

Comments

9 comments

  • ThinIce
    nvm didn't read op properly :rolleyes:
    0
  • 24x7server
    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
  • cPanelMichael
    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
  • quizknows
    [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
  • inthukha
    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
  • bou3lam
    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
  • cPanelMichael
    [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
  • BIGBANG ITS
    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
  • cPanelLauren
    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.