Class: PluginFormatters::FormDicattack

Inherits:
Arachni::Plugin::Formatter
  • Object
show all
Includes:
TemplateUtilities
Defined in:
components/reporters/plugin_formatters/stdout/form_dicattack.rb,
components/reporters/plugin_formatters/html/form_dicattack.rb,
components/reporters/plugin_formatters/xml/form_dicattack.rb

Overview

XML formatter for the results of the FormDicattack plugin

Author:

Instance Method Summary collapse

Instance Method Details

#run(xml) ⇒ Object



16
17
18
19
20
# File 'components/reporters/plugin_formatters/stdout/form_dicattack.rb', line 16

def run
    print_info 'Cracked credentials:'
    print_ok "    Username: '#{results['username']}'"
    print_ok "    Password: '#{results['password']}'"
end

#tplObject



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'components/reporters/plugin_formatters/html/form_dicattack.rb', line 21

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