Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2011 10:45:45 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Frank Bonnet <f.bonnet@esiee.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Tools to find "unlegal" files ( videos , music etc )
Message-ID:  <20110718104545.2aacbd1b.freebsd@edvax.de>
In-Reply-To: <4E23F0FE.3070305@esiee.fr>
References:  <4E23E6DD.6050901@esiee.fr> <20110718101029.531397d9.freebsd@edvax.de> <4E23F0FE.3070305@esiee.fr>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 18 Jul 2011 10:38:22 +0200, Frank Bonnet wrote:
> On 07/18/2011 10:10 AM, Polytropon wrote:
> > On Mon, 18 Jul 2011 09:55:09 +0200, Frank Bonnet wrote:
> >> Hello
> >>
> >> Anyone knows an utility that I could pipe to the "find" command
> >> in order to detect video, music, games ... etc  files ?
> >>
> >> I need a tool that could "inspect" inside files because many users
> >> rename those filename to "inoffensive" ones :-)
> > One way could be to define a list of file extensions that
> > commonly matches the content you want to track. Of course,
> > the file name does not directly correspond to the content,
> > but it often gives a good hint to search for *.wmv, *.flv,
> > *.avi, *.mp(e)g, *.mp3, *.wma, *.exe - and of course all
> > the variations of the extensions with uppercase letters.
> > Also consider *.rar and maybe *.zip for compressed content.
> >
> > If file extensions have been manipulated (rare case), the
> > "file" command can still identify the correct file type.
> >
> >
> >
> >
> yes thanks , gonna try with the file command

You could make a simple script that lists "file" output for
all files (just to be sure because of possible suffix renaming)
for further inspection. Sometimes, you can also run "strings"
for a given file - maybe that can be used to identify typical
suspicious string patters for a "strings + grep" combination
so less manual identification has to be done.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20110718104545.2aacbd1b.freebsd>