module Arachni::Framework::Parts::Scope
Provides scope helpers.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Instance Methods
accepts_more_pages?()
click to toggle source
@return [Bool]
`true` if the framework can process more pages, `false` is scope limits have been reached.
# File lib/arachni/framework/parts/scope.rb, line 32 def accepts_more_pages? crawl? && !page_limit_reached? end
crawl?()
click to toggle source
# File lib/arachni/framework/parts/scope.rb, line 25 def crawl? options.scope.crawl? && options.scope.restrict_paths.empty? end
page_limit_reached?()
click to toggle source
@return [Bool]
`true` if the {OptionGroups::Scope#page_limit} has been reached, `false` otherwise.
# File lib/arachni/framework/parts/scope.rb, line 21 def page_limit_reached? options.scope.page_limit_reached?( sitemap.size ) end