Sha256: cc38e5d3d00551187369bbb33637c24daedc8d17057be8e9c4717ba876deb942
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
=begin Arachni Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni module Reports class HTML module PluginFormatters # # XML formatter for the results of the HTTPDicattack plugin # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class HTTPDicattack < Arachni::Plugin::Formatter def initialize( plugin_data ) @results = plugin_data[:results] @description = plugin_data[:description] end def run return ERB.new( tpl ).result( binding ) end def tpl %q{ <h3>HTTP dictionary attacker</h3> <blockquote><%=@description%></blockquote> <h4>Credentials</h4> <strong>Username</strong>: <%=CGI.escapeHTML(@results[:username])%> <br/> <strong>Password</strong>: <%=CGI.escapeHTML(@results[:password])%> } end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems