Sha256: 8375172640cbe4d5a853542dc28abd70966702acd0d3c88de8118f2679b8317d

Contents?: true

Size: 961 Bytes

Versions: 5

Compression:

Stored size: 961 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

class Arachni::Reporters::XML

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::UncommonHeaders < Arachni::Plugin::Formatter

    def run( xml )
        results.each do |url, headers|
            xml.entry {
                xml.url url

                xml.headers {
                    headers.each do |name, value|
                        xml.header(
                            name:  Arachni::Reporters::XML.replace_nulls( name ),
                            value: Arachni::Reporters::XML.replace_nulls( value )
                        )
                    end
                }
            }
        end
    end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 components/reporters/plugin_formatters/xml/uncommon_headers.rb
arachni-1.6.1.2 components/reporters/plugin_formatters/xml/uncommon_headers.rb
arachni-1.6.1.1 components/reporters/plugin_formatters/xml/uncommon_headers.rb
arachni-1.6.1 components/reporters/plugin_formatters/xml/uncommon_headers.rb
arachni-1.6.0 components/reporters/plugin_formatters/xml/uncommon_headers.rb