Class: PluginFormatters::FormDicattack
- Inherits:
-
Arachni::Plugin::Formatter
- Object
- Arachni::Plugin::Formatter
- PluginFormatters::FormDicattack
- 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
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 |
#tpl ⇒ Object
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 |