Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

Libclamav - filetype detection functionality

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


lexx.pt at gmail

Sep 11, 2012, 6:47 AM

Post #1 of 2 (441 views)
Permalink
Libclamav - filetype detection functionality

Hello,

I need to detect the type of a given file (so that in my own scanner, which
uses ClamAV's signature set, I can cross-reference it with any signature
that matches).

However, if I'm not mistaken, such functionality is not currently exposed
in libclamav.

Is there any way to access it besides directly modifying libclamav (and
thus losing the access on any update to ClamAV) ?

Thanks.

-Alexandre Dias
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


draynor at sourcefire

Sep 12, 2012, 1:31 PM

Post #2 of 2 (414 views)
Permalink
Re: Libclamav - filetype detection functionality [In reply to]

On Tue, Sep 11, 2012 at 9:47 AM, Alexandre Dias <lexx.pt [at] gmail> wrote:

> Hello,
>
> I need to detect the type of a given file (so that in my own scanner, which
> uses ClamAV's signature set, I can cross-reference it with any signature
> that matches).
>
> However, if I'm not mistaken, such functionality is not currently exposed
> in libclamav.
>
> Is there any way to access it besides directly modifying libclamav (and
> thus losing the access on any update to ClamAV) ?
>
> Thanks.
>
> -Alexandre Dias
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>

Alexandre,

Short answer: There is no function that will take a file and return
ClamAV's filetype decision.

All the filetyping functions are all marked internal and expect access to
ClamAV's memory objects. There are ways to use them without modifying
libclamav, but they would all have varying levels of hacks involved. I
don't know which path would be best for you to take, but I wish you luck.

Dave R.

--
---
Dave Raynor
Sourcefire Vulnerability Research Team
draynor [at] sourcefire
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.