Sha256: bef1715b44260a178f09f3acecb8fbbef9605e777e1d579ad6d7aee7cfaf769b

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 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::Anchors < Arachni::Parser::Extractors::Base

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

        document.search( '//a[@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/anchors.rb
arachni-1.3.1 components/path_extractors/anchors.rb
arachni-1.3 components/path_extractors/anchors.rb
arachni-1.2.1 components/path_extractors/anchors.rb
arachni-1.2 components/path_extractors/anchors.rb