Sha256: 99102e59ac38c32a195cb0d98c0d523c10f8453e3461ec40e03cd63a3b101e54
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
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 class Arachni::Reporters::XML # XML formatter for the results of the ContentTypes plugin # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::ContentTypes < Arachni::Plugin::Formatter def run( xml ) results.each do |type, infos| infos.each do |info| xml.entry { xml.content_type type xml.url info['url'] xml.method_ info['method'] xml.parameters { info['parameters'].each do |name, value| xml.parameter( name: Arachni::Reporters::XML.replace_nulls( name ), value: Arachni::Reporters::XML.replace_nulls( value ) ) end } } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems