Sha256: c5d18fd0fd6397e9141b89a00d1427ab6e9ffdd7754c0d8c5d36b45aca2eda24

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

# Extracts paths from anchor elements.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
# @version 0.2
class Arachni::Parser::Extractors::Areas < Arachni::Parser::Extractors::Base

    def run
        return [] if !includes?( 'area' ) || !includes?( 'href' )

        document.search( '//area[@href]' ).map { |a| a['href'] }
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.3.2 components/path_extractors/areas.rb
arachni-1.3.1 components/path_extractors/areas.rb
arachni-1.3 components/path_extractors/areas.rb
arachni-1.2.1 components/path_extractors/areas.rb
arachni-1.2 components/path_extractors/areas.rb