Skip to content

emeier/clamav-cfml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ClamAV

A ColdFusion component for scanning files with ClamAv. Tested on CentOS 6

Getting Started

Copy the clamav folder into your web root or create a mapping to it.

Create an instance of the ClamAV component. This will accept an optional path to clamdscan. Defaults to /usr/bin/clamdscan.

clamav = new clamav.ClamAV()

Scanning

result = clamav.scan("absolute/path/to/file")

The response includes a virusDetected flag, the exitValue, stdErr and stdOut.

result = clamav.scan("absolute/path/to/file")
result.virusDetected     # true
result.exitValue     # 1

About

ColdFusion wrapper for ClamAV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published