Class: PluginFormatters::Uniformity
- Inherits:
-
Arachni::Plugin::Formatter
- Object
- Arachni::Plugin::Formatter
- PluginFormatters::Uniformity
- Includes:
- TemplateUtilities
- Defined in:
- components/reporters/plugin_formatters/stdout/uniformity.rb,
components/reporters/plugin_formatters/html/uniformity.rb,
components/reporters/plugin_formatters/xml/uniformity.rb more...
Overview
XML formatter for the results of the Uniformity plugin.
Instance Method Summary collapse
Instance Method Details
permalink #run(xml) ⇒ Object
[View source] [View on GitHub]
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'components/reporters/plugin_formatters/stdout/uniformity.rb', line 16 def run print_info 'Relevant issues:' print_info '--------------------' results.each do |digests| issue = report.issue_by_digest( digests.first ) print_ok "#{issue.name} in #{issue.vector.type} input" << " '#{issue.affected_input_name}' using #{issue.vector.method.to_s.upcase}" << ' at the following pages:' digests.each do |digest| print_info " * #{report.issue_by_digest( digest ).vector.action}" end print_line end end |
permalink #tpl ⇒ Object
[View source] [View on GitHub]
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'components/reporters/plugin_formatters/html/uniformity.rb', line 21 def tpl <<-HTML <ul> <% results.each do |digests| %> <% issue = report.issue_by_digest( digests.first ) %> <li> <strong><%= escapeHTML issue.name %></strong> in <code><%= issue.vector.type %></code> input <code><%= issue.affected_input_name %></code> using <code><%= issue.vector.method.to_s.upcase %></code> at the following pages: <ul class="list-unstyled"> <% digests.each do |digest| issue = report.issue_by_digest( digest ) url = escapeHTML( issue.vector.action ) %> <li> <a class="btn btn-xs btn-info" href="<%= issue_location( issue ) %>" title="Inspect issue" > <i class="fa fa-eye"></i> </a> <a href="<%= url %>"><%= url %></a> </li> <% end %> </ul> </li> <%end%> </ul> HTML end |