=begin Copyright 2010-2017 Sarosys LLC 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 class PluginFormatters::VectorCollector < Arachni::Plugin::Formatter include TemplateUtilities def run ERB.new( tpl ).result( binding ) end def tpl <<-HTML <% results.each do |url, vectors| %>

<%= escapeHTML url %>

<% vectors.each do |vector| %>

<%= vector['type'] %> pointing to <%= escapeHTML vector['action'] %>

<% if vector['inputs'] %> <% end %> <% if vector['source'] %>
<%= escapeHTML vector['source'] %>
<% end %> <% end %> <% end %> HTML end end end