github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

eagleas / clamav

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (1)
  • Downloads (5)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (5)
    • 0.3.1
    • 0.3.0
    • 0.2.2
    • 0.2.1
    • 0.2.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

ClamAV Ruby bindings — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Version 0.3.1 
eagleas (author)
Wed Nov 11 09:39:32 -0800 2009
commit  054b64431e1c6ab1e2f6c58446d4bbe46627f923
tree    6f65c5be26ac2eebb28b6b15d8ce1666fb7b8d82
parent  2522d965704f1525e2a354fc768063cbc9fa4b53
clamav /
name age
history
message
file .gitignore Mon Apr 06 10:44:59 -0700 2009 .gitignore [eagleas]
file ChangeLog Wed Nov 11 09:39:32 -0800 2009 Version 0.3.1 [eagleas]
file README.rdoc Wed Nov 11 09:39:32 -0800 2009 Version 0.3.1 [eagleas]
file VERSION Wed Nov 11 09:23:41 -0800 2009 Using jeweler, thanks to warp [eagleas]
file clamav.gemspec Wed Nov 11 09:23:41 -0800 2009 Using jeweler, thanks to warp [eagleas]
directory ext/ Wed Nov 11 09:31:54 -0800 2009 Update constants to clamav-0.95.3 [eagleas]
file rakefile Wed Nov 11 09:23:41 -0800 2009 Using jeweler, thanks to warp [eagleas]
directory spec/ Tue Apr 07 09:25:26 -0700 2009 Add ClamAV#signo spec [eagleas]
directory tools/ Mon Aug 04 08:09:45 -0700 2008 Initial commit [eagleas]
README.rdoc

ClamAV

ClamAV Ruby binding gem.

INSTALL:

$ sudo gem install clamav

REQUIREMENTS:

clamav >= 0.95.3, libclamav6, libclamav-dev

SYNOPSIS:

ClamAV.new([options[, db_options]])

  return:
    ClamAV instance

Options:

  • CL_SCAN_STDOPT (default) equal CL_SCAN_ARCHIVE | CL_SCAN_MAIL | CL_SCAN_OLE2 | CL_SCAN_PDF | CL_SCAN_HTML | CL_SCAN_PE | CL_SCAN_ALGORITHMIC | CL_SCAN_ELF
  • CL_SCAN_RAW
  • CL_SCAN_BLOCKENCRYPTED
  • CL_SCAN_BLOCKBROKEN
  • CL_SCAN_MAILURL
  • CL_SCAN_PHISHING_BLOCKSSL
  • CL_SCAN_PHISHING_BLOCKCLOAK
  • CL_SCAN_STRUCTURED
  • CL_SCAN_STRUCTURED_SSN_NORMAL
  • CL_SCAN_STRUCTURED_SSN_STRIPPED
  • CL_SCAN_PARTIAL_MESSAGE
  • CL_SCAN_HEURISTIC_PRECEDENCE

DB options:

  • CL_DB_STDOPT (default) equal CL_DB_PHISHING | CL_DB_PHISHING_URLS
  • CL_DB_PUA
  • CL_DB_CVDNOTMP
  • CL_DB_PUA_MODE
  • CL_DB_PUA_INCLUDE
  • CL_DB_PUA_EXCLUDE

See ClamAV documentation and sources for details.

ClamAV#scanfile(filename[, options])

  options default CL_SCAN_STDOPT

  return:
    virusname or ClamAV returncode(Fixnum)

ClamAV#reload()

  reload virus db if changed

  return:
    1 - reload successful
    0 - reload unnecessary

ClamAV#setlimit(param, value)

ClamAV#getlimit(param)

ClamAV#setstring(param, value)

ClamAV#getstring(param)

  get or set default values internal settings.

Params:

  • CL_ENGINE_MAX_SCANSIZE, /* integer */
  • CL_ENGINE_MAX_FILESIZE, /* integer */
  • CL_ENGINE_MAX_RECURSION, /* integer */
  • CL_ENGINE_MAX_FILES, /* integer */
  • CL_ENGINE_MIN_CC_COUNT, /* integer */
  • CL_ENGINE_MIN_SSN_COUNT, /* integer */
  • CL_ENGINE_PUA_CATEGORIES, /* string */
  • CL_ENGINE_DB_OPTIONS, /* integer */
  • CL_ENGINE_DB_VERSION, /* integer */
  • CL_ENGINE_DB_TIME, /* integer unixtime (readonly) */
  • CL_ENGINE_AC_ONLY, /* integer */
  • CL_ENGINE_AC_MINDEPTH, /* integer */
  • CL_ENGINE_AC_MAXDEPTH, /* integer */
  • CL_ENGINE_TMPDIR, /* string */
  • CL_ENGINE_KEEPTMP /* integer */

See ClamAV documentation and sources for details.

ClamaAV#signo()

  get loaded signatures count

LICENSE:

GNU General Public License

Copyright© 2008-2009 Alexander Oryol <eagle.alex@gmail.com>

THANKS:

Based on project clamavr-0.2.0

raa.ruby-lang.org/project/clamavr/

Copyright© 2003-2007 MoonWolf <moonwolf@moonwolf.com>

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server