Coder Social home page Coder Social logo

rmuch / clamav.managed Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 8.0 167 KB

ClamAV bindings for the .NET Framework, Mono and PowerShell. ClamAV.Managed is a library written in C# for the .NET Framework and Mono, providing managed bindings for the libclamav interface. It includes ClamAV.Managed.PowerShell, a set of PowerShell cmdlets for ClamAV scanning. It comes with sample code for building a GUI virus scanner application.

License: GNU General Public License v2.0

C# 96.00% PowerShell 3.65% Batchfile 0.09% F# 0.26%
clamav clamav-scanning clamav-binding clamav-wrapper antivirus c-sharp libclamav mono

clamav.managed's People

Contributors

rmuch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clamav.managed's Issues

ClamAV.Managed.Samples.Gui

I will use ClamAV.Managed.Samples.Gui is a startup project and is linked with libclamav + its db. when I run this sample it will crash the program at clamengine.cs line 292 having method 'ScanFile'. I have spent more than 3 days and couldn't get the solution. I have attached the screenshots of errors that show at console/output, runtime crash as well the line of clamengine.cs line 292. One more thing is ClamAV.Managed can scan files whose content is up to less than equal to (=<5 ).
ClamAV-Managed.pdf

Upgrade to .NET Framework 4.8

As per the lifecycle documentation:

.NET Framework 4.5.2, 4.6, and 4.61 will retire on April 26, 2022. These specific releases were previously digitally signed using Secure Hash Algorithm (SHA-1) certificates. This algorithm is no longer deemed secure. Go here to learn more about this retirement. Customers are encouraged to move to SHA-2. Go here to learn about validating your application functionality on the newer runtime version.

Release 0.4.0.0 will be upgraded to .NET Framework 4.8, as the last release exclusively supporting .NET 4.x.

.NET Framework 4.8: Support for .NET 4.8 follows the Lifecycle Policy of the parent OS. It is supported as a Windows component on the latest required update for the operating systems below. We recommend customers upgrade to .NET Framework 4.8 to receive the highest level of performance, reliability, and security.

Asynchronous wrappers for ScanFile, etc.

Implement asynchronous file and directory scanning.

Asynchronous scanning using the async/await pattern new in .NET 4.5 would probably be the easiest to implement. However, this would require upgrading the solution projects to .NET 4.5, which might be a problem for those who wish to target earlier framework versions.

A good first step would be to provide asynchronous methods using the older Begin/End asynchronous programming model.

Test with .NET Core

.NET Core supports P/Invoke, so, in theory, everything should work fine. It should be tested and .NET Core-compatible builds should be ensured before .NET Core can be added to the compatibility matrix.

Distribution bundles

Currently, the plan is to use WiX to provide a Windows Installer package with the ability to select libraries, source code, documentation and PowerShell integration, primarily to facilitate automated deployment on servers.

As well as the WiX package, there will definitely be binary builds distributed in a ZIP archive.

ClamAV.Managed could also be distributed via NuGet, but the issue of how to provide ClamAV binary builds along with the managed libraries, especially to support Mac OS X and Linux, should be considered.

A ZIP archive distribution should be available for 0.2, and a Windows Installer package at a later version.

Upgrade to .NET Standard 2.0

Upgrade ClamAV.Managed and ClamAV.Managed.Async to .NET Standard 2.0 the SDK-style (.NET Core) project format.

This could possibly be accomplished using automated tooling.

This may also necessitate upgrading other dependent projects to at least .NET 4.6.1, because earlier versions are not supported by .NET Standard, as per the documentation here.

Since the original issue (#8) was created, the .NET ecosystem has come a long way. This issue supersedes the previous one.

This will not be merged until after the 0.4.0.0 release, which will be the final release using the legacy .NET Framework.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.