Jump to content

File Scanner or Inactivity Scanner


kvchosting

Recommended Posts

How do you plan on telling if it is an illegal file? There is no script that can tell if the file is illegal. You are either going to have to go through every single file on the server (which brings about some issues) or you are going to have to do what every other host does, wait until it gets reported.

Link to comment
Share on other sites

You can easily create a bash /perl script to search the logs for uploads matching keywords you suspect.

As hostlonestar said a script won't know if a file is illegal but you can check for certain filnames or types.

 

If you are trying stop shell scripts, spam scripts, virus etc from being uploaded there is a commercial script called upload guardian but i have never tried it.

 

You could also try somewhere like getafreelancer to find someone to write you a script for around $50 usd

 

clamav can also scan your entire server if you have it installed.

eg for a cpanel server

 

DON'T USE ANY SHELL COMMANDS FOUND IN A FORUM UNLESS YOU UNDERSTAND WHAT THEY DO.

 

##scan only##

 

clamscan -r /home/*/public_html

 

The above will scan all users public_html folders and report any files to you for manual deletion

 

##remove files##

clamscan -r -i /home/*/public_html/ --remove

 

The above will scan all users public_html folders and remove files

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated