Module: Arachni::Framework::Parts::Scope

Included in:
Arachni::Framework
Defined in:
lib/arachni/framework/parts/scope.rb

Overview

Provides scope helpers.

Author:

Instance Method Summary collapse

Instance Method Details

#accepts_more_pages?Bool

Returns ‘true` if the framework can process more pages, `false` is scope limits have been reached.

Returns:

  • (Bool)

    ‘true` if the framework can process more pages, `false` is scope limits have been reached.



32
33
34
# File 'lib/arachni/framework/parts/scope.rb', line 32

def accepts_more_pages?
    crawl? && !page_limit_reached?
end

#crawl?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/arachni/framework/parts/scope.rb', line 25

def crawl?
    options.scope.crawl? && options.scope.restrict_paths.empty?
end

#page_limit_reached?Bool

Returns ‘true` if the OptionGroups::Scope#page_limit has been reached, `false` otherwise.

Returns:



21
22
23
# File 'lib/arachni/framework/parts/scope.rb', line 21

def page_limit_reached?
    options.scope.page_limit_reached?( sitemap.size )
end