Skip to content

Commit

Permalink
New Metasploit#index for the Msf Import Wizard
Browse files Browse the repository at this point in the history
Presents the current configuration and instructions on how to start pulling
data from a remote Metasploit instance.

Data loading into the view will be done through Ajax and jQuery.
  • Loading branch information
Daniel Martin committed Jul 26, 2011
1 parent 18192c7 commit b31c1fc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions vendor/plugins/msf_import/app/views/metasploit/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<% title 'Metasploit Import Wizard' %>

<p>From this screen you can pick and choose the information you want to import
into your Dradis repository.</p>
<p><%= link_to 'Show current configuration', 'javascript:return null;', :id => 'show-hide-configuration' %>

<div id="configuration" class="block" style="display: none;">
<h2>Configuration</h2>

<table>
<thead>
<tr>
<th>Setting</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<%- for setting in MsfImport::Configuration.settings -%>
<tr>
<td><%= setting.name %></td>
<td><%= setting.value %></td>
</tr>
<%- end -%>
</tbody>
</table>

<p><%= link_to 'Edit configuration', configurations_path() %></p>
</div>

<div id="step_retrieve-hosts" class="block">
<h2>First step: pull available hosts and services</h2>
<p><%= link_to 'Pull hosts', 'javascript:return null;', :id => 'pull-hosts' %></p>
</div>

<div id="metasploit-hosts" class="block" style="display: none;">
<div id="spinner"><%= image_tag 'loading.gif', :width => 16, :height => 16, :alt => 'Ajax loading spinner' %></div>
</div>


<script type="text/javascript" charset="utf-8">
$(function(){
$('#show-hide-configuration').click(function(){
$('#configuration').toggle();
});
$('#pull-hosts').click(function(){
$('#metasploit-hosts').show();
$('#spinner').show();
$('#flash_error').remove();
$.getScript( '/metasploit/hosts' );
});
});
</script>

0 comments on commit b31c1fc

Please sign in to comment.