Sha256: eb182b9a214b1e5b9e194cba2709be15683c3e366fba84f5867e8006293d5132

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 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 "form" HTML elements.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
# @version 0.2
class Arachni::Parser::Extractors::Forms < Arachni::Parser::Extractors::Base

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

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

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