Class: PluginFormatters::HTTPDicattack

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

Overview

XML formatter for the results of the HTTPDicattack plugin

Author:

Instance Method Summary collapse

Instance Method Details

#run(xml) ⇒ Object



16
17
18
19
20
# File 'components/reporters/plugin_formatters/stdout/http_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/http_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