Sha256: 40a19c51e0cd29d772e0e14a9d28e716111bb57d7ec23f0e5e23808cbcc3e7bd
Contents?: true
Size: 779 Bytes
Versions: 7
Compression:
Stored size: 779 Bytes
Contents
=begin Copyright 2010-2014 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.1.1 # class Arachni::Parser::Extractors::Forms < Arachni::Parser::Extractors::Base # # Returns an array of paths as plain strings # # @param [Nokogiri] doc Nokogiri document # # @return [Array<String>] paths # def run( doc ) doc.search( '//form[@action]' ).map { |a| a['action'] } end end
Version data entries
7 entries across 7 versions & 1 rubygems