Class: PluginFormatters::UncommonHeaders
- Inherits:
-
Arachni::Plugin::Formatter
- Object
- Arachni::Plugin::Formatter
- PluginFormatters::UncommonHeaders
- 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
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 |
#tpl ⇒ Object
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 <<-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 |