hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Scan for illegal files?
Reply

Hosting Software and Control Panels Software used in the web hosting industry. Topics include control panels, add-on software, setup scripts, etc.
Forum Jump

Scan for illegal files?

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-14-2002, 12:52 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354

Scan for illegal files?


Is there anything out there to scan a server for illegal files?
Eg. particular scripts, executables or mp3s (ie. stuff that could potentially break your AUP)

__________________
Blacknight
ICANN accredited domain registrar

Reply With Quote


Sponsored Links
  #2  
Old 08-14-2002, 01:43 PM
Gyrbo Gyrbo is offline
Junior Guru
 
Join Date: Jan 2002
Posts: 214
find /home -name *.zip
find /home -name *.exe
find /home -name *.rar
find /home -name *.?z
find /home -name *.mp3
find /home -name *.mp*g
find /home -name *.avi

Put that in a file and run it each day, and let it mail the results to you.

__________________
Web-cp: an open source control panel: http://www.web-cp.net

Reply With Quote
  #3  
Old 08-14-2002, 01:49 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
Simple, but probably very effective...

__________________
Blacknight
ICANN accredited domain registrar

Reply With Quote
Sponsored Links
  #4  
Old 08-14-2002, 05:21 PM
mikeknoxv mikeknoxv is offline
Aspiring Evangelist
 
Join Date: Jul 2001
Location: Boston
Posts: 354
Pirates are renaming mp3 files and such to commonly found files (such as .txt, .bmp, .gif, etc.). I take it there's no way to scan for these files?

Reply With Quote
  #5  
Old 08-14-2002, 05:27 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
Maybe if you scanned for *.txt/*.gif etc., files over a MB ???
It's highly unlikely that anybody would have a legitimate reason to store a 2 or 3 meg *.txt

Another obvious one would be the bandwidth usage...

When I originally asked the question I was thinking more along the lines of scripts that could either be used maliciously, or that would put a server under a lot of strain eg UBB

__________________
Blacknight
ICANN accredited domain registrar

Reply With Quote
  #6  
Old 08-14-2002, 07:34 PM
Skeptical Skeptical is offline
Web Hosting Master
 
Join Date: May 2001
Posts: 1,349
Not that simple. Crooks will rename their files to something innocuous like *.txt. They'll cut up the files into small chunks. It's a cat and mouse game... and some of them have enough experience to know how to get around you.

__________________
Expert Cpanel and WHMCS Development
We have done many modules such as alipay, chinabank, net.cn domain registration, and Cpanel modules such as auto-installers similar to Scriptaculous. Demo available upon request.
Email: sales[-at-]systemengineer.com

Reply With Quote
  #7  
Old 08-15-2002, 12:43 AM
Webdude Webdude is offline
Web Hosting Master
 
Join Date: Dec 2000
Location: The Woodlands, Tx
Posts: 5,955
I am actually building such a thing at http://warezchasers.com . It's on hold for now since I am unwilling to fund it for further development out of my own pocket, maybe later, or if I get funding some other way. For now, it works great on our free hosting....it's just not developed enough for public distribution.

Reply With Quote
  #8  
Old 08-15-2002, 03:57 AM
dreamrae.com dreamrae.com is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Baltimore, Maryland
Posts: 580
Lol, make a program that scans during the night hours, maybe once every week. Checks the headers of files to see what kind they are.. But that would make a high load avg... Oh well...

Reply With Quote
  #9  
Old 08-15-2002, 06:36 AM
Skeptical Skeptical is offline
Web Hosting Master
 
Join Date: May 2001
Posts: 1,349
Webdude, I'd like to test out your warezchasers thing. I went over to your site but couldn't find any download/documentation links. Can I test it out?

__________________
Expert Cpanel and WHMCS Development
We have done many modules such as alipay, chinabank, net.cn domain registration, and Cpanel modules such as auto-installers similar to Scriptaculous. Demo available upon request.
Email: sales[-at-]systemengineer.com

Reply With Quote
  #10  
Old 08-15-2002, 09:24 AM
astraler2k astraler2k is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Posts: 95
find / -size +1024k -print

This command can find over 1024K.

You can change 1024k

Reply With Quote
  #11  
Old 08-15-2002, 12:27 PM
Webdude Webdude is offline
Web Hosting Master
 
Join Date: Dec 2000
Location: The Woodlands, Tx
Posts: 5,955
Quote:
Originally posted by Skeptical
Webdude, I'd like to test out your warezchasers thing. I went over to your site but couldn't find any download/documentation links. Can I test it out?
It's not available yet. I havent made any kind of install or documentation. It's also still being developed, but I havent put much time into a realable version due to that.

Reply With Quote
  #12  
Old 08-15-2002, 12:32 PM
blacknight blacknight is offline
Web Hosting Master
 
Join Date: Mar 2001
Location: Ireland
Posts: 1,354
Please keep us informed. Is it going to be GPL or commercial?

__________________
Blacknight
ICANN accredited domain registrar

Reply With Quote
  #13  
Old 08-15-2002, 11:21 PM
donsimon donsimon is offline
Newbie
 
Join Date: Aug 2002
Posts: 8
Actually we do this already ourselves with ncftp. As a file is uploaded we check to see if a file is in our acceptable mime types and is not above our maximum file size. If it meets all of those criteria, we then add it to a text file. Once an hour a script comes by and checks all files in the tex file. It verifies that each file is the correct mime type. For example, if it's supposed to be a jpg, we look at the header and make sure it's a jpeg.

But the webmasters have gotten smarter, I've seen 3 meg jpg's when viewed have a 20x20 picture. So you can also get the heigth and width of the file, and the total bytes. Then a little math:

4877 bytes/(113 x120) = .35966...

If your number is less than 1, it's a valid jpg or gif.
If it's greater than one, time to do a little investigations.

With a little time and math, anything is possible.

Donny


Last edited by donsimon; 08-15-2002 at 11:30 PM.
Reply With Quote
  #14  
Old 08-15-2002, 11:25 PM
Webdude Webdude is offline
Web Hosting Master
 
Join Date: Dec 2000
Location: The Woodlands, Tx
Posts: 5,955
and they are also doing it with mp3, midi, wav, etc. All of which our WarezHunter properly detects and deletes. We hope to have it doing several hundred file types.

Reply With Quote
  #15  
Old 08-15-2002, 11:43 PM
donsimon donsimon is offline
Newbie
 
Join Date: Aug 2002
Posts: 8
The other option is to charge people by the amount of bandwidth they use. If somebody puts some warez or movies up and it gets listed somewhere it will be pushing 2-3mb/s easily. If they go over their limit shut them down. Problem solved.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Malwarebytes Launches Data Scan-and-Backup Service Web Hosting News 2013-05-07 14:51:03
ISPs Launch Copyright Alert System to Curb Infringement Web Hosting News 2013-02-27 16:14:36
Kim Dotcom Claims Megaupload Search Warrants Unlawfully Obtained by US Government Web Hosting News 2013-01-04 11:24:29
Are You Already Hosting the Next Megaupload? with David Snead - HostingCon 2012 Web Hosting News 2012-07-16 14:51:49
Security Provider HostingArmor Releases Server Scanning cPanel Plugin Web Hosting News 2011-07-25 19:33:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?