Class: PluginFormatters::UncommonHeaders

Inherits:
Arachni::Plugin::Formatter
  • Object
show all
Includes:
TemplateUtilities
Defined in:
components/reporters/plugin_formatters/stdout/uncommon_headers.rb,
components/reporters/plugin_formatters/html/uncommon_headers.rb,
components/reporters/plugin_formatters/xml/uncommon_headers.rb

Overview

Author:

Instance Method Summary collapse

Instance Method Details

#run(xml) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'components/reporters/plugin_formatters/stdout/uncommon_headers.rb', line 16

def run
    results.each do |url, headers|
        print_status url

        headers.each do |name, value|
            print_info "#{name}: #{value}"
        end

        print_line
    end
end

#tplObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'components/reporters/plugin_formatters/html/uncommon_headers.rb', line 19

def tpl
    "    <ul>\n    <% results.each do |url, headers| %>\n        <li>\n            <a href=\"<%= escapeHTML url %>\"><%= escapeHTML url %></a>\n\n            <dl class=\"dl-horizontal\">\n                <% headers.each do |name, value| %>\n                    <dt><%= escapeHTML name %></dt>\n                    <dd><code><%= escapeHTML value %></code></dd>\n                <% end %>\n            </dl>\n\n        </li>\n    <% end %>\n    </ul>\n    HTML\nend\n"