Sha256: 99fd461f1e69eb7274ee9c820fbef56965ce623018f5c4257dfb3a56117e289d

Contents?: true

Size: 994 Bytes

Versions: 6

Compression:

Stored size: 994 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    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

# HTML formatter for the results of the HTTPDicattack plugin.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::HTTPDicattack < Arachni::Plugin::Formatter
    include TemplateUtilities

    def run
        ERB.new( tpl ).result( binding )
    end

    def tpl
        <<-HTML
            <h3>Credentials</h3>

            <dl class="dl-horizontal">
                <dt>Username</dt>
                <dd><kbd><%= escapeHTML results['username'] %></kbd></dd>

                <dt>Password</dt>
                <dd><kbd><%= escapeHTML results['password'] %><kbd></dd>
            </dl>
        HTML
    end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 components/reporters/plugin_formatters/html/http_dicattack.rb
arachni-1.3.1 components/reporters/plugin_formatters/html/http_dicattack.rb
arachni-1.3 components/reporters/plugin_formatters/html/http_dicattack.rb
arachni-1.2.1 components/reporters/plugin_formatters/html/http_dicattack.rb
arachni-1.2 components/reporters/plugin_formatters/html/http_dicattack.rb
arachni-1.1 components/reporters/plugin_formatters/html/http_dicattack.rb