Class: Arachni::Element::Capabilities::WithScope::Scope
- Inherits:
-
URI::Scope
- Object
- Scope
- URI::Scope
- Arachni::Element::Capabilities::WithScope::Scope
- Defined in:
- lib/arachni/element/capabilities/with_scope/scope.rb
Overview
Determines the scope status of elements based on their Base#action and Base#type.
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
-
#initialize(element) ⇒ Scope
constructor
A new instance of Scope.
-
#out? ⇒ Bool
`true` if the URL out of the scan scope, `false` otherwise.
Methods inherited from URI::Scope
#auto_redundant?, #exclude?, #exclude_file_extension?, #follow_protocol?, #in?, #in_domain?, #include?, #redundant?, #too_deep?
Methods inherited from Scope
Constructor Details
Instance Method Details
#out? ⇒ Bool
Note:
Will call URI::Scope#redundant?.
Returns `true` if the URL out of the scan scope, `false` otherwise. The determination is based on:
31 32 33 34 35 36 37 38 |
# File 'lib/arachni/element/capabilities/with_scope/scope.rb', line 31 def out? begin return true if !Arachni::Options.audit.element?( @element.type ) rescue Arachni::OptionGroups::Audit::Error::InvalidElementType end super || redundant? end |