Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Shanmugam, Suresh (Conduent)
Thanks for your quick response. I believe that, I can start from this point.

Sent using Boxer
On Apr 11, 2017 12:23 AM, Brandon Perry  wrote:

> On Apr 10, 2017, at 1:50 PM, Shanmugam, Suresh (Conduent) 
>  wrote:
>
> Hi Brandon Perry,
>
> Okay. If you don't mind. Do you have any samples of implementation using 
> stream?. If you have please share to me.

I do not, but this should be a good start.

http://stackoverflow.com/questions/15669662/get-a-file-descriptor-handle-from-filestream
 

>
> Regards,
> Suresh Shanmugam.
>
> Sent using Boxer
> On Apr 10, 2017 10:51 PM, Brandon Perry  wrote:
>
>> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) 
>>  wrote:
>>
>> Hi Brandon Perry,
>>
>> You are correct Perry. I am implementing the LibClamAV Library into C# 
>> application.  So I need to get the File descriptor from the Stream and need 
>> to assign the value to "cl_scandesc" Native method. Am I right?.
>
> Yes, I believe that’s correct.
>
>>
>>
>> Regards,
>> Suresh Shanmugam.
>>
>> -Original Message-
>> From: clamav-devel [mailto:clamav-devel-boun...@lists.clamav.net] On Behalf 
>> Of Brandon Perry
>> Sent: Monday, April 10, 2017 9:12 PM
>> To: ClamAV Development 
>> Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll
>>
>>
>>> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>>>  wrote:
>>>
>>> Hi Developers,
>>>
>>> I've an query about doing the scan using byte[] help of 
>>> LibClamAV.dll(win32). If anyone know the methods to pass the byte[] provide 
>>> the details?.
>>>
>>> Note:
>>> I able to do the scan a physical path file. But not able to do with byte[]. 
>>> Please help me.
>>
>> It sounds like you are interacting with libclamav from C#. ClamAV requires a 
>> rewindable file stream, so a byte array can’t be scanned on its own.
>>
>> You could map the byte array to a MemoryMappedFile.
>>
>> http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
>>  
>> 
>>
>> Then you could potentially pass the file descriptor for this to native 
>> library.
>>
>>>
>>> Regards,
>>> Suresh Shanmugam.
>>>
>>> ___
>>> http://lurker.clamav.net/list/clamav-devel.html
>>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>>>
>>> http://www.clamav.net/contact.html#ml
>>
>> ___
>> http://lurker.clamav.net/list/clamav-devel.html
>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>>
>> http://www.clamav.net/contact.html#ml
>
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
> http://www.clamav.net/contact.html#ml
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
> http://www.clamav.net/contact.html#ml

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

http://www.clamav.net/contact.html#ml
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Brandon Perry

> On Apr 10, 2017, at 1:50 PM, Shanmugam, Suresh (Conduent) 
>  wrote:
> 
> Hi Brandon Perry,
> 
> Okay. If you don't mind. Do you have any samples of implementation using 
> stream?. If you have please share to me.

I do not, but this should be a good start.

http://stackoverflow.com/questions/15669662/get-a-file-descriptor-handle-from-filestream
 

> 
> Regards,
> Suresh Shanmugam.
> 
> Sent using Boxer
> On Apr 10, 2017 10:51 PM, Brandon Perry  wrote:
> 
>> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) 
>>  wrote:
>> 
>> Hi Brandon Perry,
>> 
>> You are correct Perry. I am implementing the LibClamAV Library into C# 
>> application.  So I need to get the File descriptor from the Stream and need 
>> to assign the value to "cl_scandesc" Native method. Am I right?.
> 
> Yes, I believe that’s correct.
> 
>> 
>> 
>> Regards,
>> Suresh Shanmugam.
>> 
>> -Original Message-
>> From: clamav-devel [mailto:clamav-devel-boun...@lists.clamav.net] On Behalf 
>> Of Brandon Perry
>> Sent: Monday, April 10, 2017 9:12 PM
>> To: ClamAV Development 
>> Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll
>> 
>> 
>>> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>>>  wrote:
>>> 
>>> Hi Developers,
>>> 
>>> I've an query about doing the scan using byte[] help of 
>>> LibClamAV.dll(win32). If anyone know the methods to pass the byte[] provide 
>>> the details?.
>>> 
>>> Note:
>>> I able to do the scan a physical path file. But not able to do with byte[]. 
>>> Please help me.
>> 
>> It sounds like you are interacting with libclamav from C#. ClamAV requires a 
>> rewindable file stream, so a byte array can’t be scanned on its own.
>> 
>> You could map the byte array to a MemoryMappedFile.
>> 
>> http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
>>  
>> 
>> 
>> Then you could potentially pass the file descriptor for this to native 
>> library.
>> 
>>> 
>>> Regards,
>>> Suresh Shanmugam.
>>> 
>>> ___
>>> http://lurker.clamav.net/list/clamav-devel.html
>>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>>> 
>>> http://www.clamav.net/contact.html#ml
>> 
>> ___
>> http://lurker.clamav.net/list/clamav-devel.html
>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>> 
>> http://www.clamav.net/contact.html#ml
> 
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> 
> http://www.clamav.net/contact.html#ml
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> 
> http://www.clamav.net/contact.html#ml



signature.asc
Description: Message signed with OpenPGP
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml

Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Shanmugam, Suresh (Conduent)
Hi Brandon Perry,

Okay. If you don't mind. Do you have any samples of implementation using 
stream?. If you have please share to me.

Regards,
Suresh Shanmugam.

Sent using Boxer
On Apr 10, 2017 10:51 PM, Brandon Perry  wrote:

> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) 
>  wrote:
>
> Hi Brandon Perry,
>
> You are correct Perry. I am implementing the LibClamAV Library into C# 
> application.  So I need to get the File descriptor from the Stream and need 
> to assign the value to "cl_scandesc" Native method. Am I right?.

Yes, I believe that’s correct.

>
>
> Regards,
> Suresh Shanmugam.
>
> -Original Message-
> From: clamav-devel [mailto:clamav-devel-boun...@lists.clamav.net] On Behalf 
> Of Brandon Perry
> Sent: Monday, April 10, 2017 9:12 PM
> To: ClamAV Development 
> Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll
>
>
>> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>>  wrote:
>>
>> Hi Developers,
>>
>> I've an query about doing the scan using byte[] help of 
>> LibClamAV.dll(win32). If anyone know the methods to pass the byte[] provide 
>> the details?.
>>
>> Note:
>> I able to do the scan a physical path file. But not able to do with byte[]. 
>> Please help me.
>
> It sounds like you are interacting with libclamav from C#. ClamAV requires a 
> rewindable file stream, so a byte array can’t be scanned on its own.
>
> You could map the byte array to a MemoryMappedFile.
>
> http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
>  
> 
>
> Then you could potentially pass the file descriptor for this to native 
> library.
>
>>
>> Regards,
>> Suresh Shanmugam.
>>
>> ___
>> http://lurker.clamav.net/list/clamav-devel.html
>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>>
>> http://www.clamav.net/contact.html#ml
>
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
> http://www.clamav.net/contact.html#ml

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

http://www.clamav.net/contact.html#ml
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Brandon Perry

> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) 
>  wrote:
> 
> Hi Brandon Perry,
> 
> You are correct Perry. I am implementing the LibClamAV Library into C# 
> application.  So I need to get the File descriptor from the Stream and need 
> to assign the value to "cl_scandesc" Native method. Am I right?.

Yes, I believe that’s correct.

> 
> 
> Regards,
> Suresh Shanmugam.
> 
> -Original Message-
> From: clamav-devel [mailto:clamav-devel-boun...@lists.clamav.net] On Behalf 
> Of Brandon Perry
> Sent: Monday, April 10, 2017 9:12 PM
> To: ClamAV Development 
> Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll
> 
> 
>> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>>  wrote:
>> 
>> Hi Developers,
>> 
>> I've an query about doing the scan using byte[] help of 
>> LibClamAV.dll(win32). If anyone know the methods to pass the byte[] provide 
>> the details?.
>> 
>> Note:
>> I able to do the scan a physical path file. But not able to do with byte[]. 
>> Please help me.
> 
> It sounds like you are interacting with libclamav from C#. ClamAV requires a 
> rewindable file stream, so a byte array can’t be scanned on its own.
> 
> You could map the byte array to a MemoryMappedFile.
> 
> http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
>  
> 
> 
> Then you could potentially pass the file descriptor for this to native 
> library.
> 
>> 
>> Regards,
>> Suresh Shanmugam.
>> 
>> ___
>> http://lurker.clamav.net/list/clamav-devel.html
>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>> 
>> http://www.clamav.net/contact.html#ml
> 
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> 
> http://www.clamav.net/contact.html#ml



signature.asc
Description: Message signed with OpenPGP
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml

Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Shanmugam, Suresh (Conduent)
Hi Brandon Perry,

You are correct Perry. I am implementing the LibClamAV Library into C# 
application.  So I need to get the File descriptor from the Stream and need to 
assign the value to "cl_scandesc" Native method. Am I right?.


Regards,
Suresh Shanmugam.

-Original Message-
From: clamav-devel [mailto:clamav-devel-boun...@lists.clamav.net] On Behalf Of 
Brandon Perry
Sent: Monday, April 10, 2017 9:12 PM
To: ClamAV Development 
Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll


> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>  wrote:
> 
> Hi Developers,
> 
> I've an query about doing the scan using byte[] help of LibClamAV.dll(win32). 
> If anyone know the methods to pass the byte[] provide the details?.
> 
> Note:
> I able to do the scan a physical path file. But not able to do with byte[]. 
> Please help me.

It sounds like you are interacting with libclamav from C#. ClamAV requires a 
rewindable file stream, so a byte array can’t be scanned on its own.

You could map the byte array to a MemoryMappedFile.

http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
 


Then you could potentially pass the file descriptor for this to native library.

> 
> Regards,
> Suresh Shanmugam.
> 
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> 
> http://www.clamav.net/contact.html#ml

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

http://www.clamav.net/contact.html#ml

Re: [Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Brandon Perry

> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) 
>  wrote:
> 
> Hi Developers,
> 
> I've an query about doing the scan using byte[] help of LibClamAV.dll(win32). 
> If anyone know the methods to pass the byte[] provide the details?.
> 
> Note:
> I able to do the scan a physical path file. But not able to do with byte[]. 
> Please help me.

It sounds like you are interacting with libclamav from C#. ClamAV requires a 
rewindable file stream, so a byte array can’t be scanned on its own.

You could map the byte array to a MemoryMappedFile.

http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile
 


Then you could potentially pass the file descriptor for this to native library.

> 
> Regards,
> Suresh Shanmugam.
> 
> ___
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> 
> http://www.clamav.net/contact.html#ml



signature.asc
Description: Message signed with OpenPGP
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml

[Clamav-devel] Question have an about LibClamAV.dll

2017-04-10 Thread Shanmugam, Suresh (Conduent)
Hi Developers,

I've an query about doing the scan using byte[] help of LibClamAV.dll(win32). 
If anyone know the methods to pass the byte[] provide the details?.

Note:
I able to do the scan a physical path file. But not able to do with byte[]. 
Please help me.

Regards,
Suresh Shanmugam.

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

http://www.clamav.net/contact.html#ml


[Clamav-devel] Question about detection of malware types

2017-04-10 Thread crazy thinker
Hi ClamAV User, Developer


I like ClamAV tool and have below question

does ClamAV able to detect below malware types?

*1.adware*
*2.spyware*
*3.virus*
*4.torjan*
*5.worm*
*6.rootkit*
*7.backdoors*
*8.keyloggers*
*9.rouge security software*
*10.ransomware*
*11.browser hijacker*
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml