Module malcontent :: Class ContentRule
[show private | hide private]
[frames | no frames]

Class ContentRule

Rule --+
       |
      ContentRule


This rule type matches regular expressions against the raw content of the pages.
Method Summary
  __init__(self, reMap, reFlags)
Creates a new ContentRule.
  __call__(self, site)
Applies the rule to the given site

Class Variable Summary
    Inherited from Rule
int EVIL = 2                                                                     
int GOOD = 0                                                                     
int MAY_BE_EVIL = 1                                                                     

Method Details

__init__(self, reMap, reFlags=66)
(Constructor)

Creates a new ContentRule.
Parameters:
reMap - a map from regular expression strings to tuples of the form (exploitName, level) where exploit name is the exploit name and level is the badness level like Rule.EVIL

__call__(self, site)
(Call operator)

Applies the rule to the given site
Overrides:
malcontent.Rule.__call__

Generated by Epydoc 2.1 on Mon Dec 12 14:30:34 2005 http://epydoc.sf.net