Skip to content

rowellx68/Clam.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clam.NET Build status

A small client for ClamAV server which allows you to scan byte arrays for any malicious content.

Requirements

A running instance of ClamAV server should be accessible at the host and port provided.

Binaries could be had from here: https://www.clamav.net/downloads

Example Usage

var executor = new CommandExecutor(new SocketClient(), "localhost", 3310);
var client = new ScanClient(executor);

var ping = await client.Ping();
class SomeClass
{
    public SomeClass(IScanClientBuilder builder, ISocketClient socketClient, ICommandExecutor commandExecutor)
    {
        this.ScanClient = builder
            .WithServerAddress("localhost", 3310)
            .WithSocketClient(socketClient)
            .WithCommandExecutor(commandExecutor)
            .Build();
    }

    private IScanClient ScanClient { get; }
}

Releases

No releases published

Packages

No packages published

Languages