Jump to content

Recommended Posts

Posted

Hi Everyone

 

I have just found a load of kids hiding music files in their my docs on the server as .m4a files.

 

Richard

Posted (edited)

:) I'm guessing you would like to solve this problem..... ;) EduSweep i would also recommend it deals with this nicely. Link from krisd32/

 

James.

Edited by EduTech
...
Posted (edited)

You can also use the file command under Linux to show the true content of a file say:

pete@tpad2:~/downloads$ file cheese.doc
cheese.doc: Audio file with ID3 version 2.3, MP3 encoding

 

I keep meaning to script this to recurse directory structures ovenight, grepping what I'm interested in and dumping to a logfile.

 

Edit: found a script on Novell: http://www.novell.com/coolsolutions/tools/downloads/findexe.txt

Edited by pete
  • Thanks 1
Posted
:) I'm guessing you would like to solve this problem..... ;) EduSweep i would also recommend it deals with this nicely. Link from krisd32/

 

James.

 

Hi James I use edusweep and nasty file search

Posted
You can also use the file command under Linux to show the true content of a file say:

pete@tpad2:~/downloads$ file cheese.doc
cheese.doc: Audio file with ID3 version 2.3, MP3 encoding

 

I keep meaning to script this to recurse directory structures ovenight, grepping what I'm interested in and dumping to a logfile.

 

Edit: found a script on Novell: http://www.novell.com/coolsolutions/tools/downloads/findexe.txt

 

Is there something similiar you can do on windows ?

 

If so then may be a case of making a script that will enumerate through all files in a directory and any sub folders and output it all into a text file to see if they are actualy word docs etc instead of being audio files etc

Posted
Is there something similiar you can do on windows ?

 

If so then may be a case of making a script that will enumerate through all files in a directory and any sub folders and output it all into a text file to see if they are actualy word docs etc instead of being audio files etc

 

In theory you can do all the above in Cygwin (Cygwin Information and Installation) or by using unxutils (Native Win32 ports of some GNU utilities) . I haven't tested it though.

 

The line you care about is:

find $THEPATH -type f | sed -e 's/^/\"/' -e 's/$/\"/' | xargs file -z | grep executable | cut -d ":" -f1 >> $FILENAME

 

So grab w32 versions of find, sed, xargs, grep and cut and you should be fine.

Posted
Assuming it's shared, you could just mount the share using a Linux machine and run the command from there.

 

I'm assuming people who need the w32 stuff don't have a handy Linux machine available.

Posted

I'm assuming that everyone has at least something running Linux on their network... they'd be crazy not to:D

 

Or a live CD?;)

Posted

If you've gone to the trouble of using linux then you probably wouldn't have this problem in the first place ;)

 

in Samba we just veto file extensions that we don't like.

 

veto files = /*.bat/*.dll/*.mp3   etc

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...