Sha256: f45daf6b69faa38768194dbdd04a6d414f8a5c228ff4365c65cee5049f315440

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

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

class Arachni::Reporters::HTML

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

    def run
        ERB.new( tpl ).result( binding )
    end

    def tpl
        <<-HTML
        <ul>
        <% results.each do |url, headers| %>
            <li>
                <a href="<%= escapeHTML url %>"><%= escapeHTML url %></a>

                <dl class="dl-horizontal">
                    <% headers.each do |name, value| %>
                        <dt><%= escapeHTML name %></dt>
                        <dd><code><%= escapeHTML value %></code></dd>
                    <% end %>
                </dl>

            </li>
        <% end %>
        </ul>
        HTML
    end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 components/reporters/plugin_formatters/html/uncommon_headers.rb
arachni-1.3.1 components/reporters/plugin_formatters/html/uncommon_headers.rb
arachni-1.3 components/reporters/plugin_formatters/html/uncommon_headers.rb
arachni-1.2.1 components/reporters/plugin_formatters/html/uncommon_headers.rb
arachni-1.2 components/reporters/plugin_formatters/html/uncommon_headers.rb
arachni-1.1 components/reporters/plugin_formatters/html/uncommon_headers.rb