Sha256: 211630125af88061b7c3088638a970df9b0a4708d05a6a4af1e8e4ac4dcbdfae

Contents?: true

Size: 979 Bytes

Versions: 5

Compression:

Stored size: 979 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.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 FormDicattack plugin.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::FormDicattack < 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

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 components/reporters/plugin_formatters/html/form_dicattack.rb
arachni-1.6.1.2 components/reporters/plugin_formatters/html/form_dicattack.rb
arachni-1.6.1.1 components/reporters/plugin_formatters/html/form_dicattack.rb
arachni-1.6.1 components/reporters/plugin_formatters/html/form_dicattack.rb
arachni-1.6.0 components/reporters/plugin_formatters/html/form_dicattack.rb