struct PassiveScan
- PassiveScan
- Struct
- Value
- Object
Defined in:
models/passive_scan.crConstant Summary
-
ALLOWED_MATCHERS_CONDITIONS =
{"and", "or"}
Constructors
Instance Method Summary
- #category : String
- #category=(category : String)
- #id : String
- #id=(id : String)
- #info : Info
- #info=(info : Info)
- #matchers : Array(Matcher)
- #matchers=(matchers : Array(Matcher))
- #matchers_condition : String
- #matchers_condition=(matchers_condition : String)
- #techs : Array(YAML::Any)
- #techs=(techs : Array(YAML::Any))
-
#valid? : Bool
A rule is usable when it has an id, a non-empty info name, at least one matcher, all matchers are valid (allowed type, condition, non-empty patterns), valid severity, and matchers_condition is 'and' or 'or'.
- #validation_errors : Array(String)
Constructor Detail
Instance Method Detail
def valid? : Bool
#
A rule is usable when it has an id, a non-empty info name, at least one matcher, all matchers are valid (allowed type, condition, non-empty patterns), valid severity, and matchers_condition is 'and' or 'or'.