Sha256: a21a4fd7fb1758d61d9cb0f47d28c9fa3a0a3fe5f039a0c65b4c60788d067511

Contents?: true

Size: 618 Bytes

Versions: 5

Compression:

Stored size: 618 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.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 "form" HTML elements.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Arachni::Parser::Extractors::Forms < Arachni::Parser::Extractors::Base

    def run
        return [] if !check_for?( 'action' )

        document.nodes_by_name( 'form' ).map { |f| f['action'] }
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 components/path_extractors/forms.rb
arachni-1.6.1.2 components/path_extractors/forms.rb
arachni-1.6.1.1 components/path_extractors/forms.rb
arachni-1.6.1 components/path_extractors/forms.rb
arachni-1.6.0 components/path_extractors/forms.rb